From: fche@redhat.com (Frank Ch. Eigler)
To: Jim Paris <jim@jtan.com>
Cc: linux-hotplug@vger.kernel.org, linux-kernel@vger.kernel.org,
"Eric W. Biederman" <ebiederm@xmission.com>,
Milan Broz <mbroz@redhat.com>
Subject: Re: udev missing events?
Date: Fri, 27 Apr 2012 13:59:49 +0000 [thread overview]
Message-ID: <y0mr4v9mg16.fsf@fche.csb> (raw)
In-Reply-To: <20120422043655.GA27861@psychosis.jim.sh> (Jim Paris's message of "Sun, 22 Apr 2012 00:36:55 -0400")
Jim Paris <jim@jtan.com> 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
WARNING: multiple messages have this Message-ID (diff)
From: fche@redhat.com (Frank Ch. Eigler)
To: Jim Paris <jim@jtan.com>
Cc: linux-hotplug@vger.kernel.org, linux-kernel@vger.kernel.org,
"Eric W. Biederman" <ebiederm@xmission.com>,
Milan Broz <mbroz@redhat.com>
Subject: Re: udev missing events?
Date: Fri, 27 Apr 2012 09:59:49 -0400 [thread overview]
Message-ID: <y0mr4v9mg16.fsf@fche.csb> (raw)
In-Reply-To: <20120422043655.GA27861@psychosis.jim.sh> (Jim Paris's message of "Sun, 22 Apr 2012 00:36:55 -0400")
Jim Paris <jim@jtan.com> 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
next prev parent reply other threads:[~2012-04-27 13:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-22 4:36 udev missing events? Jim Paris
2012-04-22 4:36 ` Jim Paris
[not found] ` <ef67a489-94bc-4f97-903d-907ab974537c@email.android.com>
2012-04-22 14:11 ` Jim Paris
2012-04-22 14:11 ` Jim Paris
2012-04-22 16:07 ` Eric W. Biederman
2012-04-22 16:07 ` Eric W. Biederman
2012-04-22 16:54 ` Jim Paris
2012-04-22 16:54 ` Jim Paris
2012-04-27 13:59 ` Frank Ch. Eigler [this message]
2012-04-27 13:59 ` Frank Ch. Eigler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=y0mr4v9mg16.fsf@fche.csb \
--to=fche@redhat.com \
--cc=ebiederm@xmission.com \
--cc=jim@jtan.com \
--cc=linux-hotplug@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mbroz@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.