diff options
author | Robert Richter <[email protected]> | 2010-10-04 21:09:36 +0200 |
---|---|---|
committer | Robert Richter <[email protected]> | 2010-10-12 17:25:06 +0200 |
commit | 7df01d96b295e400167e78061b81d4c91630b12d (patch) | |
tree | 52782cc1d78c24030d627f719cdaa29846c42efb /net/unix/sysctl_net_unix.c | |
parent | 0361e02342f60b64a7075755d5851ed4e6f98c7d (diff) |
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 <[email protected]>
Cc: William Cohen <[email protected]>
Cc: Suravee Suthikulpanit <[email protected]>
Signed-off-by: Robert Richter <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions