Skip to content

tools lib traceevent: Get rid of *die() calls finally!! (v2)

Namhyung Kim lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tools lib traceevent: Add WARN and WARN_ONCE macrostools/lib/traceevent/event-utils.h+22 -02 replies
2/5tools lib traceevent: Add state member to struct trace_seqtools/lib/traceevent/event-parse.h tools/lib/traceevent/trace-seq.c+45 -42 replies
3/5tools lib traceevent: Check return value of realloc()tools/lib/traceevent/trace-seq.c+9 -30 replies
4/5tools lib traceevent: Get rid of malloc_or_die() in trace_seq_init()tools/lib/traceevent/trace-seq.c+5 -20 replies
5/5tools lib traceevent: Get rid of die() finally!!tools/lib/traceevent/event-utils.h tools/lib/traceevent/parse-utils.c+0 -481 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCHSET 0/5] tools lib traceevent: Get rid of *die() calls finally!! (v2)

Hello,

I've added WARN_ONCE in TRACE_SEQ_CHECK() as Jiri said. Other patches are same as the privous version.

You can also get this on my 'libtraceevent/die-removal-v5' branch in my tree

git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git

Thanks,
Namhyung

Namhyung Kim (5):
tools lib traceevent: Add WARN and WARN_ONCE macros
tools lib traceevent: Add state member to struct trace_seq tools lib traceevent: Check return value of realloc() tools lib traceevent: Get rid of malloc_or_die() in trace_seq_init() tools lib traceevent: Get rid of die() finally!!

 tools/lib/traceevent/event-parse.h |  7 +++++
 tools/lib/traceevent/event-utils.h | 26 ++++++++++++++---
 tools/lib/traceevent/parse-utils.c | 44 -----------------------------
 tools/lib/traceevent/trace-seq.c   | 57 +++++++++++++++++++++++++++++++++-----
 4 files changed, 79 insertions(+), 55 deletions(-)
Signature · 1 line
1.7.11.7