perf util: Cleanup die() and its friends
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 22 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | perf util: Let get_tracing_file() can return NULLtools/ | +22 | 2 replies | |
| 2/9 | perf util: Get rid of malloc_or_die() in trace-event-info.ctools/ | +30 | 0 replies | |
| 3/9 | perf util: Get rid of write_or_die() from trace-event-info.ctools/ tools/ | +116 | 5 replies | |
| 4/9 | perf util: Get rid of die() calls from trace-event-info.ctools/ | +72 | 0 replies | |
| 5/9 | perf util: Handle failure case in trace_report()tools/ tools/ | +32 | 3 replies | |
| 6/9 | perf util: Get rid of malloc_or_die() in trace-event-read.ctools/ | +57 | 6 replies | |
| 7/9 | perf util: Get rid of read_or_die() in trace-event-read.ctools/ | +57 | 3 replies | |
| 8/9 | perf util: Get rid of die() calls in trace-data-read.ctools/ | +29 | 3 replies | |
| 9/9 | perf util: Cleanup calc_data_size logictools/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCHSET 0/9] perf util: Cleanup die() and its friends
Hi,
I've done this painful cleanup of *die() removal. ;-) It now can return error code rather than calling die() when something bad happen. It only touches tracepoint related code and I tested it's working normally but lacks thorough testing in various environment.
Please help testing more!
Thanks,
Namhyung
Namhyung Kim (9):
perf util: Let get_tracing_file() can return NULL perf util: Get rid of malloc_or_die() in trace-event-info.c perf util: Get rid of write_or_die() from trace-event-info.c perf util: Get rid of die() calls from trace-event-info.c perf util: Handle failure case in trace_report() perf util: Get rid of malloc_or_die() in trace-event-read.c perf util: Get rid of read_or_die() in trace-event-read.c perf util: Get rid of die() calls in trace-data-read.c perf util: Cleanup calc_data_size logic
tools/perf/util/header.c | 11 +- tools/perf/util/trace-event-info.c | 336 +++++++++++++++++++++++++------------ tools/perf/util/trace-event-read.c | 256 ++++++++++++++++++---------- tools/perf/util/trace-event.h | 2 +- 4 files changed, 403 insertions(+), 202 deletions(-)
Signature · 1 line
1.7.11.7