]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: No need to unconditionally read the max_stack sysctls
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 May 2018 19:31:32 +0000 (16:31 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 May 2018 19:31:32 +0000 (16:31 -0300)
commit0f03c0b844c926c208ae09a9db2ddd069c0adb63
tree7274bd2df51402c0c310bd56146611cb9635bc4d
parentab49aaee98f63b82b31c373672313d94b3ecfe79
perf tools: No need to unconditionally read the max_stack sysctls

Let tools that need to have those variables with the sysctl current
values use a function that will read them.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-1ljj3oeo5kpt2n1icfd9vowe@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-top.c
tools/perf/builtin-trace.c
tools/perf/perf.c
tools/perf/util/evsel.c
tools/perf/util/util.c
tools/perf/util/util.h