linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv9 0/7] ftrace, perf: Adding support to use function trace
@ 2012-02-15 14:51 Jiri Olsa
  2012-02-15 14:51 ` [PATCH 1/7] ftrace: Add enable/disable ftrace_ops control interface Jiri Olsa
                   ` (6 more replies)
  0 siblings, 7 replies; 28+ messages in thread
From: Jiri Olsa @ 2012-02-15 14:51 UTC (permalink / raw)
  To: rostedt, fweisbec, mingo, paulus, acme, a.p.zijlstra
  Cc: linux-kernel, aarapov

hi,
here's another version of perf support for function trace
with filter. 

attached patches:
 - 1/7 ftrace: Add enable/disable ftrace_ops control interface
 - 2/7 ftrace, perf: Add open/close tracepoint perf registration actions
 - 3/7 ftrace, perf: Add add/del tracepoint perf registration actions
 - 4/7 ftrace: Add FTRACE_ENTRY_REG macro to allow event registration
 - 5/7 ftrace, perf: Add support to use function tracepoint in perf
 - 6/7 ftrace: Allow to specify filter field type for ftrace events
 - 7/7 ftrace, perf: Add filter support for function trace event

v9 changes:
  fixed patches 5/7 and 7/7 to work with disabled options:
    CONFIG_FUNCTION_TRACER, CONFIG_DYNAMIC_FTRACE

thanks,
jirka
---
 include/linux/ftrace.h             |   77 +++++++++++++-
 include/linux/ftrace_event.h       |    9 ++-
 include/linux/perf_event.h         |    3 +
 kernel/trace/ftrace.c              |  132 ++++++++++++++++++++---
 kernel/trace/trace.h               |   38 +++++--
 kernel/trace/trace_entries.h       |   54 +++++++---
 kernel/trace/trace_event_perf.c    |  208 ++++++++++++++++++++++++++++-------
 kernel/trace/trace_events.c        |   12 ++-
 kernel/trace/trace_events_filter.c |  168 ++++++++++++++++++++++++++++-
 kernel/trace/trace_export.c        |   64 ++++++++----
 kernel/trace/trace_kprobe.c        |    8 ++-
 kernel/trace/trace_syscalls.c      |   18 +++-
 12 files changed, 671 insertions(+), 120 deletions(-)

^ permalink raw reply	[flat|nested] 28+ messages in thread
* [PATCHv3 0/8] ftrace, perf: Adding support to use function trace
@ 2011-12-21 11:48 Jiri Olsa
  2011-12-21 18:56 ` [PATCHv4 " Jiri Olsa
  0 siblings, 1 reply; 28+ messages in thread
From: Jiri Olsa @ 2011-12-21 11:48 UTC (permalink / raw)
  To: rostedt, fweisbec, mingo, paulus, acme, a.p.zijlstra
  Cc: linux-kernel, aarapov

hi,
here's another version of perf support for function trace
with filter. 

attached patches:
  1/8 ftrace: Change filter/notrace set functions to return exit code
  2/8 ftrace: Fix possible NULL dereferencing in __ftrace_hash_rec_update
  3/8 ftrace: Add enable/disable ftrace_ops control interface
  4/8 ftrace, perf: Add open/close tracepoint perf registration actions
  5/8 ftrace, perf: Add add/del tracepoint perf registration actions
  6/8 ftrace, perf: Add support to use function tracepoint in perf
  7/8 ftrace, perf: Distinguish ftrace function event field type
  8/8 ftrace, perf: Add filter support for function trace event

v3 changes:
  3/8 - renamed __add/remove_ftrace_ops
      - fixed preemtp_enable/recursion_clear order in ftrace_ops_control_func 
      - renamed/commented API functions -  enable/disable_ftrace_function
  
  ommited graph tracer workarounf patch 10/10  

v2 changes:
 01/10 - keeping the old fix instead of adding hash_has_contents func
         I'll send separating patchset for this
 02/10 - using different way to avoid the issue (3/9 in v1)
 03/10 - using the way proposed by Steven for controling ftrace_ops
         (4/9 in v1)
 06/10 - added check ensuring the ftrace:function event could be used by
         root only (7/9 in v1)
 08/10 - added more description (8/9 in v1)
 09/10 - changed '&&' operator to '||' which seems more suitable
         in this case (9/9 in v1)

thanks,
jirka
---
 include/linux/ftrace.h             |   46 ++++++++-
 include/linux/ftrace_event.h       |    9 +-
 include/linux/perf_event.h         |    3 +
 kernel/trace/ftrace.c              |  135 ++++++++++++++++++++---
 kernel/trace/trace.h               |   11 ++-
 kernel/trace/trace_event_perf.c    |  212 +++++++++++++++++++++++++++++-------
 kernel/trace/trace_events.c        |   12 ++-
 kernel/trace/trace_events_filter.c |  116 ++++++++++++++++++-
 kernel/trace/trace_export.c        |   53 ++++++++-
 kernel/trace/trace_kprobe.c        |    8 +-
 kernel/trace/trace_syscalls.c      |   18 +++-
 11 files changed, 541 insertions(+), 82 deletions(-)

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

end of thread, other threads:[~2012-02-27  9:38 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-15 14:51 [PATCHv9 0/7] ftrace, perf: Adding support to use function trace Jiri Olsa
2012-02-15 14:51 ` [PATCH 1/7] ftrace: Add enable/disable ftrace_ops control interface Jiri Olsa
2012-02-27  9:33   ` [tip:perf/core] ftrace: Add enable/ disable " tip-bot for Jiri Olsa
2012-02-15 14:51 ` [PATCH 2/7] ftrace, perf: Add open/close tracepoint perf registration actions Jiri Olsa
2012-02-27  9:34   ` [tip:perf/core] ftrace, perf: Add open/ close " tip-bot for Jiri Olsa
2012-02-15 14:51 ` [PATCH 3/7] ftrace, perf: Add add/del " Jiri Olsa
2012-02-27  9:34   ` [tip:perf/core] ftrace, perf: Add add/ del " tip-bot for Jiri Olsa
2012-02-15 14:51 ` [PATCH 4/7] ftrace: Add FTRACE_ENTRY_REG macro to allow event registration Jiri Olsa
2012-02-15 15:13   ` Frederic Weisbecker
2012-02-27  9:35   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-02-15 14:51 ` [PATCH 5/7] ftrace, perf: Add support to use function tracepoint in perf Jiri Olsa
2012-02-15 16:03   ` Frederic Weisbecker
2012-02-27  9:36   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-02-15 14:51 ` [PATCH 6/7] ftrace: Allow to specify filter field type for ftrace events Jiri Olsa
2012-02-27  9:37   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-02-15 14:51 ` [PATCH 7/7] ftrace, perf: Add filter support for function trace event Jiri Olsa
2012-02-27  9:38   ` [tip:perf/core] " tip-bot for Jiri Olsa
  -- strict thread matches above, loose matches on Subject: below --
2011-12-21 11:48 [PATCHv3 0/8] ftrace, perf: Adding support to use function trace Jiri Olsa
2011-12-21 18:56 ` [PATCHv4 " Jiri Olsa
2011-12-21 18:56   ` [PATCH 5/7] ftrace, perf: Add support to use function tracepoint in perf Jiri Olsa
2012-01-02  9:04   ` [PATCHv5 0/7] ftrace, perf: Adding support to use function trace Jiri Olsa
2012-01-02  9:04     ` [PATCH 5/7] ftrace, perf: Add support to use function tracepoint in perf Jiri Olsa
2012-01-18 18:44     ` [PATCHv6 0/7] ftrace, perf: Adding support to use function trace Jiri Olsa
2012-01-18 18:44       ` [PATCH 5/7] ftrace, perf: Add support to use function tracepoint in perf Jiri Olsa
2012-01-28 18:43       ` [PATCHv7 0/7] ftrace, perf: Adding support to use function trace Jiri Olsa
2012-01-28 18:43         ` [PATCH 5/7] ftrace, perf: Add support to use function tracepoint in perf Jiri Olsa
2012-02-02 18:14           ` Frederic Weisbecker
2012-02-03 12:54             ` Jiri Olsa
2012-02-03 13:00               ` Jiri Olsa
2012-02-03 14:07                 ` Steven Rostedt
2012-02-04 13:21               ` Frederic Weisbecker
2012-02-06 19:35                 ` Steven Rostedt
2012-02-03 13:53             ` Steven Rostedt

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).