aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2019-07-09 17:49:26 +0000
committerArnaldo Carvalho de Melo <[email protected]>2019-07-09 17:59:11 +0000
commit4975223b8156c14f0537dcde1554f050fb4d29bf (patch)
treed4ffefa1da356cf3fe58291ef88061c2cd9d4645 /tools/perf/util/scripting-engines/trace-event-python.c
parentperf intel-pt: Fix potential NULL pointer dereference found by the smatch tool (diff)
downloadkernel-4975223b8156c14f0537dcde1554f050fb4d29bf.tar.gz
kernel-4975223b8156c14f0537dcde1554f050fb4d29bf.zip
perf tools: Introduce rlimit__bump_memlock() helper
Just like the BPF guys did when faced with failures with map creation, etc, i.e. their solution is: tools/testing/selftests/bpf/bpf_rlimit.h For perf use this function in 'perf test' and in 'perf trace'. Make it bump to 4 times the current value, if it fails twice the current value and if it still fails, warn that things like BPF map creation may fail, to help in diagnosing the problem. Cc: Adrian Hunter <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Daniel Borkmann <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Link: https://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions