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)
commit029c75e5cf166f9c04744d81c798f54a44a8417c
tree7274bd2df51402c0c310bd56146611cb9635bc4d
parent9ac94e31ca8c6311ec9eb68aea513e39ad809013
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