Home
last modified time | relevance | path

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

1234567891011

/linux/include/linux/
H A Dhw_breakpoint.h42 static inline unsigned long hw_breakpoint_addr(struct perf_event *bp) in hw_breakpoint_addr()
47 static inline int hw_breakpoint_type(struct perf_event *bp) in hw_breakpoint_type()
52 static inline unsigned long hw_breakpoint_len(struct perf_event *bp) in hw_breakpoint_len()
57 extern struct perf_event *
65 modify_user_hw_breakpoint(struct perf_event *bp, struct perf_event_attr *attr);
67 modify_user_hw_breakpoint_check(struct perf_event *bp, struct perf_event_attr *attr,
73 extern struct perf_event *
79 extern struct perf_event * __percpu *
84 extern int register_perf_hw_breakpoint(struct perf_event *bp);
85 extern void unregister_hw_breakpoint(struct perf_event *bp);
[all …]
H A Dtrace_events.h393 struct perf_event *);
698 struct perf_event *p_event) \
765 int perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie);
766 void perf_event_detach_bpf_prog(struct perf_event *event);
767 int perf_event_query_prog_array(struct perf_event *event, void __user *info);
775 int bpf_get_perf_event_info(const struct perf_event *event, u32 *prog_id,
788 perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie) in perf_event_attach_bpf_prog()
793 static inline void perf_event_detach_bpf_prog(struct perf_event *event) { } in perf_event_detach_bpf_prog()
796 perf_event_query_prog_array(struct perf_event *event, void __user *info) in perf_event_query_prog_array()
816 static inline int bpf_get_perf_event_info(const struct perf_event *event, in bpf_get_perf_event_info()
[all …]
/linux/tools/perf/util/
H A Devent.h302 union perf_event *event,
306 union perf_event *event,
310 union perf_event *event,
314 union perf_event *event,
318 union perf_event *event,
322 union perf_event *event,
326 union perf_event *event,
330 union perf_event *event,
334 union perf_event *event,
338 union perf_event *event,
[all …]
H 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,
30 union perf_event *event);
32 union perf_event *event);
34 union perf_event *event, u64 data, const char *str);
36 typedef int (*event_oe)(const struct perf_tool *tool, union perf_event *event,
102 union perf_event *event,
H A Devent.c180 size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp) in perf_event__fprintf_comm()
192 size_t perf_event__fprintf_namespaces(union perf_event *event, FILE *fp) in perf_event__fprintf_namespaces()
219 size_t perf_event__fprintf_cgroup(union perf_event *event, FILE *fp) in perf_event__fprintf_cgroup()
226 union perf_event *event, in perf_event__process_comm()
234 union perf_event *event, in perf_event__process_namespaces()
242 union perf_event *event, in perf_event__process_cgroup()
250 union perf_event *event, in perf_event__process_lost()
258 union perf_event *event, in perf_event__process_aux()
266 union perf_event *event, in perf_event__process_itrace_start()
274 union perf_event *event, in perf_event__process_aux_output_hw_id()
[all …]
H A Dmachine.h21 union perf_event;
111 int machine__process_comm_event(struct machine *machine, union perf_event *event,
113 int machine__process_exit_event(struct machine *machine, union perf_event *event,
115 int machine__process_fork_event(struct machine *machine, union perf_event *event,
117 int machine__process_lost_event(struct machine *machine, union perf_event *event,
119 int machine__process_lost_samples_event(struct machine *machine, union perf_event *event,
122 union perf_event *event);
124 union perf_event *event);
126 union perf_event *event);
128 union perf_event *event);
[all …]
H A Dtool.c18 union perf_event *event, u64 file_offset, in perf_session__process_compressed_event()
85 union perf_event *event __maybe_unused) in process_event_synth_tracing_data_stub()
92 union perf_event *event __maybe_unused, in process_event_synth_attr_stub()
100 union perf_event *event __maybe_unused, in process_event_synth_event_update_stub()
111 union perf_event *event __maybe_unused, in process_event_sample_stub()
121 union perf_event *event __maybe_unused, in process_event_stub()
130 union perf_event *event __maybe_unused, in process_finished_round_stub()
154 union perf_event *event) in process_event_auxtrace_stub()
164 union perf_event *event __maybe_unused) in process_event_op2_stub()
174 union perf_event *event __maybe_unused) in process_event_thread_map_stub()
[all …]
H A Dheader.h16 union perf_event;
172 union perf_event *event);
173 int perf_event__process_attr(const struct perf_tool *tool, union perf_event *event,
176 union perf_event *event,
178 size_t perf_event__fprintf_attr(union perf_event *event, FILE *fp);
179 size_t perf_event__fprintf_event_update(union perf_event *event, FILE *fp);
183 union perf_event *event);
187 union perf_event *event);
/linux/drivers/perf/hisilicon/
H A Dhisi_uncore_pmu.h41 static inline u32 hisi_get_##name(struct perf_event *event) \
55 int (*check_filter)(struct perf_event *event);
57 int (*get_event_idx)(struct perf_event *);
68 void (*enable_filter)(struct perf_event *event);
69 void (*disable_filter)(struct perf_event *event);
82 struct perf_event *hw_events[HISI_MAX_COUNTERS];
147 int hisi_uncore_pmu_get_event_idx(struct perf_event *event);
148 void hisi_uncore_pmu_read(struct perf_event *event);
149 int hisi_uncore_pmu_add(struct perf_event *event, int flags);
150 void hisi_uncore_pmu_del(struct perf_event *event, int flags);
[all …]
H 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()
224 static u64 hisi_pcie_pmu_get_event_ctrl_val(struct perf_event *event) in hisi_pcie_pmu_get_event_ctrl_val()
265 static void hisi_pcie_pmu_config_event_ctrl(struct perf_event *event) in hisi_pcie_pmu_config_event_ctrl()
274 static void hisi_pcie_pmu_clear_event_ctrl(struct perf_event *event) in hisi_pcie_pmu_clear_event_ctrl()
303 static bool hisi_pcie_pmu_valid_filter(struct perf_event *event, in hisi_pcie_pmu_valid_filter()
327 static bool hisi_pcie_pmu_cmp_event(struct perf_event *target, in hisi_pcie_pmu_cmp_event()
328 struct perf_event *event) in hisi_pcie_pmu_cmp_event()
334 static bool hisi_pcie_pmu_validate_event_group(struct perf_event *event) in hisi_pcie_pmu_validate_event_group()
[all …]
/linux/arch/x86/events/intel/
H A Duncore.h115 void (*disable_event)(struct intel_uncore_box *, struct perf_event *);
116 void (*enable_event)(struct intel_uncore_box *, struct perf_event *);
117 u64 (*read_counter)(struct intel_uncore_box *, struct perf_event *);
118 int (*hw_config)(struct intel_uncore_box *, struct perf_event *);
120 struct perf_event *);
121 void (*put_constraint)(struct intel_uncore_box *, struct perf_event *);
148 struct perf_event *events[UNCORE_PMC_IDX_MAX];
149 struct perf_event *event_list[UNCORE_PMC_IDX_MAX];
379 struct perf_event *event) in uncore_freerunning_counter()
466 struct perf_event *event) in uncore_freerunning_bits()
[all …]
/linux/kernel/events/
H A Dcore.c226 static bool is_kernel_event(struct perf_event *event) in is_kernel_event()
258 typedef void (*event_f)(struct perf_event *, struct perf_cpu_context *,
262 struct perf_event *event;
270 struct perf_event *event = efs->event; in event_function()
313 static void event_function_call(struct perf_event *event, event_f func, void *data) in event_function_call()
370 static void event_function_local(struct perf_event *event, event_f func, void *data) in event_function_local()
669 static u64 perf_event_time(struct perf_event *event);
678 static inline u64 perf_event_clock(struct perf_event *event) in perf_event_clock()
706 __perf_effective_state(struct perf_event *event) in __perf_effective_state()
708 struct perf_event *leader = event->group_leader; in __perf_effective_state()
[all …]
/linux/arch/xtensa/kernel/
H A Dhw_breakpoint.c19 static DEFINE_PER_CPU(struct perf_event *, bp_on_reg[XCHAL_NUM_IBREAK]);
22 static DEFINE_PER_CPU(struct perf_event *, wp_on_reg[XCHAL_NUM_DBREAK]);
51 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()
148 static void set_ibreak_regs(int reg, struct perf_event *bp) in set_ibreak_regs()
158 static void set_dbreak_regs(int reg, struct perf_event *bp) in set_dbreak_regs()
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()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dfill_link_info.c56 if (!ASSERT_EQ(info.perf_event.type, type, "perf_type_match")) in verify_perf_link_info()
59 switch (info.perf_event.type) { in verify_perf_link_info()
62 ASSERT_EQ(info.perf_event.kprobe.offset, offset, "kprobe_offset"); in verify_perf_link_info()
66 ASSERT_EQ(info.perf_event.kprobe.addr, addr + entry_offset, in verify_perf_link_info()
69 ASSERT_EQ(info.perf_event.kprobe.cookie, PERF_EVENT_COOKIE, "kprobe_cookie"); in verify_perf_link_info()
71 ASSERT_EQ(info.perf_event.kprobe.name_len, strlen(KPROBE_FUNC) + 1, in verify_perf_link_info()
73 if (!info.perf_event.kprobe.func_name) { in verify_perf_link_info()
74 info.perf_event.kprobe.func_name = ptr_to_u64(&buf); in verify_perf_link_info()
75 info.perf_event.kprobe.name_len = sizeof(buf); in verify_perf_link_info()
79 err = strncmp(u64_to_ptr(info.perf_event in verify_perf_link_info()
[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/arch/powerpc/kernel/
H A Dhw_breakpoint.c34 static DEFINE_PER_CPU(struct perf_event *, bp_per_reg[HBP_NUM_MAX]);
56 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint()
59 struct perf_event **slot; in arch_install_hw_breakpoint()
92 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_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()
236 struct perf_event *bp = __this_cpu_read(bp_per_reg[i]); in thread_change_pc()
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()
[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/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()
43 static int process_events(union perf_event **events, size_t count) in process_events()
100 union perf_event *events[] = { in test__parse_no_sample_id_all()
101 (union perf_event *)&event1, in test__parse_no_sample_id_all()
102 (union perf_event *)&event2, in test__parse_no_sample_id_all()
103 (union perf_event *)&event3, in test__parse_no_sample_id_all()
/linux/drivers/perf/
H 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()
H 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()
281 static void riscv_pmu_del(struct perf_event *event, int flags) in riscv_pmu_del()
299 static void riscv_pmu_read(struct perf_event *event) in riscv_pmu_read()
[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/sh/kernel/
H A Dperf_event.c29 struct perf_event *events[MAX_HWEVENTS];
63 static void hw_perf_event_destroy(struct perf_event *event) in hw_perf_event_destroy()
100 static int __hw_perf_event_init(struct perf_event *event) in __hw_perf_event_init()
158 static void sh_perf_event_update(struct perf_event *event, in sh_perf_event_update()
199 static void sh_pmu_stop(struct perf_event *event, int flags) in sh_pmu_stop()
217 static void sh_pmu_start(struct perf_event *event, int flags) in sh_pmu_start()
234 static void sh_pmu_del(struct perf_event *event, int flags) in sh_pmu_del()
244 static int sh_pmu_add(struct perf_event *event, int flags) in sh_pmu_add()
275 static void sh_pmu_read(struct perf_event *event) in sh_pmu_read()
280 static int sh_pmu_event_init(struct perf_event *event) in sh_pmu_event_init()
H A Dhw_breakpoint.c29 static DEFINE_PER_CPU(struct perf_event *, bp_per_reg[HBP_NUM]);
47 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint()
53 struct perf_event **slot = this_cpu_ptr(&bp_per_reg[i]); in arch_install_hw_breakpoint()
79 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint()
85 struct perf_event **slot = this_cpu_ptr(&bp_per_reg[i]); in arch_uninstall_hw_breakpoint()
174 static int arch_build_bp_info(struct perf_event *bp, in arch_build_bp_info()
219 int hw_breakpoint_arch_parse(struct perf_event *bp, in hw_breakpoint_arch_parse()
276 struct perf_event *bp; in hw_breakpoint_handler()
391 void hw_breakpoint_pmu_read(struct perf_event *bp) in hw_breakpoint_pmu_read()
/linux/arch/powerpc/include/asm/
H A Dhw_breakpoint.h72 struct perf_event;
80 extern int hw_breakpoint_arch_parse(struct perf_event *bp,
85 int arch_install_hw_breakpoint(struct perf_event *bp);
86 void arch_uninstall_hw_breakpoint(struct perf_event *bp);
87 void hw_breakpoint_pmu_read(struct perf_event *bp);
91 extern void ptrace_triggered(struct perf_event *bp,
/linux/kernel/
H A Dwatchdog_perf.c24 static DEFINE_PER_CPU(struct perf_event *, watchdog_ev);
105 static void watchdog_overflow_callback(struct perf_event *event, in watchdog_overflow_callback()
125 struct perf_event *evt; in hardlockup_detector_event_create()
181 struct perf_event *event = this_cpu_read(watchdog_ev); in watchdog_hardlockup_disable()
200 struct perf_event *event = this_cpu_read(watchdog_ev); in hardlockup_detector_perf_adjust_period()
227 struct perf_event *event = per_cpu(watchdog_ev, cpu); in hardlockup_detector_perf_stop()
249 struct perf_event *event = per_cpu(watchdog_ev, cpu); in hardlockup_detector_perf_restart()

1234567891011