Home
last modified time | relevance | path

Searched refs:perf_event (Results 51 – 75 of 347) sorted by relevance

12345678910>>...14

/linux/arch/powerpc/perf/
H A Dcore-fsl-emb.c23 struct perf_event *event[MAX_HWEVENTS];
162 static void fsl_emb_pmu_read(struct perf_event *event) in fsl_emb_pmu_read()
251 static int collect_events(struct perf_event *group, int max_count, in collect_events()
252 struct perf_event *ctrs[]) in collect_events()
255 struct perf_event *event; in collect_events()
276 static int fsl_emb_pmu_add(struct perf_event *event, int flags) in fsl_emb_pmu_add()
337 static void fsl_emb_pmu_del(struct perf_event *event, int flags) in fsl_emb_pmu_del()
429 static void hw_perf_event_destroy(struct perf_event *event) in hw_perf_event_destroy()
469 static int fsl_emb_pmu_event_init(struct perf_event *event) in fsl_emb_pmu_event_init()
472 struct perf_event *events[MAX_HWEVENTS]; in fsl_emb_pmu_event_init()
[all …]
H A Dcore-book3s.c39 struct perf_event *event[MAX_HWEVENTS];
591 struct perf_event *leader = event->group_leader; in ebb_event_check()
971 int n_ev, struct perf_event **event) in power_check_constraints()
1097 struct perf_event *event; in check_excludes()
1220 struct perf_event *event; in freeze_limited_counters()
1240 struct perf_event *event; in thaw_limited_counters()
1419 struct perf_event *event; in power_pmu_enable()
1594 struct perf_event *ctrs[], u64 *events, in collect_events()
1598 struct perf_event *event; in collect_events()
2007 struct perf_event *ctrs[MAX_HWEVENTS]; in power_pmu_event_init()
[all …]
/linux/arch/arm/kernel/
H A Dperf_event_xscale.c174 struct perf_event *event = cpuc->events[idx]; in xscale1pmu_handle_irq()
204 static void xscale1pmu_enable_event(struct perf_event *event) in xscale1pmu_enable_event()
236 static void xscale1pmu_disable_event(struct perf_event *event) in xscale1pmu_disable_event()
268 struct perf_event *event) in xscale1pmu_get_event_idx()
288 struct perf_event *event) in xscalepmu_clear_event_idx()
311 static inline u64 xscale1pmu_read_counter(struct perf_event *event) in xscale1pmu_read_counter()
350 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()
536 static void xscale2pmu_enable_event(struct perf_event *event) in xscale2pmu_enable_event()
578 static void xscale2pmu_disable_event(struct perf_event *event) in xscale2pmu_disable_event()
[all …]
H A Dperf_event_v6.c173 static inline u64 armv6pmu_read_counter(struct perf_event *event) in armv6pmu_read_counter()
191 static inline void armv6pmu_write_counter(struct perf_event *event, u64 value) in armv6pmu_write_counter()
206 static void armv6pmu_enable_event(struct perf_event *event) in armv6pmu_enable_event()
260 struct perf_event *event = cpuc->events[idx]; in armv6pmu_handle_irq()
316 struct perf_event *event) in armv6pmu_get_event_idx()
342 struct perf_event *event) in armv6pmu_clear_event_idx()
347 static void armv6pmu_disable_event(struct perf_event *event) in armv6pmu_disable_event()
378 static int armv6_map_event(struct perf_event *event) in armv6_map_event()
/linux/arch/arm64/kernel/
H A Dhw_breakpoint.c161 static int is_compat_bp(struct perf_event *bp) in is_compat_bp()
190 struct perf_event *bp, in hw_breakpoint_slot_setup()
194 struct perf_event **slot; in hw_breakpoint_slot_setup()
227 struct perf_event **slots; in hw_breakpoint_control()
413 static int arch_build_bp_info(struct perf_event *bp, in arch_build_bp_info()
508 int hw_breakpoint_arch_parse(struct perf_event *bp, in hw_breakpoint_arch_parse()
585 struct perf_event **slots; in toggle_bp_registers()
627 struct perf_event *bp, **slots; in breakpoint_handler()
762 struct perf_event *wp, **slots; in watchpoint_handler()
945 struct perf_event **slots; in hw_breakpoint_reset()
[all …]
/linux/arch/loongarch/include/asm/
H A Dhw_breakpoint.h100 struct perf_event;
106 extern int hw_breakpoint_arch_parse(struct perf_event *bp,
112 extern int arch_install_hw_breakpoint(struct perf_event *bp);
113 extern void arch_uninstall_hw_breakpoint(struct perf_event *bp);
115 extern void hw_breakpoint_pmu_read(struct perf_event *bp);
/linux/drivers/perf/arm_cspmu/
H A Darm_cspmu.h81 struct perf_event **events;
103 bool (*is_cycle_counter_event)(const struct perf_event *event);
105 u32 (*event_type)(const struct perf_event *event);
107 u32 (*event_filter)(const struct perf_event *event);
113 struct perf_event *event);
H A Dampere_cspmu.c29 static inline u32 get_##_name(const struct perf_event *event) \
135 static u32 ampere_cspmu_event_filter(const struct perf_event *event) in ampere_cspmu_event_filter()
148 struct perf_event *event; in ampere_cspmu_set_ev_filter()
170 static int ampere_cspmu_validate_configs(struct perf_event *event, in ampere_cspmu_validate_configs()
171 struct perf_event *event2) in ampere_cspmu_validate_configs()
182 struct perf_event *new) in ampere_cspmu_validate_event()
184 struct perf_event *curr, *leader = new->group_leader; in ampere_cspmu_validate_event()
/linux/arch/x86/kernel/
H A Dhw_breakpoint.c49 static DEFINE_PER_CPU(struct perf_event *, bp_per_reg[HBP_NUM]);
96 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint()
105 struct perf_event **slot = this_cpu_ptr(&bp_per_reg[i]); in arch_install_hw_breakpoint()
144 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint()
153 struct perf_event **slot = this_cpu_ptr(&bp_per_reg[i]); in arch_uninstall_hw_breakpoint()
323 static int arch_build_bp_info(struct perf_event *bp, in arch_build_bp_info()
422 int hw_breakpoint_arch_parse(struct perf_event *bp, in hw_breakpoint_arch_parse()
513 struct perf_event *bp; in hw_breakpoint_handler()
589 void hw_breakpoint_pmu_read(struct perf_event *bp) in hw_breakpoint_pmu_read()
/linux/tools/perf/util/
H A Dsession.h82 union perf_event **event_ptr,
85 union perf_event *event, u64 offset,
92 int perf_session__queue_event(struct perf_session *s, union perf_event *event,
156 union perf_event *event,
162 union perf_event *event);
165 union perf_event *event,
H A Dsample-raw.h6 union perf_event;
9 void evlist__s390_sample_raw(struct evlist *evlist, union perf_event *event,
12 void evlist__amd_sample_raw(struct evlist *evlist, union perf_event *event,
H A Dsynthetic-events.h29 union perf_event;
43 typedef int (*perf_event__handler_t)(struct perf_tool *tool, union perf_event *event,
61 int perf_event__synthesize_mmap_events(struct perf_tool *tool, union perf_event *event, pid_t pid, …
63 int perf_event__synthesize_namespaces(struct perf_tool *tool, union perf_event *event, pid_t pid, p…
65 int perf_event__synthesize_sample(union perf_event *event, u64 type, u64 read_format, const struct …
75 pid_t perf_event__synthesize_comm(struct perf_tool *tool, union perf_event *event, pid_t pid, perf_…
77 int perf_tool__process_synth_event(struct perf_tool *tool, union perf_event *event, struct machine …
/linux/arch/s390/kernel/
H A Dperf_pai_ext.c53 struct perf_event *event; /* Perf event for sampling */
118 static void paiext_event_destroy(struct perf_event *event) in paiext_event_destroy()
224 static int paiext_event_valid(struct perf_event *event) in paiext_event_valid()
237 static int paiext_event_init(struct perf_event *event) in paiext_event_init()
294 static u64 paiext_getdata(struct perf_event *event) in paiext_getdata()
311 static u64 paiext_getall(struct perf_event *event) in paiext_getall()
316 static void paiext_read(struct perf_event *event) in paiext_read()
342 static int paiext_add(struct perf_event *event, int flags) in paiext_add()
376 static void paiext_del(struct perf_event *event, int flags) in paiext_del()
436 struct perf_event *event) in paiext_push_sample()
[all …]
H A Dperf_pai_crypto.c40 struct perf_event *event; /* Perf event for sampling */
87 static void paicrypt_event_destroy(struct perf_event *event) in paicrypt_event_destroy()
147 static u64 paicrypt_getall(struct perf_event *event) in paicrypt_getall()
259 static int paicrypt_event_init(struct perf_event *event) in paicrypt_event_init()
312 static void paicrypt_read(struct perf_event *event) in paicrypt_read()
324 static void paicrypt_start(struct perf_event *event, int flags) in paicrypt_start()
339 static int paicrypt_add(struct perf_event *event, int flags) in paicrypt_add()
356 static void paicrypt_stop(struct perf_event *event, int flags) in paicrypt_stop()
370 static void paicrypt_del(struct perf_event *event, int flags) in paicrypt_del()
420 struct perf_event *event) in paicrypt_push_sample()
[all …]
/linux/arch/arm64/include/asm/
H A Dhw_breakpoint.h109 struct perf_event;
115 extern int hw_breakpoint_arch_parse(struct perf_event *bp,
121 extern int arch_install_hw_breakpoint(struct perf_event *bp);
122 extern void arch_uninstall_hw_breakpoint(struct perf_event *bp);
123 extern void hw_breakpoint_pmu_read(struct perf_event *bp);
/linux/tools/perf/Documentation/
H A Dperf-dlfilter.txt95 __u64 weight; /* Refer PERF_SAMPLE_WEIGHT_TYPE in <linux/perf_event.h> */
101 __u64 data_src; /* Refer PERF_SAMPLE_DATA_SRC in <linux/perf_event.h> */
102 __u64 phys_addr; /* Refer PERF_SAMPLE_PHYS_ADDR in <linux/perf_event.h> */
105 __u64 cgroup; /* Refer PERF_SAMPLE_CGROUP in <linux/perf_event.h> */
106 __u8 cpumode; /* Refer CPUMODE_MASK etc in <linux/perf_event.h> */
108 __u16 misc; /* Refer perf_event_header in <linux/perf_event.h> */
109 __u32 raw_size; /* Refer PERF_SAMPLE_RAW in <linux/perf_event.h> */
110 const void *raw_data; /* Refer PERF_SAMPLE_RAW in <linux/perf_event.h> */
112 const struct perf_branch_entry *brstack; /* Refer <linux/perf_event.h> */
114 const __u64 *raw_callchain; /* Refer <linux/perf_event.h> */
[all …]
H A Dsecurity.txt47 +class perf_event
65 +class perf_event
114 9. Login and check that dmesg output doesn't mention that perf_event class is unknown to SELinux su…
141 more perf_event access control information and adjusting the policy.
156 output would contain AVC denied records related to perf_event:
158 # journalctl --reverse --no-pager | grep perf_event
160 …python3[1318099]: SELinux is preventing perf from open access on the perf_event labeled unconfined…
168 be generated using the system audit records about blocking perf_event access.
170 perf_event related rules:
178 class perf_event { cpu kernel open read tracepoint write };
[all …]
/linux/drivers/perf/
H 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 …]
H 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 …]
/linux/drivers/dma/idxd/
H A Dperfmon.c86 struct perf_event *leader, in perfmon_collect_events()
89 struct perf_event *event; in perfmon_collect_events()
124 struct perf_event *event, int idx) in perfmon_assign_hw_event()
135 struct perf_event *event) in perfmon_assign_event()
155 struct perf_event *event) in perfmon_validate_group()
157 struct perf_event *leader = event->group_leader; in perfmon_validate_group()
198 static int perfmon_pmu_event_init(struct perf_event *event) in perfmon_pmu_event_init()
230 static inline u64 perfmon_pmu_read_counter(struct perf_event *event) in perfmon_pmu_read_counter()
241 static void perfmon_pmu_event_update(struct perf_event *event) in perfmon_pmu_event_update()
264 struct perf_event *event; in perfmon_counter_overflow()
[all …]
/linux/tools/perf/
H A Dbuiltin-inject.c49 union perf_event *event;
134 union perf_event event[];
178 union perf_event *event) in perf_event__repipe_op2_synth()
184 union perf_event *event, in perf_event__repipe_op4_synth()
316 static union perf_event *
318 union perf_event *event, in perf_inject__cut_auxtrace_sample()
323 union perf_event *ev; in perf_inject__cut_auxtrace_sample()
504 union perf_event *event, in perf_event__jit_repipe_mmap2()
831 union perf_event *event_sw; in perf_inject__sched_stat()
1475 union perf_event *ev; in guest_session__inject_events()
[all …]
/linux/arch/xtensa/kernel/
H A Dperf_event.c61 struct perf_event *event[XCHAL_NUM_PERF_COUNTERS];
145 static void xtensa_perf_event_update(struct perf_event *event, in xtensa_perf_event_update()
163 static bool xtensa_perf_event_set_period(struct perf_event *event, in xtensa_perf_event_set_period()
207 static int xtensa_pmu_event_init(struct perf_event *event) in xtensa_pmu_event_init()
249 static void xtensa_pmu_start(struct perf_event *event, int flags) in xtensa_pmu_start()
267 static void xtensa_pmu_stop(struct perf_event *event, int flags) in xtensa_pmu_stop()
290 static int xtensa_pmu_add(struct perf_event *event, int flags) in xtensa_pmu_add()
316 static void xtensa_pmu_del(struct perf_event *event, int flags) in xtensa_pmu_del()
325 static void xtensa_pmu_read(struct perf_event *event) in xtensa_pmu_read()
376 struct perf_event *event = ev->event[i]; in xtensa_pmu_irq_handler()
/linux/arch/arm/mach-imx/
H A Dmmdc.c105 struct perf_event *mmdc_events[MMDC_NUM_COUNTERS];
235 static bool mmdc_pmu_group_event_is_valid(struct perf_event *event, in mmdc_pmu_group_event_is_valid()
256 static bool mmdc_pmu_group_is_valid(struct perf_event *event) in mmdc_pmu_group_is_valid()
259 struct perf_event *leader = event->group_leader; in mmdc_pmu_group_is_valid()
260 struct perf_event *sibling; in mmdc_pmu_group_is_valid()
278 static int mmdc_pmu_event_init(struct perf_event *event) in mmdc_pmu_event_init()
307 static void mmdc_pmu_event_update(struct perf_event *event) in mmdc_pmu_event_update()
361 static int mmdc_pmu_event_add(struct perf_event *event, int flags) in mmdc_pmu_event_add()
382 static void mmdc_pmu_event_stop(struct perf_event *event, int flags) in mmdc_pmu_event_stop()
398 static void mmdc_pmu_event_del(struct perf_event *event, int flags) in mmdc_pmu_event_del()
[all …]
/linux/arch/x86/events/
H A Dmsr.c203 static int msr_event_init(struct perf_event *event) in msr_event_init()
229 static inline u64 msr_read_counter(struct perf_event *event) in msr_read_counter()
241 static void msr_event_update(struct perf_event *event) in msr_event_update()
265 static void msr_event_start(struct perf_event *event, int flags) in msr_event_start()
272 static void msr_event_stop(struct perf_event *event, int flags) in msr_event_stop()
277 static void msr_event_del(struct perf_event *event, int flags) in msr_event_del()
282 static int msr_event_add(struct perf_event *event, int flags) in msr_event_add()
/linux/drivers/perf/hisilicon/
H 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 …]

12345678910>>...14