This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: which function is instrumentable?
I see. What I am looking for is to exclude those bad-function
automatically. I can write a script to test the function one by one,
but it's ugly.
Can stap provides some hint about the probability, which could be used
to estimate the correctness of instrumentation?
Can stap exclude those inlined function with some option?
On Wed, Mar 23, 2011 at 3:49 PM, Adrien Kunysz <adrien@kunysz.be> wrote:
> On Wed, Mar 23, 2011 at 09:22:12AM +0800, Zhiwei Ying wrote:
>> I tried to trace down every function in a device driver, but it fails.
>> It may be cased too many instrumentation. But the problem is how can I
>> know which function is instrumentable and which is not? Or I have to
>> manually narrow the problem? Any idea?
>
> This
>
> ? ? ? ?$ stap -l 'module("foo").function("*")'
>
> is supposed to give you a list of all the "probeable" functions in
> module "foo".
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAk2Jpf4ACgkQKLX03ZSPZGzLFgCfVPPsMNE0aP41dz4CbR4wvRgv
> dowAn2ZYglF0Y6jnbgHHzbyziYuWLtXM
> =TVHS
> -----END PGP SIGNATURE-----
>
>