Skip to content

perf probe: Support long symbol

Leo Yan linux-perf-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3perf: Dynamically allocate buffer for event stringtools/perf/util/probe-event.c+18 -61 reply
2/3perf probe: Check group string lengthtools/perf/util/probe-event.c+7 -01 reply
3/3perf probe: Generate hash event for long symboltools/perf/util/probe-event.c+41 -16 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchMasami Hiramatsu (Google)
1/3
2/3A-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/3] perf probe: Support long symbol

Currently, a probe supports event name maximum to a 64-byte length. The event name comes from the probed symbol name, otherwise, user can specify an event name.

In the case when user tries to inject a probe for a long symbol, e.g. mangled symbol name in a C++ program, the kernel buffer cannot accommodate it if the symbol name is longer than 64 bytes.

On the other hand, this series relies on the perf tool to resolve the issue. When the tool detects user doesn't specify event name and the probed symbol is longer than 64 bytes, it will generate a hashed event name with 64-byte length to avoid failure.

Leo Yan (3):
perf: Dynamically allocate buffer for event string perf probe: Check group string length
perf probe: Generate hash event for long symbol

 tools/perf/util/probe-event.c | 71 ++++++++++++++++++++++++++++++++---
 1 file changed, 65 insertions(+), 6 deletions(-)
Signature · 1 line
2.34.1