mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Dist and install udev rule.
2005-12-20 Kristian Høgsberg <krh@redhat.com> * Makefile.am: Dist and install udev rule. * collector.c: (open_fd): * sysprof-text.c: (no_module): * sysprof.c: (on_start_toggled): Update device filename. * 60-sysprof.rules: New udev rule file to set permissions for sysprof char device. * module/sysprof-module.c: Switch kernel module to use a misc char device instead. Start and stop the timer on device open and close instead of module load and unload.
This commit is contained in:
committed by
Kristian Høgsberg
parent
c1f411c356
commit
ad5ffd749b
@ -70,15 +70,13 @@ signal_handler (int signo, gpointer data)
|
||||
g_main_loop_quit (app->main_loop);
|
||||
}
|
||||
|
||||
#define SYSPROF_FILE "/proc/sysprof-trace"
|
||||
|
||||
static void
|
||||
no_module (void)
|
||||
{
|
||||
perror (SYSPROF_FILE);
|
||||
fprintf (stderr,
|
||||
"\n"
|
||||
"Can't open /proc/sysprof-trace. You need to insert "
|
||||
"Can't open " SYSPROF_FILE ". You need to insert "
|
||||
"the sysprof kernel module. Run\n"
|
||||
"\n"
|
||||
" modprobe sysprof-module\n"
|
||||
|
||||
Reference in New Issue
Block a user