aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorShaokun Zhang <[email protected]>2021-03-08 14:50:30 +0800
committerWill Deacon <[email protected]>2021-03-25 13:03:45 +0000
commitbaff06c315a146a6943b4fcabb4fe4fa36167413 (patch)
tree2680c2de63fd28296342adcf089897fdc0574e6f /tools/perf/scripts/python/export-to-postgresql.py
parent4e4cb8ca48bd68c00df67c10ff867016abb7391f (diff)
drivers/perf: hisi: Refactor code for more uncore PMUs
On HiSilicon uncore PMU drivers, interrupt handling function and interrupt registration function are very similar in differents PMU modules. Let's refactor the frame. Two new callbacks are added for the HW accessors: * hisi_uncore_ops::get_int_status returns a bitmap of events which have overflowed and raised an interrupt * hisi_uncore_ops::clear_int_status clears the overflow status for a specific event These callback functions are used by a common IRQ handler, hisi_uncore_pmu_isr(). One more function hisi_uncore_pmu_init_irq() is added to replace each PMU initialization IRQ interface and simplify the code. Cc: Mark Rutland <[email protected]> Cc: Will Deacon <[email protected]> Cc: John Garry <[email protected]> Cc: Jonathan Cameron <[email protected]> Reviewed-by: John Garry <[email protected]> Co-developed-by: Qi Liu <[email protected]> Signed-off-by: Qi Liu <[email protected]> Signed-off-by: Shaokun Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions