Skip to content

perf jitdump: Fix PID namespace detection

Ilya Leoshkevich linux-perf-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5perf jitdump: Fix PID namespace detectiontools/perf/util/jitdump.c tools/perf/util/namespaces.c tools/perf/util/namespaces.h+32 -65 replies
2/5perf test java symbol: Get rid of shellcheck warningstools/perf/tests/shell/test_java_symbol.sh+12 -82 replies
3/5perf test java symbol: Extract LIBJVMTI detectiontools/perf/tests/shell/lib/setup_libjvmti.sh tools/perf/tests/shell/test_java_symbol.sh+20 -150 replies
4/5perf test java symbol: Fix a false negative in symbol regextools/perf/tests/shell/test_java_symbol.sh+3 -12 replies
5/5perf test java symbol: Add PID namespace varianttools/perf/tests/shell/test_java_symbol_pidns.sh+135 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] perf jitdump: Fix PID namespace detection

Hi,

I ran into a problem with perf jitdump not working with still running namespaced processes and started (very slowly) working on a series that allows perf to record accurate PID namespace information [1] and use that instead of resorting to guesswork.

However, I realized that at least short-term it's possible to fix the existing heuristic, so I've created this series. Patch 1 is the fix. Patches 2-4 are small changes to the existing test, and patch 5 adds a test that reproduces the situation that I'm facing.

[1] https://github.com/iii-i/linux/commits/iii/wip/nspid/

Best regards,
Ilya

Ilya Leoshkevich (5):
perf jitdump: Fix PID namespace detection
perf test java symbol: Get rid of shellcheck warnings perf test java symbol: Extract LIBJVMTI detection perf test java symbol: Fix a false negative in symbol regex perf test java symbol: Add PID namespace variant

 tools/perf/tests/shell/lib/setup_libjvmti.sh  |  18 +++
 tools/perf/tests/shell/test_java_symbol.sh    |  39 +++--
 .../tests/shell/test_java_symbol_pidns.sh     | 135 ++++++++++++++++++
 tools/perf/util/jitdump.c                     |  27 +++-
 tools/perf/util/namespaces.c                  |   9 ++
 tools/perf/util/namespaces.h                  |   2 +
 6 files changed, 201 insertions(+), 29 deletions(-)
 create mode 100644 tools/perf/tests/shell/lib/setup_libjvmti.sh
 create mode 100755 tools/perf/tests/shell/test_java_symbol_pidns.sh
Signature · 1 line
2.51.1