Skip to content

perf probe: Improve logs for long name string

Leo Yan linux-perf-users lkml 2 versions Applied

Status from this message: Applied to perf-tools-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 3 repliesApplied
  2. v23 patches 1 replySuperseded

Changes in v3 from the cover letter

- Printed a more abstract syntax "EVENT=PROBEDEF" in log.
- Amended warning for adding suffix failure.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3perf probe: Use the MAX_EVENT_NAME_LEN macrotools/perf/util/probe-event.c+4 -11 reply
2/3perf probe: Check group string lengthtools/perf/util/probe-event.c+6 -00 replies
3/3perf probe: Improve log for long event name failuretools/perf/util/probe-event.c+8 -21 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

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

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

Read the v3 thread

Cover letter [PATCH v3 0/3] perf probe: Improve logs for long name string

The series [1] tries to use hashed symbol names for event names. This can avoid failures due to long symbol names. Somehow, it is preferred to specify a distinct event name when adding a probe.

This series follows up on the comment to improve the logs for long event strings.

[1] https://lore.kernel.org/linux-perf-users/[email protected]/T/

Changes from v2:
- Printed a more abstract syntax "EVENT=PROBEDEF" in log.
- Amended warning for adding suffix failure.

Changes from v1:
- Used a patch to add MAX_EVENT_NAME_LEN macro.
- Refined log for long event name failure to replace hashed event name (Masami).

Leo Yan (3):
perf probe: Use the MAX_EVENT_NAME_LEN macro perf probe: Check group string length
perf probe: Improve log for long event name failure

 tools/perf/util/probe-event.c | 21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)
Signature · 1 line
2.25.1