perf record: Support per-event freq term
Now perf can set per-event value of time and (sampling) period. But I guess most users like me just want to set frequency rather than period. So add the 'freq' term in the event parser. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Kan Liang <kan.liang@intel.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1439102724-14079-1-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
31191a85fb
commit
09af2a5535
@@ -39,6 +39,7 @@ struct cgroup_sel;
|
||||
*/
|
||||
enum {
|
||||
PERF_EVSEL__CONFIG_TERM_PERIOD,
|
||||
PERF_EVSEL__CONFIG_TERM_FREQ,
|
||||
PERF_EVSEL__CONFIG_TERM_TIME,
|
||||
PERF_EVSEL__CONFIG_TERM_MAX,
|
||||
};
|
||||
@@ -48,6 +49,7 @@ struct perf_evsel_config_term {
|
||||
int type;
|
||||
union {
|
||||
u64 period;
|
||||
u64 freq;
|
||||
bool time;
|
||||
} val;
|
||||
};
|
||||
|
Reference in New Issue
Block a user