Re: udev missing events?

From: Frank Ch. Eigler
Date: Fri Apr 27 2012 - 09:59:55 EST



Jim Paris <jim@xxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/