[lttng-dev] Enable/disable TPs per executing process

Yannick Brosseau yannick.brosseau at gmail.com
Mon Mar 5 13:50:02 EST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> > /*
> > * Set the tracing group for the *current* flow of execution.
> > *
> > * On success, returns 0, on error, returns -1 (null name) or -ENOMEM.
> > */
> > extern int lttng_set_tracing_group(const char *name);
>
> > I dont really understand how and where I can use these tracing
groups? Is this
> > something that I can use in the above scenario?
>
> Users in the tracing group are able to trace the kernel without root
access.
> This API call allows you to set the group name *if* it is different
from the
> default one ("tracing") only for the execution you are using the
liblttng-ctl.
>
> For your use case, user space tracing, no need at all :).

I think that adding that explanation in the header of the function would
be useful.

Yannick
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9VCtEACgkQFQrZ7GzHX2oFmgCfSTCast//u9E4uULcCJ/QG1UL
YV8AoNe1RXzFqutsnroARq70qw+HxbvS
=QvGa
-----END PGP SIGNATURE-----




More information about the lttng-dev mailing list