aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2019-07-09 14:49:26 -0300
committerArnaldo Carvalho de Melo <[email protected]>2019-07-09 14:59:11 -0300
commit4975223b8156c14f0537dcde1554f050fb4d29bf (patch)
treed4ffefa1da356cf3fe58291ef88061c2cd9d4645 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parent323fd749821daab0f327ec86d707c4542963cdb0 (diff)
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/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions