Jiri Olsa
ced39002f5
ftrace, perf: Add support to use function tracepoint in perf
...
Adding perf registration support for the ftrace function event,
so it is now possible to register it via perf interface.
The perf_event struct statically contains ftrace_ops as a handle
for function tracer. The function tracer is registered/unregistered
in open/close actions.
To be efficient, we enable/disable ftrace_ops each time the traced
process is scheduled in/out (via TRACE_REG_PERF_(ADD|DELL) handlers).
This way tracing is enabled only when the process is running.
Intentionally using this way instead of the event's hw state
PERF_HES_STOPPED, which would not disable the ftrace_ops.
It is now possible to use function trace within perf commands
like:
perf record -e ftrace:function ls
perf stat -e ftrace:function ls
Allowed only for root.
Link: http://lkml.kernel.org/r/1329317514-8131-6-git-send-email-jolsa@redhat.com
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2012-02-21 11:08:27 -05:00
..
2012-01-13 09:32:14 +10:30
2012-01-31 13:02:37 +01:00
2011-07-26 16:49:45 -07:00
2012-02-03 09:48:19 -05:00
2012-01-29 20:35:52 +01:00
2012-01-27 12:49:41 +01:00
2012-01-16 09:41:18 -08:00
2012-02-21 11:08:27 -05:00
2012-01-08 12:19:57 -08:00
2012-01-13 09:32:18 +10:30
2011-07-20 14:10:11 -07:00
2011-03-14 09:15:23 -04:00
2012-01-17 16:41:31 -08:00
2012-01-17 16:16:57 -05:00
2012-01-17 16:17:01 -05:00
2012-01-23 08:44:53 -08:00
2011-03-23 19:46:28 -07:00
2012-01-17 10:19:41 -08:00
2012-01-09 12:59:24 -08:00
2012-01-09 12:59:24 -08:00
2011-10-31 19:30:05 -04:00
2011-07-25 20:57:15 -07:00
2011-09-23 12:05:29 +05:30
2012-01-08 13:10:57 -08:00
2012-01-09 12:59:24 -08:00
2011-11-06 19:44:47 -08:00
2011-10-31 09:20:12 -04:00
2011-07-14 12:59:14 +03:00
2011-10-31 09:20:12 -04:00
2012-01-27 11:55:36 +01:00
2011-05-20 08:56:56 +02:00
2012-02-02 12:55:17 -08:00
2011-11-23 09:28:17 -08:00
2011-03-23 19:47:08 -07:00
2011-12-31 11:48:28 -08:00
2011-10-31 09:20:12 -04:00
2011-11-28 08:43:52 -08:00
2012-01-03 16:14:32 -08:00
2011-10-31 09:20:12 -04:00
2011-12-15 14:56:19 +01:00
2011-12-27 11:22:24 +02:00
2011-03-25 17:52:22 -07:00
2011-04-10 17:01:05 +02:00
2011-06-10 15:15:40 +02:00
2012-01-12 20:13:11 -08:00
2011-10-31 09:20:12 -04:00
2011-12-25 23:42:20 +01:00
2012-01-23 08:38:48 -08:00
2011-10-31 09:20:13 -04:00
2011-11-23 09:28:17 -08:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2012-01-06 08:02:58 -08:00
2012-01-14 00:33:03 +01:00
2012-01-15 16:21:07 -08:00
2011-10-31 09:20:12 -04:00
2011-04-14 08:52:33 +02:00
2011-10-31 09:20:12 -04:00
2011-04-14 08:52:33 +02:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2012-01-12 20:13:11 -08:00
2012-01-13 09:32:17 +10:30
2012-01-12 20:13:11 -08:00
2012-01-12 20:13:11 -08:00
2011-12-15 14:56:19 +01:00
2011-10-31 09:20:12 -04:00
2012-02-13 13:46:05 -05:00
2011-10-31 09:20:12 -04:00
2012-01-14 18:36:33 -08:00
2011-10-31 09:20:11 -04:00
2011-12-11 10:31:42 -08:00
2011-12-11 10:31:30 -08:00
2011-12-11 10:33:19 -08:00
2011-12-11 10:32:22 -08:00
2012-01-16 09:44:05 -08:00
2011-12-11 10:33:19 -08:00
2011-12-11 10:31:24 -08:00
2011-12-11 10:32:22 -08:00
2011-12-11 10:32:09 -08:00
2012-01-03 22:54:56 -05:00
2012-01-22 15:08:46 -05:00
2011-10-31 09:20:12 -04:00
2011-01-27 21:13:51 -05:00
2011-12-06 08:16:49 +01:00
2011-12-14 14:54:22 -08:00
2011-12-11 10:33:18 -08:00
2011-10-31 09:20:12 -04:00
2012-01-17 16:16:55 -05:00
2011-10-31 09:20:12 -04:00
2012-01-13 18:49:02 +01:00
2011-10-31 09:20:12 -04:00
2012-02-03 09:48:19 -05:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-11-06 19:44:47 -08:00
2011-10-31 17:30:44 -07:00
2012-01-12 20:13:13 -08:00
2011-12-20 10:25:04 -08:00
2011-08-12 16:21:35 -05:00
2011-12-05 11:37:47 +01:00
2011-09-19 17:04:37 -07:00
2011-10-31 09:20:12 -04:00
2012-01-06 07:53:34 -08:00
2012-01-16 11:35:57 -05:00
2011-12-15 14:56:19 +01:00
2011-03-23 19:47:08 -07:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-11-06 19:44:47 -08:00
2011-10-31 09:20:12 -04:00
2011-12-21 10:07:39 +01:00
2012-02-11 15:11:33 +01:00
2012-01-10 16:30:54 -08:00