Commit 70d110d7 authored by Adrian Hunter's avatar Adrian Hunter Committed by Arnaldo Carvalho de Melo

perf auxtrace: Add itrace option to output power events

Add itrace option to output power events.
Signed-off-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1495786658-18063-25-git-send-email-adrian.hunter@intel.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 3bdafdff
...@@ -4,13 +4,14 @@ ...@@ -4,13 +4,14 @@
r synthesize branches events (returns only) r synthesize branches events (returns only)
x synthesize transactions events x synthesize transactions events
w synthesize ptwrite events w synthesize ptwrite events
p synthesize power events
e synthesize error events e synthesize error events
d create a debug log d create a debug log
g synthesize a call chain (use with i or x) g synthesize a call chain (use with i or x)
l synthesize last branch entries (use with i or x) l synthesize last branch entries (use with i or x)
s skip initial number of events s skip initial number of events
The default is all events i.e. the same as --itrace=ibxwe The default is all events i.e. the same as --itrace=ibxwpe
In addition, the period (default 100000) for instructions events In addition, the period (default 100000) for instructions events
can be specified in units of: can be specified in units of:
...@@ -28,7 +29,7 @@ ...@@ -28,7 +29,7 @@
instructions or transactions events can be specified. instructions or transactions events can be specified.
It is also possible to skip events generated (instructions, branches, transactions, It is also possible to skip events generated (instructions, branches, transactions,
ptwrite) at the beginning. This is useful to ignore initialization code. ptwrite, power) at the beginning. This is useful to ignore initialization code.
--itrace=i0nss1000000 --itrace=i0nss1000000
......
...@@ -948,6 +948,7 @@ void itrace_synth_opts__set_default(struct itrace_synth_opts *synth_opts) ...@@ -948,6 +948,7 @@ void itrace_synth_opts__set_default(struct itrace_synth_opts *synth_opts)
synth_opts->branches = true; synth_opts->branches = true;
synth_opts->transactions = true; synth_opts->transactions = true;
synth_opts->ptwrites = true; synth_opts->ptwrites = true;
synth_opts->pwr_events = true;
synth_opts->errors = true; synth_opts->errors = true;
synth_opts->period_type = PERF_ITRACE_DEFAULT_PERIOD_TYPE; synth_opts->period_type = PERF_ITRACE_DEFAULT_PERIOD_TYPE;
synth_opts->period = PERF_ITRACE_DEFAULT_PERIOD; synth_opts->period = PERF_ITRACE_DEFAULT_PERIOD;
...@@ -1034,6 +1035,9 @@ int itrace_parse_synth_opts(const struct option *opt, const char *str, ...@@ -1034,6 +1035,9 @@ int itrace_parse_synth_opts(const struct option *opt, const char *str,
case 'w': case 'w':
synth_opts->ptwrites = true; synth_opts->ptwrites = true;
break; break;
case 'p':
synth_opts->pwr_events = true;
break;
case 'e': case 'e':
synth_opts->errors = true; synth_opts->errors = true;
break; break;
......
...@@ -60,6 +60,7 @@ enum itrace_period_type { ...@@ -60,6 +60,7 @@ enum itrace_period_type {
* @branches: whether to synthesize 'branches' events * @branches: whether to synthesize 'branches' events
* @transactions: whether to synthesize events for transactions * @transactions: whether to synthesize events for transactions
* @ptwrites: whether to synthesize events for ptwrites * @ptwrites: whether to synthesize events for ptwrites
* @pwr_events: whether to synthesize power events
* @errors: whether to synthesize decoder error events * @errors: whether to synthesize decoder error events
* @dont_decode: whether to skip decoding entirely * @dont_decode: whether to skip decoding entirely
* @log: write a decoding log * @log: write a decoding log
...@@ -81,6 +82,7 @@ struct itrace_synth_opts { ...@@ -81,6 +82,7 @@ struct itrace_synth_opts {
bool branches; bool branches;
bool transactions; bool transactions;
bool ptwrites; bool ptwrites;
bool pwr_events;
bool errors; bool errors;
bool dont_decode; bool dont_decode;
bool log; bool log;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment