linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] tracing: Add and use event_command parsing func helpers
@ 2021-11-23 20:53 Tom Zanussi
  2021-11-23 20:53 ` [PATCH v3 1/2] tracing: Add helper functions to simplify event_command callback handling Tom Zanussi
  2021-11-23 20:53 ` [PATCH v3 2/2] tracing: Have existing event_command implementations use helpers Tom Zanussi
  0 siblings, 2 replies; 7+ messages in thread
From: Tom Zanussi @ 2021-11-23 20:53 UTC (permalink / raw)
  To: rostedt; +Cc: mhiramat, linux-kernel

With more event commands being implemented, it's been pointed out that
it would make sense to clean up the existing ones and make it easier
to implement new ones without copying a lot of boilerplate.  The main
culprit here is the event_command.func() callback - the rest of the
event_command infrastructure has default implementations that work for
most implementations.  The func() callback is a little different in
that every new command needs to customize parsing to some extent.

This patchset attempts to help clean that up and make it easier for
new users to deal with.

v3: broke up event_trigger_check() into smaller functions instead of
    parameterizing it, and added function documentation.

v2: removed unused event_trigger_remove(). No change in functionality.

The following changes since commit 67d4f6e3bf5dddced226fbf19704cdbbb0c98847:

  ftrace/samples: Add missing prototype for my_direct_func (2021-11-01 20:56:51 -0400)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/zanussi/linux-trace.git ftrace/cleanup-hist-func-v3

Tom Zanussi (2):
  tracing: Add helper functions to simplify event_command callback
    handling
  tracing: Have existing event_command implementations use helpers

 kernel/trace/trace.h                |  23 ++
 kernel/trace/trace_events_hist.c    |  51 +---
 kernel/trace/trace_events_trigger.c | 439 ++++++++++++++++++++--------
 3 files changed, 361 insertions(+), 152 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-11-30 23:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-23 20:53 [PATCH v3 0/2] tracing: Add and use event_command parsing func helpers Tom Zanussi
2021-11-23 20:53 ` [PATCH v3 1/2] tracing: Add helper functions to simplify event_command callback handling Tom Zanussi
2021-11-30 21:46   ` Steven Rostedt
2021-11-30 23:10     ` Tom Zanussi
2021-11-23 20:53 ` [PATCH v3 2/2] tracing: Have existing event_command implementations use helpers Tom Zanussi
2021-11-30 21:31   ` Steven Rostedt
2021-11-30 21:42     ` Tom Zanussi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).