Home
last modified time | relevance | path

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

12345678910>>...14

/openbmc/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
1009 struct perf_event **heap;
1014 struct perf_event *event;
1029 struct perf_event *event;
1106 extern struct perf_event *
1271 struct perf_event *event) in perf_sample_data_size()
1303 struct perf_event *event,
[all …]
/openbmc/linux/include/linux/perf/
H A Driscv_pmu.h37 struct perf_event *events[RISCV_MAX_COUNTERS];
51 u64 (*ctr_read)(struct perf_event *event);
52 int (*ctr_get_idx)(struct perf_event *event);
54 void (*ctr_clear_idx)(struct perf_event *event);
57 int (*event_map)(struct perf_event *event, u64 *config);
58 void (*event_init)(struct perf_event *event);
61 uint8_t (*csr_index)(struct perf_event *event);
70 void riscv_pmu_start(struct perf_event *event, int flags);
71 void riscv_pmu_stop(struct perf_event *event, int flags);
73 int riscv_pmu_event_set_period(struct perf_event *event);
[all …]
H A Darm_pmu.h54 struct perf_event *events[ARMPMU_MAX_HWEVENTS];
91 void (*enable)(struct perf_event *event);
92 void (*disable)(struct perf_event *event);
94 struct perf_event *event);
96 struct perf_event *event);
99 u64 (*read_counter)(struct perf_event *event);
100 void (*write_counter)(struct perf_event *event, u64 val);
104 int (*map_event)(struct perf_event *event);
126 u64 armpmu_event_update(struct perf_event *event);
128 int armpmu_event_set_period(struct perf_event *event);
[all …]
/openbmc/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.h20 union perf_event;
121 int machine__process_comm_event(struct machine *machine, union perf_event *event,
132 union perf_event *event);
134 union perf_event *event);
136 union perf_event *event);
138 union perf_event *event);
140 union perf_event *event,
143 union perf_event *event,
150 union perf_event *event,
153 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 …]
/openbmc/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 …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dfill_link_info.c54 switch (info.perf_event.type) { in verify_perf_link_info()
64 if (!info.perf_event.kprobe.func_name) { in verify_perf_link_info()
66 info.perf_event.kprobe.func_name = ptr_to_u64(&buf); in verify_perf_link_info()
67 info.perf_event.kprobe.name_len = sizeof(buf); in verify_perf_link_info()
76 if (!info.perf_event.tracepoint.tp_name) { in verify_perf_link_info()
79 info.perf_event.tracepoint.name_len = sizeof(buf); in verify_perf_link_info()
91 if (!info.perf_event.uprobe.file_name) { in verify_perf_link_info()
94 info.perf_event.uprobe.name_len = sizeof(buf); in verify_perf_link_info()
121 info.perf_event.kprobe.name_len = 64; in kprobe_fill_invalid_user_buffer()
125 info.perf_event.kprobe.func_name = 0; in kprobe_fill_invalid_user_buffer()
[all …]
/openbmc/linux/arch/x86/events/
H A Dperf_event.h116 struct perf_event *owners[X86_PMC_IDX_MAX];
748 void (*enable)(struct perf_event *);
749 void (*disable)(struct perf_event *);
751 void (*add)(struct perf_event *);
752 void (*del)(struct perf_event *);
753 void (*read)(struct perf_event *event);
755 u64 (*update)(struct perf_event *event);
756 int (*hw_config)(struct perf_event *event);
778 struct perf_event *event);
781 struct perf_event *event);
[all …]
/openbmc/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 …]
/openbmc/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()
3688 const struct perf_event *le = *(const struct perf_event **)l; in perf_less_group_idx()
3689 const struct perf_event *re = *(const struct perf_event **)r; in perf_less_group_idx()
3742 struct perf_event **evt; in visit_groups_merge()
5146 static bool exclusive_event_match(struct perf_event *e1, struct perf_event *e2) in exclusive_event_match()
12816 struct perf_event *
[all …]
/openbmc/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);
/openbmc/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 …]
/openbmc/linux/arch/sh/include/asm/
H A Dhw_breakpoint.h44 struct perf_event;
55 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);
65 extern void arch_fill_perf_breakpoint(struct perf_event *bp);
/openbmc/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 …]
/openbmc/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()
/openbmc/linux/kernel/
H A Dwatchdog_perf.c23 static DEFINE_PER_CPU(struct perf_event *, watchdog_ev);
24 static DEFINE_PER_CPU(struct perf_event *, dead_event);
94 static void watchdog_overflow_callback(struct perf_event *event, in watchdog_overflow_callback()
111 struct perf_event *evt; in hardlockup_detector_event_create()
160 struct perf_event *event = this_cpu_read(watchdog_ev); in watchdog_hardlockup_disable()
183 struct perf_event *event = per_cpu(dead_event, cpu); in hardlockup_detector_perf_cleanup()
208 struct perf_event *event = per_cpu(watchdog_ev, cpu); in hardlockup_detector_perf_stop()
230 struct perf_event *event = per_cpu(watchdog_ev, cpu); in hardlockup_detector_perf_restart()
/openbmc/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);
/openbmc/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 …]
/openbmc/linux/tools/bpf/bpftool/
H A Dlink.c380 __u64 config = info->perf_event.event.config; in show_perf_event_event_json()
381 __u32 type = info->perf_event.event.type; in show_perf_event_event_json()
463 switch (info->perf_event.type) { in show_link_close_json()
681 if (info->perf_event.kprobe.addr) in show_perf_event_kprobe_plain()
684 if (info->perf_event.kprobe.offset) in show_perf_event_kprobe_plain()
718 __u32 type = info->perf_event.event.type; in show_perf_event_event_plain()
796 switch (info->perf_event.type) { in show_link_close_plain()
878 switch (info.perf_event.type) { in do_show_link()
880 if (!info.perf_event.tracepoint.tp_name) { in do_show_link()
888 if (!info.perf_event.kprobe.func_name) { in do_show_link()
[all …]
/openbmc/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 …]
/openbmc/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