diff options
author | Kajol Jain <[email protected]> | 2020-09-07 12:11:30 +0530 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2020-09-10 09:18:04 -0300 |
commit | 71a374bb1847824b60a3bfdd3af8a13b6ec3a22d (patch) | |
tree | 64ae75b21c97a315c2594186b0ad35665dc2ecf6 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 0d52b7889be17076e0c9c535d74db9c4c8b506ce (diff) |
perf jevents: Add new structure to pass json fields.
This patch adds new structure called 'json_event' inside jevents.c
file to improve the callback prototype inside jevent files.
Initially, whenever user want to add new field, they need to update
in all function callback which make it more and more complex with
increased number of parmeters.
With this change, we just need to add it in new structure 'json_event'.
Signed-off-by: Kajol Jain <[email protected]>
Reviewed-by: Andi Kleen <[email protected]>
Reviewed-by: John Garry <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Jin Yao <[email protected]>
Cc: Madhavan Srinivasan <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Clarke <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Ravi Bangoria <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions