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:
Kristian Høgsberg
2005-12-20 17:55:03 +00:00
committed by Kristian Høgsberg
parent c1f411c356
commit ad5ffd749b
9 changed files with 94 additions and 46 deletions

View File

@ -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"