diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-05-10 16:34:53 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-05-16 23:11:49 -0300 |
commit | a831100aeefbe6d9f3e47a3e2712f82c042f1f5c (patch) | |
tree | 7771949ed9e7c8519edab809c4cbd4aa5731d104 /kernel/sysctl.c | |
parent | 0a77582f0407e7f9b5d775bebc31297a1b890be0 (diff) | |
download | linux-a831100aeefbe6d9f3e47a3e2712f82c042f1f5c.tar.gz linux-a831100aeefbe6d9f3e47a3e2712f82c042f1f5c.tar.bz2 linux-a831100aeefbe6d9f3e47a3e2712f82c042f1f5c.zip |
perf core: Generalize max_stack sysctl handler
So that it can be used for other stack related knobs, such as the
upcoming one to tweak the max number of of contexts per stack sample.
In all those cases we can only change the value if there are no perf
sessions collecting stacks, so they need to grab that mutex, etc.
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/tip-8t3fk94wuzp8m2z1n4gc0s17@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index c8b318663525..0ec6907a16b3 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -1149,7 +1149,7 @@ static struct ctl_table kern_table[] = { }, { .procname = "perf_event_max_stack", - .data = NULL, /* filled in by handler */ + .data = &sysctl_perf_event_max_stack, .maxlen = sizeof(sysctl_perf_event_max_stack), .mode = 0644, .proc_handler = perf_event_max_stack_handler, |