diff options
author | Mathieu Poirier <[email protected]> | 2016-09-06 10:37:15 -0600 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-09-13 17:09:11 -0300 |
commit | dd60fba7324572498d91163e96b1cfe5cd5f7f3b (patch) | |
tree | 840943df1c2f561e7de3c4a0e603f58e82b25e1a /scripts/gdb/linux/lists.py | |
parent | 30d476ae738d1ce33f170dd79398ecd211274df6 (diff) |
perf tools: Add infrastructure for PMU specific configuration
This patch adds PMU driver specific configuration to the parser
infrastructure by preceding any term with the '@' letter. As such doing
something like:
perf record -e some_event/@cfg1,@cfg2=config/ ...
will see 'cfg1' and 'cfg2=config' being added to the list of evsel
config terms. Token 'cfg1' and 'cfg2=config' are not processed in user
space and are meant to be interpreted by the PMU driver.
First the lexer/parser are supplemented with the required definitions to
recognise the driver specific configuration. From there they are simply
added to the list of event terms. The bulk of the work is done in
function "parse_events_add_pmu()" where driver config event terms are
added to a new list of driver config terms, which in turn spliced with
the event's new driver configuration list.
Signed-off-by: Mathieu Poirier <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions