projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91a2c3d
)
perf script: Add process_stat/process_stat_interval scripting interface
author
Jiri Olsa
<
[email protected]
>
Tue, 5 Jan 2016 21:09:08 +0000
(22:09 +0100)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Wed, 6 Jan 2016 23:11:15 +0000
(20:11 -0300)
Python and perl scripting code will define those callbacks and get stat
data.
Signed-off-by: Jiri Olsa <
[email protected]
>
Tested-by: Kan Liang <
[email protected]
>
Cc: David Ahern <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
[ Rename 'time' parameters to 'tstamp', to fix the build in older distros ]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/util/trace-event.h
patch
|
blob
|
history
diff --git
a/tools/perf/util/trace-event.h
b/tools/perf/util/trace-event.h
index b85ee55cca0cc943c75e2ea348b932236ff0618f..bce5b1dac26827735e538d737e9417555f3c3e2b 100644
(file)
--- a/
tools/perf/util/trace-event.h
+++ b/
tools/perf/util/trace-event.h
@@
-65,6
+65,7
@@
int tracing_data_put(struct tracing_data *tdata);
struct addr_location;
struct perf_session;
+struct perf_stat_config;
struct scripting_ops {
const char *name;
@@
-75,6
+76,9
@@
struct scripting_ops {
struct perf_sample *sample,
struct perf_evsel *evsel,
struct addr_location *al);
+ void (*process_stat)(struct perf_stat_config *config,
+ struct perf_evsel *evsel, u64 tstamp);
+ void (*process_stat_interval)(u64 tstamp);
int (*generate_script) (struct pevent *pevent, const char *outfile);
};