]> git.baikalelectronics.ru Git - kernel.git/commit
perf core: Generalize max_stack sysctl handler
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 10 May 2016 19:34:53 +0000 (16:34 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 17 May 2016 02:11:49 +0000 (23:11 -0300)
commit241e3a2574f94aee32a2571bf1ebd9abb043c1e2
tree7771949ed9e7c8519edab809c4cbd4aa5731d104
parent41ac0020a6bb9867a63235d2221bfb28bc81f46a
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>
kernel/events/callchain.c
kernel/sysctl.c