Skip to content

perf util: Cleanup die() and its friends (v2)

Namhyung Kim lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9perf util: Let get_tracing_file() can return NULLtools/perf/util/trace-event-info.c+22 -30 replies
2/9perf util: Get rid of malloc_or_die() in trace-event-info.ctools/perf/util/trace-event-info.c+30 -180 replies
3/9perf util: Get rid of write_or_die() from trace-event-info.ctools/perf/util/trace-event-info.c tools/perf/util/trace-event.h+127 -550 replies
4/9perf util: Get rid of die() calls from trace-event-info.ctools/perf/util/trace-event-info.c+72 -420 replies
5/9perf util: Handle failure case in trace_report()tools/perf/util/header.c tools/perf/util/trace-event-read.c+31 -190 replies
6/9perf util: Get rid of malloc_or_die() in trace-event-read.ctools/perf/util/trace-event-read.c+67 -330 replies
7/9perf util: Get rid of read_or_die() in trace-event-read.ctools/perf/util/trace-event-read.c+57 -230 replies
8/9perf util: Get rid of die() calls in trace-data-read.ctools/perf/util/trace-event-read.c+29 -150 replies
9/9perf util: Cleanup calc_data_size logictools/perf/util/trace-event-read.c+4 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCHSET 0/9] perf util: Cleanup die() and its friends (v2)

Hi,

I updated this series with previous feedbacks from Steven, Peter and Arnaldo. Thanks for all your comments.

* v2 changes
- fix a grammar in an error message
- change some pr_err() -> pr_debug()
- use kernel error checking style consistently

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           |   9 +-
 tools/perf/util/trace-event-info.c | 347 +++++++++++++++++++++++++------------
 tools/perf/util/trace-event-read.c | 270 +++++++++++++++++++----------
 tools/perf/util/trace-event.h      |   2 +-
 4 files changed, 425 insertions(+), 203 deletions(-)
Signature · 1 line
1.7.11.7