Home
last modified time | relevance | path

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

12345678910>>...14

/linux/include/linux/
H A Dhw_breakpoint.h57 extern struct perf_event *
73 extern struct perf_event *
79 extern struct perf_event * __percpu *
89 extern int dbg_reserve_bp_slot(struct perf_event *bp);
90 extern int dbg_release_bp_slot(struct perf_event *bp);
91 extern int reserve_bp_slot(struct perf_event *bp);
92 extern void release_bp_slot(struct perf_event *bp);
105 static inline struct perf_event *
111 modify_user_hw_breakpoint(struct perf_event *bp, in modify_user_hw_breakpoint()
117 static inline struct perf_event *
[all …]
H A Dperf_event.h273 struct perf_event;
671 struct perf_event { struct
759 struct perf_event *parent; argument
799 struct perf_event *aux_event; argument
1012 struct perf_event **heap;
1017 struct perf_event *event;
1032 struct perf_event *event;
1109 extern struct perf_event *
1294 struct perf_event *event) in perf_sample_data_size()
1326 struct perf_event *event,
[all …]
/linux/include/linux/perf/
H A Driscv_pmu.h37 struct perf_event *events[RISCV_MAX_COUNTERS];
59 u64 (*ctr_read)(struct perf_event *event);
60 int (*ctr_get_idx)(struct perf_event *event);
62 void (*ctr_clear_idx)(struct perf_event *event);
65 int (*event_map)(struct perf_event *event, u64 *config);
66 void (*event_init)(struct perf_event *event);
69 uint8_t (*csr_index)(struct perf_event *event);
78 void riscv_pmu_start(struct perf_event *event, int flags);
79 void riscv_pmu_stop(struct perf_event *event, int flags);
81 int riscv_pmu_event_set_period(struct perf_event *event);
[all …]
H A Darm_pmu.h54 struct perf_event *events[ARMPMU_MAX_HWEVENTS];
85 void (*enable)(struct perf_event *event);
86 void (*disable)(struct perf_event *event);
88 struct perf_event *event);
90 struct perf_event *event);
93 u64 (*read_counter)(struct perf_event *event);
94 void (*write_counter)(struct perf_event *event, u64 val);
98 int (*map_event)(struct perf_event *event);
120 u64 armpmu_event_update(struct perf_event *event);
122 int armpmu_event_set_period(struct perf_event *event);
[all …]
/linux/tools/perf/util/
H A Devent.h271 union perf_event *event,
275 union perf_event *event,
283 union perf_event *event,
291 union perf_event *event,
299 union perf_event *event,
307 union perf_event *event,
311 union perf_event *event,
323 union perf_event *event,
327 union perf_event *event,
331 union perf_event *event,
[all …]
H A Dtool.h10 union perf_event;
18 typedef int (*event_sample)(struct perf_tool *tool, union perf_event *event,
22 typedef int (*event_op)(struct perf_tool *tool, union perf_event *event,
26 union perf_event *event,
29 typedef int (*event_op2)(struct perf_session *session, union perf_event *event);
30 typedef s64 (*event_op3)(struct perf_session *session, union perf_event *event);
31 typedef int (*event_op4)(struct perf_session *session, union perf_event *event, u64 data,
34 typedef int (*event_oe)(struct perf_tool *tool, union perf_event *event,
H A Dmachine.h21 union perf_event;
105 int machine__process_comm_event(struct machine *machine, union perf_event *event,
116 union perf_event *event);
118 union perf_event *event);
120 union perf_event *event);
122 union perf_event *event);
124 union perf_event *event,
127 union perf_event *event,
134 union perf_event *event,
137 union perf_event *event,
[all …]
H A Devent.c220 union perf_event *event, in perf_event__process_comm()
228 union perf_event *event, in perf_event__process_namespaces()
244 union perf_event *event, in perf_event__process_lost()
252 union perf_event *event, in perf_event__process_aux()
268 union perf_event *event, in perf_event__process_aux_output_hw_id()
292 union perf_event *event, in perf_event__process_ksymbol()
300 union perf_event *event, in perf_event__process_bpf()
308 union perf_event *event, in perf_event__process_text_poke()
391 union perf_event *event, in perf_event__process_mmap()
399 union perf_event *event, in perf_event__process_mmap2()
[all …]
/linux/drivers/perf/hisilicon/
H 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);
79 struct perf_event *hw_events[HISI_MAX_COUNTERS];
112 int hisi_uncore_pmu_get_event_idx(struct perf_event *event);
113 void hisi_uncore_pmu_read(struct perf_event *event);
114 int hisi_uncore_pmu_add(struct perf_event *event, int flags);
115 void hisi_uncore_pmu_del(struct perf_event *event, int flags);
119 void hisi_uncore_pmu_event_update(struct perf_event *event);
[all …]
/linux/arch/x86/events/
H A Dperf_event.h121 struct perf_event *owners[X86_PMC_IDX_MAX];
761 void (*enable)(struct perf_event *);
762 void (*disable)(struct perf_event *);
764 void (*add)(struct perf_event *);
765 void (*del)(struct perf_event *);
766 void (*read)(struct perf_event *event);
768 u64 (*update)(struct perf_event *event);
791 struct perf_event *event);
794 struct perf_event *event);
1492 struct perf_event *event);
[all …]
/linux/arch/x86/events/intel/
H A Duncore.h117 struct perf_event *);
376 struct perf_event *event) in uncore_freerunning_counter()
463 struct perf_event *event) in uncore_freerunning_bits()
471 struct perf_event *event) in uncore_num_freerunning()
479 struct perf_event *event) in uncore_num_freerunning_types()
485 struct perf_event *event) in check_valid_freerunning_event()
509 struct perf_event *event) in uncore_freerunning_hw_config()
518 struct perf_event *event) in uncore_disable_event()
524 struct perf_event *event) in uncore_enable_event()
530 struct perf_event *event) in uncore_read_counter()
[all …]
/linux/kernel/events/
H A Dhw_breakpoint.c325 struct perf_event *iter; in task_bp_pinned()
598 int reserve_bp_slot(struct perf_event *bp) in reserve_bp_slot()
617 void release_bp_slot(struct perf_event *bp) in release_bp_slot()
661 int dbg_reserve_bp_slot(struct perf_event *bp) in dbg_reserve_bp_slot()
676 int dbg_release_bp_slot(struct perf_event *bp) in dbg_release_bp_slot()
689 static int hw_breakpoint_parse(struct perf_event *bp, in hw_breakpoint_parse()
713 int register_perf_hw_breakpoint(struct perf_event *bp) in register_perf_hw_breakpoint()
740 struct perf_event *
825 void unregister_hw_breakpoint(struct perf_event *bp) in unregister_hw_breakpoint()
841 struct perf_event * __percpu *
[all …]
H A Dcore.c212 struct perf_event *event;
1722 static struct perf_event *
1740 static struct perf_event *
2047 perf_aux_output_match(struct perf_event *event, struct perf_event *aux_event) in perf_aux_output_match()
2065 struct perf_event *iter; in perf_put_aux_event()
3691 const struct perf_event *le = *(const struct perf_event **)l; in perf_less_group_idx()
3692 const struct perf_event *re = *(const struct perf_event **)r; in perf_less_group_idx()
3745 struct perf_event **evt; in visit_groups_merge()
5177 static bool exclusive_event_match(struct perf_event *e1, struct perf_event *e2) in exclusive_event_match()
12847 struct perf_event *
[all …]
/linux/arch/xtensa/kernel/
H A Dhw_breakpoint.c51 int hw_breakpoint_arch_parse(struct perf_event *bp, in hw_breakpoint_arch_parse()
134 static int alloc_slot(struct perf_event **slot, size_t n, in alloc_slot()
135 struct perf_event *bp) in alloc_slot()
172 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint()
193 static int free_slot(struct perf_event **slot, size_t n, in free_slot()
194 struct perf_event *bp) in free_slot()
207 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint()
230 void hw_breakpoint_pmu_read(struct perf_event *bp) in hw_breakpoint_pmu_read()
269 struct perf_event *bp = this_cpu_ptr(wp_on_reg)[i]; in restore_dbreak()
281 struct perf_event **bp = this_cpu_ptr(bp_on_reg); in check_hw_breakpoint()
[all …]
/linux/arch/x86/include/asm/
H A Dhw_breakpoint.h50 struct perf_event;
54 extern int hw_breakpoint_arch_parse(struct perf_event *bp,
61 int arch_install_hw_breakpoint(struct perf_event *bp);
62 void arch_uninstall_hw_breakpoint(struct perf_event *bp);
63 void hw_breakpoint_pmu_read(struct perf_event *bp);
64 void hw_breakpoint_pmu_unthrottle(struct perf_event *bp);
67 arch_fill_perf_breakpoint(struct perf_event *bp);
/linux/tools/bpf/bpftool/
H A Dlink.c452 __u32 type = info->perf_event.event.type; in show_perf_event_event_json()
547 switch (info->perf_event.type) { in show_link_close_json()
799 if (info->perf_event.kprobe.addr) in show_perf_event_kprobe_plain()
802 if (info->perf_event.kprobe.offset) in show_perf_event_kprobe_plain()
804 if (info->perf_event.kprobe.missed) in show_perf_event_kprobe_plain()
806 if (info->perf_event.kprobe.cookie) in show_perf_event_kprobe_plain()
824 if (info->perf_event.uprobe.cookie) in show_perf_event_uprobe_plain()
837 if (info->perf_event.tracepoint.cookie) in show_perf_event_tracepoint_plain()
860 if (info->perf_event.event.cookie) in show_perf_event_event_plain()
938 switch (info->perf_event.type) { in show_link_close_plain()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dfill_link_info.c58 switch (info.perf_event.type) { in verify_perf_link_info()
70 if (!info.perf_event.kprobe.func_name) { in verify_perf_link_info()
72 info.perf_event.kprobe.func_name = ptr_to_u64(&buf); in verify_perf_link_info()
73 info.perf_event.kprobe.name_len = sizeof(buf); in verify_perf_link_info()
82 if (!info.perf_event.tracepoint.tp_name) { in verify_perf_link_info()
85 info.perf_event.tracepoint.name_len = sizeof(buf); in verify_perf_link_info()
99 if (!info.perf_event.uprobe.file_name) { in verify_perf_link_info()
102 info.perf_event.uprobe.name_len = sizeof(buf); in verify_perf_link_info()
136 info.perf_event.kprobe.name_len = 64; in kprobe_fill_invalid_user_buffer()
140 info.perf_event.kprobe.func_name = 0; in kprobe_fill_invalid_user_buffer()
[all …]
/linux/kernel/trace/
H A Dtrace_event_perf.c28 struct perf_event *p_event) in perf_trace_event_perm()
97 struct perf_event *p_event) in perf_trace_event_reg()
194 struct perf_event *p_event) in perf_trace_event_init()
215 int perf_trace_init(struct perf_event *p_event) in perf_trace_init()
237 void perf_trace_destroy(struct perf_event *p_event) in perf_trace_destroy()
285 void perf_kprobe_destroy(struct perf_event *p_event) in perf_kprobe_destroy()
298 int perf_uprobe_init(struct perf_event *p_event, in perf_uprobe_init()
341 void perf_uprobe_destroy(struct perf_event *p_event) in perf_uprobe_destroy()
352 int perf_trace_add(struct perf_event *p_event, int flags) in perf_trace_add()
433 struct perf_event *event; in perf_ftrace_function_call()
[all …]
/linux/arch/sh/include/asm/
H A Dhw_breakpoint.h44 struct perf_event;
57 extern int hw_breakpoint_arch_parse(struct perf_event *bp,
63 int arch_install_hw_breakpoint(struct perf_event *bp);
64 void arch_uninstall_hw_breakpoint(struct perf_event *bp);
65 void hw_breakpoint_pmu_read(struct perf_event *bp);
67 extern void arch_fill_perf_breakpoint(struct perf_event *bp);
/linux/arch/powerpc/kernel/
H A Dhw_breakpoint.c56 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint()
59 struct perf_event **slot; in arch_install_hw_breakpoint()
95 struct perf_event **slot; in arch_uninstall_hw_breakpoint()
112 static bool is_ptrace_bp(struct perf_event *bp) in is_ptrace_bp()
187 int hw_breakpoint_arch_parse(struct perf_event *bp, in hw_breakpoint_arch_parse()
269 static void handler_error(struct perf_event *bp) in handler_error()
276 static void larx_stcx_err(struct perf_event *bp) in larx_stcx_err()
380 struct perf_event *bp[HBP_NUM_MAX] = { NULL }; in hw_breakpoint_handler()
516 struct perf_event *bp; in single_step_dabr_instruction()
591 void hw_breakpoint_pmu_read(struct perf_event *bp) in hw_breakpoint_pmu_read()
[all …]
/linux/drivers/perf/
H 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 …]
/linux/tools/perf/tests/
H A Dparse-no-sample-id-all.c13 static int process_event(struct evlist **pevlist, union perf_event *event) in process_event()
39 static int process_events(union perf_event **events, size_t count) in process_events()
96 union perf_event *events[] = { in test__parse_no_sample_id_all()
97 (union perf_event *)&event1, in test__parse_no_sample_id_all()
98 (union perf_event *)&event2, in test__parse_no_sample_id_all()
99 (union perf_event *)&event3, in test__parse_no_sample_id_all()
/linux/arch/riscv/kvm/
H A Dvcpu_pmu.c80 if (pmc->perf_event) { in kvm_pmu_release_perf_event()
81 perf_event_disable(pmc->perf_event); in kvm_pmu_release_perf_event()
83 pmc->perf_event = NULL; in kvm_pmu_release_perf_event()
248 } else if (pmc->perf_event) { in pmu_ctr_read()
268 static void kvm_riscv_pmu_overflow(struct perf_event *perf_event, in kvm_riscv_pmu_overflow() argument
313 struct perf_event *event; in kvm_pmu_create_perf_event()
334 pmc->perf_event = event; in kvm_pmu_create_perf_event()
336 perf_event_enable(pmc->perf_event); in kvm_pmu_create_perf_event()
547 } else if (pmc->perf_event) { in kvm_riscv_vcpu_pmu_ctr_start()
605 } else if (pmc->perf_event) { in kvm_riscv_vcpu_pmu_ctr_stop()
[all …]
/linux/arch/xtensa/include/asm/
H A Dhw_breakpoint.h34 struct perf_event;
40 int hw_breakpoint_arch_parse(struct perf_event *bp,
46 int arch_install_hw_breakpoint(struct perf_event *bp);
47 void arch_uninstall_hw_breakpoint(struct perf_event *bp);
48 void hw_breakpoint_pmu_read(struct perf_event *bp);
/linux/arch/alpha/kernel/
H A Dperf_event.c41 struct perf_event *event[MAX_HWEVENTS];
152 static int ev67_check_constraints(struct perf_event **event, in ev67_check_constraints()
341 struct perf_event *event[], unsigned long *evtype, in collect_events()
344 struct perf_event *pe; in collect_events()
400 struct perf_event *pe = cpuc->event[j]; in maybe_change_configuration()
412 struct perf_event *pe = cpuc->event[j]; in maybe_change_configuration()
524 static void alpha_pmu_read(struct perf_event *event) in alpha_pmu_read()
602 static int __hw_perf_event_init(struct perf_event *event) in __hw_perf_event_init()
606 struct perf_event *evts[MAX_HWEVENTS]; in __hw_perf_event_init()
690 static int alpha_pmu_event_init(struct perf_event *event) in alpha_pmu_event_init()
[all …]

12345678910>>...14