Skip to content

perf: cleanups related to die/exit and error handling

David Ahern lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7perf tool: flush_sample_queue needs to handle errors from handlerstools/perf/util/session.c+15 -91 reply
2/7perf tool: handle errors in synthesized event functionstools/perf/util/event.c+26 -91 reply
3/7perf lock: remove use of die and handle errorstools/perf/builtin-lock.c+124 -571 reply
4/7perf stat: remove use of die/exit and handle errorstools/perf/builtin-stat.c+4 -31 reply
5/7perf help: remove remove use of die and handle errorstools/perf/builtin-help.c+34 -141 reply
6/7perf script: remove use of die/exittools/perf/builtin-script.c+41 -191 reply
7/7perf record: remove use of die/exittools/perf/builtin-record.c+109 -491 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] perf: cleanups related to die/exit and error handling

Round 1 removing the use of die() and exit(). It's rather slow and tedious to check all the error paths and make sure error propogation is properly done and handled, so submitting patches in phases as I have time to work on it.

David Ahern (7):
perf tool: flush_sample_queue needs to handle errors from handlers perf tool: handle errors in synthesized event functions perf lock: remove use of die and handle errors
perf stat: remove use of die/exit and handle errors perf help: remove remove use of die and handle errors perf script: remove use of die/exit
perf record: remove use of die/exit

 tools/perf/builtin-help.c   |   48 ++++++++----
 tools/perf/builtin-lock.c   |  181 +++++++++++++++++++++++++++++--------------
 tools/perf/builtin-record.c |  158 +++++++++++++++++++++++++------------
 tools/perf/builtin-script.c |   60 +++++++++-----
 tools/perf/builtin-stat.c   |    7 +-
 tools/perf/util/event.c     |   35 ++++++---
 tools/perf/util/session.c   |   24 +++---
 7 files changed, 353 insertions(+), 160 deletions(-)
Signature · 1 line
1.7.10.1