perf python binding fixes
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
- v2 Latest6 patches 3 repliesApplied
- v13 patches 1 replySuperseded
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | perf python: Fixup description of sample.id event membertools/ | +1 | 0 replies | |
| 2/6 | perf python: Remove some unused macros (_PyUnicode_FromString(arg), etc)tools/ | +0 | 0 replies | |
| 3/6 | perf python tracepoint.py: Change the COMM using setproctitle if availabletools/ | +8 | 0 replies | |
| 4/6 | perf python: Decrement the refcount of just created event on failuretools/ | +5 | 0 replies | |
| 5/6 | perf python: Don't keep a raw_data pointer to consumed ring buffer spacetools/ | +1 | 0 replies | |
| 6/6 | perf python: Check if there is space to copy all the eventtools/ | +5 | 0 replies |
Reviews trailers per patch
None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Ian Rogers |
|---|---|
| Series | R-b |
| 1/6 | |
| 2/6 | |
| 3/6 | |
| 4/6 | |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/6] perf python binding fixes
From: Arnaldo Carvalho de Melo <[email protected]>
Hi Namhyung,
So this simplifies it greatly, it almost ends up as a one-liner,
but there is an improvement as well to mark the event as consumed to then parse its sample, because the copy of the whole event was done all along.
This is brittle, as the header size can be bigger, than the
space we use and in that case we fail to parse the event by bounds checking it.
Supporting larger event payloads can be done on top of this,
possibly by deferring consuming the event in the ring buffer by parsing it all instead of having pre-allocated space, measurements need to be made to see whats best. I'd say leave this for when it proves necessary.
With this series I managed to run it for a long time without
crashes and 'top' says it doesn't seem to be leaking anything, as its memory usage stays the same for as long as I looked.
Please consider applying to perf-tools-next,
Best regards
P.S.: In other news, the syscalltbl series from Ian built on all my containers, I'm now trying to go over it patch by patch.
Arnaldo Carvalho de Melo (6):
perf python: Fixup description of sample.id event member
perf python: Remove some unused macros (_PyUnicode_FromString(arg), etc) perf python tracepoint.py: Change the COMM using setproctitle if available perf python: Decrement the refcount of just created event on failure perf python: Don't keep a raw_data pointer to consumed ring buffer space perf python: Check if there is space to copy all the event
tools/perf/python/tracepoint.py | 8 ++++++++ tools/perf/util/python.c | 24 ++++++++++++------------ 2 files changed, 20 insertions(+), 12 deletions(-)
Signature · 1 line
2.48.1