Skip to content

tracing: Convert some trace events to DEFINE_TRACE

Li Zefan lkml 1 version Applied

Status from this message: I have applied this to for-2.6.33, thanks a lot.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 33 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/9tracing: Convert module refcnt events to DEFINE_EVENTinclude/trace/events/module.h+7 -151 reply
2/9tracing: Convert some kmem events to DEFINE_EVENTinclude/trace/events/kmem.h mm/page_alloc.c mm/util.c+43 -9418 replies
3/9tracing: Convert softirq events to DEFINE_EVENTinclude/trace/events/irq.h+21 -251 reply
4/9tracing: Convert some workqueue events to DEFINE_EVENTinclude/trace/events/workqueue.h+7 -151 reply
5/9tracing: Convert some power events to DEFINE_EVENTinclude/trace/events/power.h+15 -211 reply
6/9tracing: Convert some block events to DEFINE_EVENTinclude/trace/events/block.h+42 -1606 replies
7/9tracing: Convert some jbd2 events to DEFINE_EVENTinclude/trace/events/jbd2.h+11 -521 reply
8/9tracing: Convert some ext4 events to DEFINE_TRACEinclude/trace/events/ext4.h+35 -941 reply
9/9tracing: Restore original format of sched eventsinclude/trace/events/sched.h+6 -121 reply

Reviews trailers per patch

1 of 9 patches has a Reviewed-by or Acked-by.

PatchPekka Enberg
1/9
2/9A-b A-b
3/9
4/9
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] tracing: Convert some trace events to DEFINE_TRACE

Convert some trace events defined in include/trace/events/*.h to DEFINE_TRACE and DEFINE_TRACE_PRINT.

This reduces hundreds of code lines, and shrinks the size of object files.

Tested by comparing the formats of each trace_event before and after patching.

This patchset is based on -tip tree, but I've conformed the ext4 bits won't conflict with ext4 tree.

---
 include/trace/events/block.h     |  202 ++++++++------------------------------
 include/trace/events/ext4.h      |  129 +++++++------------------
 include/trace/events/irq.h       |   46 ++++-----
 include/trace/events/jbd2.h      |   63 ++----------
 include/trace/events/kmem.h      |  130 ++++++++-----------------
 include/trace/events/module.h    |   22 ++---
 include/trace/events/power.h     |   36 +++----
 include/trace/events/sched.h     |   18 +---
 include/trace/events/workqueue.h |   22 ++---
 mm/page_alloc.c                  |    4 +-
 mm/util.c                        |    3 -
 11 files changed, 187 insertions(+), 488 deletions(-)