From mboxrd@z Thu Jan 1 00:00:00 1970 From: fche@redhat.com (Frank Ch. Eigler) Date: Fri, 27 Apr 2012 13:59:49 +0000 Subject: Re: udev missing events? Message-Id: List-Id: References: <20120422043655.GA27861@psychosis.jim.sh> In-Reply-To: <20120422043655.GA27861@psychosis.jim.sh> (Jim Paris's message of "Sun, 22 Apr 2012 00:36:55 -0400") MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Jim Paris Cc: linux-hotplug@vger.kernel.org, linux-kernel@vger.kernel.org, "Eric W. Biederman" , Milan Broz Jim Paris writes: > [...] > To try to track it further, I wrote a systemtap script (available at > http://jim.sh/~jim/tmp/monitor.stp). It dumps the result of > netlink_broadcast_filtered at lib/kobject_uevent.c:248 [...] By the way, your monitor.stp contains this bit: /* I don't know how to do this better, indexing envp if ($env->envp_idx > 0) printf(" %s\n", $env->envp[0]$) if ($env->envp_idx > 1) printf(" %s\n", $env->envp[1]$) [...] if ($env->envp_idx > 9) printf(" %s\n", $env->envp[9]$) if ($env->envp_idx > 10) printf("..... more\n") More idiomatic would be as follows (stap version 0.9.9+): for (i=0; i<$env->envp_idx; i++) { printf(" %s\n", $env->envp[i]$) } - FChE