perf probe: Support long symbol
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 10 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | perf: Dynamically allocate buffer for event stringtools/ | +18 | 1 reply | |
| 2/3 | perf probe: Check group string lengthtools/ | +7 | 1 reply | |
| 3/3 | perf probe: Generate hash event for long symboltools/ | +41 | 6 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Masami Hiramatsu (Google) |
|---|---|
| 1/3 | |
| 2/3 | A-b |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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