Add detection of debugfs and kernel module loading
authorDavid Goulet <david.goulet@polymtl.ca>
Thu, 7 Jul 2011 14:29:19 +0000 (10:29 -0400)
committerDavid Goulet <david.goulet@polymtl.ca>
Thu, 7 Jul 2011 14:29:19 +0000 (10:29 -0400)
commitb73401da87657682c2b51665a6fd1950f5c362f1
tree374e15c10357cca5aab70ec4e4f548919883437e
parent5c9408af9daa0f6e17911397019edb5981bc78c9
Add detection of debugfs and kernel module loading

The session daemon now detects the path of the debugfs mount point or
create and mount it at a default location (/mnt/debugfs).

Then, the kernel module are loaded automatically, if present, and the
kernel tracer fd is opened at the previous detected debugfs path.

The kernel module list is hardcoded for now.

NOTE: There is no module unload at the session daemon cleanup. This is
to avoid removing tracing capabilities when a trace is ongoing and
written to disk.

Signed-off-by: David Goulet <david.goulet@polymtl.ca>
ltt-sessiond/ltt-sessiond.h
ltt-sessiond/main.c
This page took 0.027336 seconds and 5 git commands to generate.