kernel-ark/drivers/oprofile
Robert Richter 7df01d96b2 oprofile: disable write access to oprofilefs while profiler is running
Oprofile counters are setup when profiling is disabled. Thus, writing
to oprofilefs has no immediate effect. Changes are updated only after
oprofile is reenabled.

To keep userland and kernel states synchronized, we now allow
configuration of oprofile only if profiling is disabled.  In this case
it checks if the profiler is running and then disables write access to
oprofilefs by returning -EBUSY. The change should be backward
compatible with current oprofile userland daemon.

Acked-by: Maynard Johnson <maynardj@us.ibm.com>
Cc: William Cohen <wcohen@redhat.com>
Cc: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
2010-10-12 17:25:06 +02:00
..
buffer_sync.c oprofile: fix crash when accessing freed task structs 2010-08-25 09:09:09 +02:00
buffer_sync.h cpumask: modifiy oprofile initialization 2009-01-22 14:37:06 +01:00
cpu_buffer.c oprofile: fix crash when accessing freed task structs 2010-08-25 09:09:09 +02:00
cpu_buffer.h percpu: make percpu symbols in oprofile unique 2009-10-29 22:34:13 +09:00
event_buffer.c oprofile: make event buffer nonseekable 2010-07-26 10:58:24 +02:00
event_buffer.h Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile 2008-10-23 10:05:40 -07:00
oprof.c oprofile: disable write access to oprofilefs while profiler is running 2010-10-12 17:25:06 +02:00
oprof.h oprofile: disable write access to oprofilefs while profiler is running 2010-10-12 17:25:06 +02:00
oprofile_files.c oprofile: disable write access to oprofilefs while profiler is running 2010-10-12 17:25:06 +02:00
oprofile_perf.c oprofile, ARM: Use oprofile_arch_exit() to cleanup on failure 2010-10-11 19:34:04 +02:00
oprofile_stats.c percpu: make percpu symbols in oprofile unique 2009-10-29 22:34:13 +09:00
oprofile_stats.h oprofile: Adding switch counter to oprofile statistic variables 2009-07-20 16:43:21 +02:00
oprofilefs.c oprofile: disable write access to oprofilefs while profiler is running 2010-10-12 17:25:06 +02:00
timer_int.c oprofile: convert oprofile from timer_hook to hrtimer 2010-03-02 17:03:20 +01:00