Home
last modified time | relevance | path

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

12345678910>>...15

/linux/include/linux/
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 …]
A Dperf_event.h276 struct perf_event;
695 struct perf_event { struct
783 struct perf_event *parent; argument
824 struct perf_event *aux_event; argument
1035 struct perf_event **heap;
1040 struct perf_event *event;
1055 struct perf_event *event;
1132 extern struct perf_event *
1317 struct perf_event *event) in perf_sample_data_size()
1349 struct perf_event *event,
[all …]
/linux/include/linux/perf/
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 …]
A Darm_pmu.h58 struct perf_event *events[ARMPMU_MAX_HWEVENTS];
89 void (*enable)(struct perf_event *event);
90 void (*disable)(struct perf_event *event);
92 struct perf_event *event);
94 struct perf_event *event);
97 u64 (*read_counter)(struct perf_event *event);
98 void (*write_counter)(struct perf_event *event, u64 val);
102 int (*map_event)(struct perf_event *event);
124 u64 armpmu_event_update(struct perf_event *event);
126 int armpmu_event_set_period(struct perf_event *event);
[all …]
/linux/tools/perf/util/
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,
323 union perf_event *event,
327 union perf_event *event,
331 union perf_event *event,
335 union perf_event *event,
[all …]
A Dtool.h10 union perf_event;
18 typedef int (*event_sample)(const struct perf_tool *tool, union perf_event *event,
22 typedef int (*event_op)(const 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)(const struct perf_tool *tool, union perf_event *event,
97 union perf_event *event,
A Dtool.c14 union perf_event *event, u64 file_offset, in perf_session__process_compressed_event()
74 union perf_event *event in process_event_synth_tracing_data_stub()
82 union perf_event *event __maybe_unused, in process_event_synth_attr_stub()
91 union perf_event *event __maybe_unused, in process_event_synth_event_update_stub()
145 union perf_event *event) in process_event_auxtrace_stub()
154 union perf_event *event __maybe_unused) in process_event_op2_stub()
163 union perf_event *event __maybe_unused) in process_event_thread_map_stub()
185 union perf_event *event __maybe_unused) in process_event_stat_config_stub()
195 union perf_event *event) in process_stat_stub()
205 union perf_event *event) in process_stat_round_stub()
[all …]
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 …]
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()
430 union perf_event *event, in perf_event__exit_del_thread()
[all …]
/linux/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);
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/intel/
A Duncore.h120 struct perf_event *);
380 struct perf_event *event) in uncore_freerunning_counter()
467 struct perf_event *event) in uncore_freerunning_bits()
475 struct perf_event *event) in uncore_num_freerunning()
483 struct perf_event *event) in uncore_num_freerunning_types()
489 struct perf_event *event) in check_valid_freerunning_event()
513 struct perf_event *event) in uncore_freerunning_hw_config()
522 struct perf_event *event) in uncore_disable_event()
528 struct perf_event *event) in uncore_enable_event()
534 struct perf_event *event) in uncore_read_counter()
[all …]
/linux/arch/x86/events/
A Dperf_event.h121 struct perf_event *owners[X86_PMC_IDX_MAX];
778 void (*enable)(struct perf_event *);
779 void (*disable)(struct perf_event *);
781 void (*add)(struct perf_event *);
782 void (*del)(struct perf_event *);
783 void (*read)(struct perf_event *event);
785 u64 (*update)(struct perf_event *event);
816 struct perf_event *event);
819 struct perf_event *event);
1547 struct perf_event *event);
[all …]
/linux/kernel/events/
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 …]
A Dcore.c247 struct perf_event *event;
1759 static struct perf_event *
1777 static struct perf_event *
2096 perf_aux_output_match(struct perf_event *event, struct perf_event *aux_event) in perf_aux_output_match()
2114 struct perf_event *iter; in perf_put_aux_event()
3775 const struct perf_event *le = *(const struct perf_event **)l; in perf_less_group_idx()
3776 const struct perf_event *re = *(const struct perf_event **)r; in perf_less_group_idx()
3830 struct perf_event **evt; in visit_groups_merge()
5266 static bool exclusive_event_match(struct perf_event *e1, struct perf_event *e2) in exclusive_event_match()
13060 struct perf_event *
[all …]
/linux/arch/xtensa/kernel/
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/
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/
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/
A Dfill_link_info.c58 switch (info.perf_event.type) { in verify_perf_link_info()
72 if (!info.perf_event.kprobe.func_name) { in verify_perf_link_info()
73 info.perf_event.kprobe.func_name = ptr_to_u64(&buf); in verify_perf_link_info()
74 info.perf_event.kprobe.name_len = sizeof(buf); in verify_perf_link_info()
85 if (!info.perf_event.tracepoint.tp_name) { in verify_perf_link_info()
87 info.perf_event.tracepoint.name_len = sizeof(buf); in verify_perf_link_info()
103 if (!info.perf_event.uprobe.file_name) { in verify_perf_link_info()
105 info.perf_event.uprobe.name_len = sizeof(buf); in verify_perf_link_info()
139 info.perf_event.kprobe.name_len = 64; in kprobe_fill_invalid_user_buffer()
143 info.perf_event.kprobe.func_name = 0; in kprobe_fill_invalid_user_buffer()
[all …]
/linux/kernel/trace/
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/
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/
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/
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/
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/
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()
537 } else if (pmc->perf_event) { in kvm_riscv_vcpu_pmu_ctr_start()
595 } else if (pmc->perf_event) { in kvm_riscv_vcpu_pmu_ctr_stop()
[all …]
/linux/arch/xtensa/include/asm/
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);

Completed in 107 milliseconds

12345678910>>...15