Home
last modified time | relevance | path

Searched refs:perf_event (Results 1 – 25 of 70) sorted by relevance

123

/drivers/perf/hisilicon/
A Dhisi_uncore_pmu.h54 int (*check_filter)(struct perf_event *event);
56 int (*get_event_idx)(struct perf_event *);
67 void (*enable_filter)(struct perf_event *event);
68 void (*disable_filter)(struct perf_event *event);
81 struct perf_event *hw_events[HISI_MAX_COUNTERS];
146 int hisi_uncore_pmu_get_event_idx(struct perf_event *event);
147 void hisi_uncore_pmu_read(struct perf_event *event);
148 int hisi_uncore_pmu_add(struct perf_event *event, int flags);
149 void hisi_uncore_pmu_del(struct perf_event *event, int flags);
153 void hisi_uncore_pmu_event_update(struct perf_event *event);
[all …]
A Dhisi_pcie_pmu.c66 struct perf_event *hw_events[HISI_PCIE_MAX_COUNTERS];
88 static u64 hisi_pcie_get_##_name(struct perf_event *event) \
185 static u32 hisi_pcie_get_real_event(struct perf_event *event) in hisi_pcie_get_real_event()
328 struct perf_event *event) in hisi_pcie_pmu_cmp_event()
336 struct perf_event *sibling, *leader = event->group_leader; in hisi_pcie_pmu_validate_event_group()
337 struct perf_event *event_group[HISI_PCIE_MAX_COUNTERS]; in hisi_pcie_pmu_validate_event_group()
381 static int hisi_pcie_pmu_event_init(struct perf_event *event) in hisi_pcie_pmu_event_init()
423 struct perf_event *event) in hisi_pcie_pmu_get_event_idx()
426 struct perf_event *sibling; in hisi_pcie_pmu_get_event_idx()
461 static void hisi_pcie_pmu_read(struct perf_event *event) in hisi_pcie_pmu_read()
[all …]
A Dhisi_uncore_pmu.c97 static bool hisi_validate_event_group(struct perf_event *event) in hisi_validate_event_group()
99 struct perf_event *sibling, *leader = event->group_leader; in hisi_validate_event_group()
130 int hisi_uncore_pmu_get_event_idx(struct perf_event *event) in hisi_uncore_pmu_get_event_idx()
155 struct perf_event *event; in hisi_uncore_pmu_isr()
206 int hisi_uncore_pmu_event_init(struct perf_event *event) in hisi_uncore_pmu_event_init()
294 void hisi_uncore_pmu_set_event_period(struct perf_event *event) in hisi_uncore_pmu_set_event_period()
314 void hisi_uncore_pmu_event_update(struct perf_event *event) in hisi_uncore_pmu_event_update()
358 void hisi_uncore_pmu_stop(struct perf_event *event, int flags) in hisi_uncore_pmu_stop()
375 int hisi_uncore_pmu_add(struct perf_event *event, int flags) in hisi_uncore_pmu_add()
398 void hisi_uncore_pmu_del(struct perf_event *event, int flags) in hisi_uncore_pmu_del()
[all …]
A Dhns3_pmu.c302 struct perf_event *hw_events[HNS3_PMU_MAX_HW_EVENTS];
717 static u32 hns3_pmu_get_event(struct perf_event *event) in hns3_pmu_get_event()
766 static bool hns3_pmu_cmp_event(struct perf_event *target, in hns3_pmu_cmp_event()
767 struct perf_event *event) in hns3_pmu_cmp_event()
773 struct perf_event *event) in hns3_pmu_find_related_event_idx()
775 struct perf_event *sibling; in hns3_pmu_find_related_event_idx()
936 hns3_pmu_is_enabled_global_mode(struct perf_event *event, in hns3_pmu_is_enabled_global_mode()
988 hns3_pmu_is_enabled_port_tc_mode(struct perf_event *event, in hns3_pmu_is_enabled_port_tc_mode()
1057 struct perf_event *event_group[HNS3_PMU_MAX_HW_EVENTS]; in hns3_pmu_validate_event_group()
1234 static int hns3_pmu_event_init(struct perf_event *event) in hns3_pmu_event_init()
[all …]
/drivers/perf/
A Dqcom_l3_pmu.c136 static inline u32 get_event_type(struct perf_event *event) in get_event_type()
146 static inline int event_num_counters(struct perf_event *event) in event_num_counters()
158 struct perf_event *events[L3_NUM_COUNTERS];
175 void (*start)(struct perf_event *event);
177 void (*stop)(struct perf_event *event, int flags);
179 void (*update)(struct perf_event *event);
402 struct perf_event *event; in qcom_l3_cache__handle_irq()
453 struct perf_event *leader = event->group_leader; in qcom_l3_cache__validate_event_group()
454 struct perf_event *sibling; in qcom_l3_cache__validate_event_group()
478 static int qcom_l3_cache__event_init(struct perf_event *event) in qcom_l3_cache__event_init()
[all …]
A Darm_pmuv3.c872 struct perf_event *event, in read_branch_records()
911 struct perf_event *event = cpuc->events[idx]; in armv8pmu_handle_irq()
982 struct perf_event *event) in armv8pmu_get_event_idx()
1022 struct perf_event *event) in armv8pmu_clear_event_idx()
1059 struct perf_event *perf_event = container_of(attr, struct perf_event, in armv8pmu_set_event_filter() local
1061 struct arm_pmu *cpu_pmu = to_arm_pmu(perf_event->pmu); in armv8pmu_set_event_filter()
1069 if (has_branch_stack(perf_event)) { in armv8pmu_set_event_filter()
1073 perf_event->attach_state |= PERF_ATTACH_SCHED_CB; in armv8pmu_set_event_filter()
1161 struct perf_event *event) in __armv8_pmuv3_map_event_id()
1240 static int armv8_a53_map_event(struct perf_event *event) in armv8_a53_map_event()
[all …]
A Driscv_pmu.c21 static bool riscv_perf_user_access(struct perf_event *event) in riscv_perf_user_access()
30 void arch_perf_update_userpage(struct perf_event *event, in arch_perf_update_userpage()
145 u64 riscv_pmu_ctr_get_width_mask(struct perf_event *event) in riscv_pmu_ctr_get_width_mask()
160 u64 riscv_pmu_event_update(struct perf_event *event) in riscv_pmu_event_update()
187 void riscv_pmu_stop(struct perf_event *event, int flags) in riscv_pmu_stop()
202 int riscv_pmu_event_set_period(struct perf_event *event) in riscv_pmu_event_set_period()
240 void riscv_pmu_start(struct perf_event *event, int flags) in riscv_pmu_start()
257 static int riscv_pmu_add(struct perf_event *event, int flags) in riscv_pmu_add()
299 static void riscv_pmu_read(struct perf_event *event) in riscv_pmu_read()
304 static int riscv_pmu_event_init(struct perf_event *event) in riscv_pmu_event_init()
[all …]
A Darm_brbe.h12 struct perf_event;
22 bool brbe_branch_attr_valid(struct perf_event *event);
24 const struct perf_event *event);
37 static inline bool brbe_branch_attr_valid(struct perf_event *event) in brbe_branch_attr_valid()
44 const struct perf_event *event) in brbe_read_filtered_entries()
A Driscv_pmu_legacy.c20 static int pmu_legacy_ctr_get_idx(struct perf_event *event) in pmu_legacy_ctr_get_idx()
35 static int pmu_legacy_event_map(struct perf_event *event, u64 *config) in pmu_legacy_event_map()
46 static u64 pmu_legacy_read_ctr(struct perf_event *event) in pmu_legacy_read_ctr()
66 static void pmu_legacy_ctr_start(struct perf_event *event, u64 ival) in pmu_legacy_ctr_start()
80 static uint8_t pmu_legacy_csr_index(struct perf_event *event) in pmu_legacy_csr_index()
85 static void pmu_legacy_event_mapped(struct perf_event *event, struct mm_struct *mm) in pmu_legacy_event_mapped()
94 static void pmu_legacy_event_unmapped(struct perf_event *event, struct mm_struct *mm) in pmu_legacy_event_unmapped()
A Dthunderx2_pmu.c105 struct perf_event *events[TX2_PMU_MAX_COUNTERS];
111 void (*init_cntr_base)(struct perf_event *event,
113 void (*stop_event)(struct perf_event *event);
114 void (*start_event)(struct perf_event *event, int flags);
322 static void init_cntr_base_l3c(struct perf_event *event, in init_cntr_base_l3c()
338 static void init_cntr_base_dmc(struct perf_event *event, in init_cntr_base_dmc()
354 static void init_cntr_base_ccpi2(struct perf_event *event, in init_cntr_base_ccpi2()
413 static void uncore_stop_event_dmc(struct perf_event *event) in uncore_stop_event_dmc()
523 struct perf_event *event, int *counters) in tx2_uncore_validate_event()
567 static int tx2_uncore_event_init(struct perf_event *event) in tx2_uncore_event_init()
[all …]
A Dstarfive_starlink_pmu.c65 struct perf_event *events[STARLINK_PMU_MAX_COUNTERS];
175 static void starlink_pmu_counter_start(struct perf_event *event, in starlink_pmu_counter_start()
212 static void starlink_pmu_counter_stop(struct perf_event *event, in starlink_pmu_counter_stop()
232 static void starlink_pmu_update(struct perf_event *event) in starlink_pmu_update()
290 static int starlink_pmu_add(struct perf_event *event, int flags) in starlink_pmu_add()
330 static void starlink_pmu_del(struct perf_event *event, int flags) in starlink_pmu_del()
346 struct perf_event *leader = event->group_leader; in starlink_pmu_validate_event_group()
347 struct perf_event *sibling; in starlink_pmu_validate_event_group()
368 static int starlink_pmu_event_init(struct perf_event *event) in starlink_pmu_event_init()
407 struct perf_event *event = hw_events->events[idx]; in starlink_pmu_handle_irq()
[all …]
A Darm_xscale_pmu.c174 struct perf_event *event = cpuc->events[idx]; in xscale1pmu_handle_irq()
203 static void xscale1pmu_enable_event(struct perf_event *event) in xscale1pmu_enable_event()
235 static void xscale1pmu_disable_event(struct perf_event *event) in xscale1pmu_disable_event()
267 struct perf_event *event) in xscale1pmu_get_event_idx()
287 struct perf_event *event) in xscalepmu_clear_event_idx()
310 static inline u64 xscale1pmu_read_counter(struct perf_event *event) in xscale1pmu_read_counter()
349 static int xscale_map_event(struct perf_event *event) in xscale_map_event()
506 struct perf_event *event = cpuc->events[idx]; in xscale2pmu_handle_irq()
535 static void xscale2pmu_enable_event(struct perf_event *event) in xscale2pmu_enable_event()
577 static void xscale2pmu_disable_event(struct perf_event *event) in xscale2pmu_disable_event()
[all …]
A Darm_dsu_pmu.c95 struct perf_event *events[DSU_PMU_MAX_HW_CNTRS];
282 struct perf_event *event) in dsu_pmu_get_event_idx()
315 struct perf_event *event) in dsu_pmu_set_event()
331 static void dsu_pmu_event_update(struct perf_event *event) in dsu_pmu_event_update()
346 static void dsu_pmu_read(struct perf_event *event) in dsu_pmu_read()
385 struct perf_event *event = hw_events->events[i]; in dsu_pmu_handle_irq()
422 static int dsu_pmu_add(struct perf_event *event, int flags) in dsu_pmu_add()
448 static void dsu_pmu_del(struct perf_event *event, int flags) in dsu_pmu_del()
493 struct perf_event *event) in dsu_pmu_validate_event()
509 struct perf_event *sibling, *leader = event->group_leader; in dsu_pmu_validate_group()
[all …]
A Darm_dmc620_pmu.c100 struct perf_event *events[DMC620_PMU_MAX_COUNTERS];
293 static int dmc620_get_event_idx(struct perf_event *event) in dmc620_get_event_idx()
316 u64 dmc620_pmu_read_counter(struct perf_event *event) in dmc620_pmu_read_counter()
324 static void dmc620_pmu_event_update(struct perf_event *event) in dmc620_pmu_event_update()
348 static void dmc620_pmu_enable_counter(struct perf_event *event) in dmc620_pmu_enable_counter()
375 struct perf_event *event; in dmc620_pmu_handle_irq()
512 static int dmc620_pmu_event_init(struct perf_event *event) in dmc620_pmu_event_init()
516 struct perf_event *sibling; in dmc620_pmu_event_init()
566 static void dmc620_pmu_read(struct perf_event *event) in dmc620_pmu_read()
588 static int dmc620_pmu_add(struct perf_event *event, int flags) in dmc620_pmu_add()
[all …]
A Darm_v6_pmu.c172 static inline u64 armv6pmu_read_counter(struct perf_event *event) in armv6pmu_read_counter()
190 static inline void armv6pmu_write_counter(struct perf_event *event, u64 value) in armv6pmu_write_counter()
205 static void armv6pmu_enable_event(struct perf_event *event) in armv6pmu_enable_event()
259 struct perf_event *event = cpuc->events[idx]; in armv6pmu_handle_irq()
314 struct perf_event *event) in armv6pmu_get_event_idx()
340 struct perf_event *event) in armv6pmu_clear_event_idx()
345 static void armv6pmu_disable_event(struct perf_event *event) in armv6pmu_disable_event()
376 static int armv6_map_event(struct perf_event *event) in armv6_map_event()
A Darm_smmuv3_pmu.c124 struct perf_event *events[SMMU_PMCG_MAX_COUNTERS];
164 struct perf_event *event, int idx);
254 static void smmu_pmu_event_update(struct perf_event *event) in smmu_pmu_event_update()
314 struct perf_event *new) in smmu_pmu_check_global_filter()
327 struct perf_event *event, int idx) in smmu_pmu_apply_event_filter()
358 struct perf_event *event) in smmu_pmu_get_event_idx()
378 struct perf_event *new) in smmu_pmu_events_compatible()
395 static int smmu_pmu_event_init(struct perf_event *event) in smmu_pmu_event_init()
400 struct perf_event *sibling; in smmu_pmu_event_init()
527 static void smmu_pmu_event_read(struct perf_event *event) in smmu_pmu_event_read()
[all …]
A Dalibaba_uncore_drw_pmu.c102 struct perf_event *events[ALI_DRW_PMU_COMMON_MAX_COUNTERS];
266 static int ali_drw_get_counter_idx(struct perf_event *event) in ali_drw_get_counter_idx()
280 static u64 ali_drw_pmu_read_counter(struct perf_event *event) in ali_drw_pmu_read_counter()
297 static void ali_drw_pmu_event_update(struct perf_event *event) in ali_drw_pmu_event_update()
334 static void ali_drw_pmu_enable_counter(struct perf_event *event) in ali_drw_pmu_enable_counter()
379 struct perf_event *event; in ali_drw_pmu_isr()
525 static int ali_drw_pmu_event_init(struct perf_event *event) in ali_drw_pmu_event_init()
529 struct perf_event *sibling; in ali_drw_pmu_event_init()
613 static int ali_drw_pmu_add(struct perf_event *event, int flags) in ali_drw_pmu_add()
642 static void ali_drw_pmu_del(struct perf_event *event, int flags) in ali_drw_pmu_del()
[all …]
A Darm_pmu.c174 armpmu_map_event(struct perf_event *event, in armpmu_map_event()
200 int armpmu_event_set_period(struct perf_event *event) in armpmu_event_set_period()
242 u64 armpmu_event_update(struct perf_event *event) in armpmu_event_update()
266 armpmu_read(struct perf_event *event) in armpmu_read()
272 armpmu_stop(struct perf_event *event, int flags) in armpmu_stop()
313 armpmu_del(struct perf_event *event, int flags) in armpmu_del()
335 armpmu_add(struct perf_event *event, int flags) in armpmu_add()
374 struct perf_event *event) in validate_event()
400 validate_group(struct perf_event *event) in validate_group()
453 __hw_perf_event_init(struct perf_event *event) in __hw_perf_event_init()
[all …]
A Dfsl_imx8_ddr_perf.c118 struct perf_event *events[NUM_COUNTERS];
321 static bool ddr_perf_is_filtered(struct perf_event *event) in ddr_perf_is_filtered()
326 static u32 ddr_perf_filter_val(struct perf_event *event) in ddr_perf_filter_val()
331 static bool ddr_perf_filters_compatible(struct perf_event *a, in ddr_perf_filters_compatible()
332 struct perf_event *b) in ddr_perf_filters_compatible()
382 struct perf_event *event = pmu->events[counter]; in ddr_perf_read_counter()
395 static int ddr_perf_event_init(struct perf_event *event) in ddr_perf_event_init()
399 struct perf_event *sibling; in ddr_perf_event_init()
499 static void ddr_perf_event_update(struct perf_event *event) in ddr_perf_event_update()
550 static int ddr_perf_event_add(struct perf_event *event, int flags) in ddr_perf_event_add()
[all …]
A Dcxl_pmu.c98 struct perf_event **hw_events;
275 static u32 cxl_pmu_config_get_mask(struct perf_event *event) in cxl_pmu_config_get_mask()
280 static u16 cxl_pmu_config_get_gid(struct perf_event *event) in cxl_pmu_config_get_gid()
285 static u16 cxl_pmu_config_get_vid(struct perf_event *event) in cxl_pmu_config_get_vid()
290 static u8 cxl_pmu_config1_get_threshold(struct perf_event *event) in cxl_pmu_config1_get_threshold()
295 static bool cxl_pmu_config1_get_invert(struct perf_event *event) in cxl_pmu_config1_get_invert()
300 static bool cxl_pmu_config1_get_edge(struct perf_event *event) in cxl_pmu_config1_get_edge()
561 static int cxl_pmu_event_init(struct perf_event *event) in cxl_pmu_event_init()
676 static u64 cxl_pmu_read_counter(struct perf_event *event) in cxl_pmu_read_counter()
706 static void cxl_pmu_read(struct perf_event *event) in cxl_pmu_read()
[all …]
/drivers/gpu/drm/xe/
A Dxe_pmu.c91 static struct xe_gt *event_to_gt(struct perf_event *event) in event_to_gt()
99 static struct xe_hw_engine *event_to_hwe(struct perf_event *event) in event_to_hwe()
125 static bool is_gt_frequency_event(struct perf_event *event) in is_gt_frequency_event()
133 static bool event_gt_forcewake(struct perf_event *event) in event_gt_forcewake()
173 static bool event_param_valid(struct perf_event *event) in event_param_valid()
214 static void xe_pmu_event_destroy(struct perf_event *event) in xe_pmu_event_destroy()
232 static int xe_pmu_event_init(struct perf_event *event) in xe_pmu_event_init()
294 static u64 __xe_pmu_event_read(struct perf_event *event) in __xe_pmu_event_read()
316 static void xe_pmu_event_update(struct perf_event *event) in xe_pmu_event_update()
336 static void xe_pmu_event_read(struct perf_event *event) in xe_pmu_event_read()
[all …]
/drivers/dma/idxd/
A Dperfmon.c56 struct perf_event *leader, in perfmon_collect_events()
59 struct perf_event *event; in perfmon_collect_events()
94 struct perf_event *event, int idx) in perfmon_assign_hw_event()
105 struct perf_event *event) in perfmon_assign_event()
125 struct perf_event *event) in perfmon_validate_group()
127 struct perf_event *leader = event->group_leader; in perfmon_validate_group()
168 static int perfmon_pmu_event_init(struct perf_event *event) in perfmon_pmu_event_init()
199 static inline u64 perfmon_pmu_read_counter(struct perf_event *event) in perfmon_pmu_read_counter()
210 static void perfmon_pmu_event_update(struct perf_event *event) in perfmon_pmu_event_update()
233 struct perf_event *event; in perfmon_counter_overflow()
[all …]
/drivers/perf/arm_cspmu/
A Darm_cspmu.h130 struct perf_event **events;
152 bool (*is_cycle_counter_event)(const struct perf_event *event);
154 u32 (*event_type)(const struct perf_event *event);
157 const struct perf_event *event);
159 const struct perf_event *event);
162 struct perf_event *event);
A Dampere_cspmu.c29 static inline u32 get_##_name(const struct perf_event *event) \
136 const struct perf_event *event) in ampere_cspmu_set_cc_filter()
145 const struct perf_event *event) in ampere_cspmu_set_ev_filter()
158 static int ampere_cspmu_validate_configs(struct perf_event *event, in ampere_cspmu_validate_configs()
159 struct perf_event *event2) in ampere_cspmu_validate_configs()
170 struct perf_event *new) in ampere_cspmu_validate_event()
172 struct perf_event *curr, *leader = new->group_leader; in ampere_cspmu_validate_event()
A Darm_cspmu.c69 const struct perf_event *event);
71 const struct perf_event *event);
513 struct perf_event *event) in arm_cspmu_get_event_idx()
562 struct perf_event *event) in arm_cspmu_validate_event()
580 struct perf_event *sibling, *leader = event->group_leader; in arm_cspmu_validate_group()
600 static int arm_cspmu_event_init(struct perf_event *event) in arm_cspmu_event_init()
682 static u64 arm_cspmu_read_counter(struct perf_event *event) in arm_cspmu_read_counter()
768 const struct perf_event *event) in arm_cspmu_set_ev_filter()
779 const struct perf_event *event) in arm_cspmu_set_cc_filter()
874 static void arm_cspmu_read(struct perf_event *event) in arm_cspmu_read()
[all …]

Completed in 65 milliseconds

123