Home
last modified time | relevance | path

Searched refs:perf_event (Results 1 – 25 of 263) 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 Dperf_event.h281 struct perf_event;
385 int (*event_init) (struct perf_event *event);
391 void (*event_mapped) (struct perf_event *event, struct mm_struct *mm); /* optional */
392 void (*event_unmapped) (struct perf_event *event, struct mm_struct *mm); /* optional */
432 int (*add) (struct perf_event *event, int flags);
433 void (*del) (struct perf_event *event, int flags);
465 void (*start) (struct perf_event *event, int flags);
466 void (*stop) (struct perf_event *event, int flags);
474 void (*read) (struct perf_event *event);
509 int (*event_idx) (struct perf_event *event); /*optional */
[all …]
H A Dtrace_events.h393 struct perf_event *);
703 struct perf_event *p_event) \
770 int perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie);
771 void perf_event_detach_bpf_prog(struct perf_event *event);
772 int perf_event_query_prog_array(struct perf_event *event, void __user *info);
780 int bpf_get_perf_event_info(const struct perf_event *event, u32 *prog_id,
793 perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie) in perf_event_attach_bpf_prog()
798 static inline void perf_event_detach_bpf_prog(struct perf_event *event) { } in perf_event_detach_bpf_prog()
801 perf_event_query_prog_array(struct perf_event *event, void __user *info) in perf_event_query_prog_array()
821 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,
104 union perf_event *event,
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 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 Devent.c182 size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp) in perf_event__fprintf_comm()
194 size_t perf_event__fprintf_namespaces(union perf_event *event, FILE *fp) in perf_event__fprintf_namespaces()
221 size_t perf_event__fprintf_cgroup(union perf_event *event, FILE *fp) in perf_event__fprintf_cgroup()
228 union perf_event *event, in perf_event__process_comm()
236 union perf_event *event, in perf_event__process_namespaces()
244 union perf_event *event, in perf_event__process_cgroup()
252 union perf_event *event, in perf_event__process_lost()
260 union perf_event *event, in perf_event__process_aux()
268 union perf_event *event, in perf_event__process_itrace_start()
276 union perf_event *event, in perf_event__process_aux_output_hw_id()
[all …]
H A Dheader.h16 union perf_event;
174 union perf_event *event);
175 int perf_event__process_attr(const struct perf_tool *tool, union perf_event *event,
178 union perf_event *event,
180 size_t perf_event__fprintf_attr(union perf_event *event, FILE *fp);
181 size_t perf_event__fprintf_event_update(union perf_event *event, FILE *fp);
185 union perf_event *event);
189 union perf_event *event);
/linux/arch/x86/events/
H A Dperf_event.h94 static inline bool is_topdown_count(struct perf_event *event) in is_topdown_count()
99 static inline bool is_metric_event(struct perf_event *event) in is_metric_event()
108 static inline bool is_slots_event(struct perf_event *event) in is_slots_event()
113 static inline bool is_topdown_event(struct perf_event *event) in is_topdown_event()
118 int is_x86_event(struct perf_event *event);
120 static inline bool check_leader_group(struct perf_event *leader, int flags) in check_leader_group()
125 static inline bool is_branch_counters_group(struct perf_event *event) in is_branch_counters_group()
130 static inline bool is_pebs_counter_event_group(struct perf_event *event) in is_pebs_counter_event_group()
135 static inline bool is_acr_event_group(struct perf_event *event) in is_acr_event_group()
143 struct perf_event *owners[X86_PMC_IDX_MAX];
[all …]
/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 …]
/linux/kernel/events/
H A Dhw_breakpoint.c108 static inline struct mutex *get_task_bps_mutex(struct perf_event *bp) in get_task_bps_mutex()
115 static struct mutex *bp_constraints_lock(struct perf_event *bp) in bp_constraints_lock()
149 static bool bp_constraints_is_locked(struct perf_event *bp) in bp_constraints_is_locked()
158 static inline void assert_bp_constraints_lock_held(struct perf_event *bp) in assert_bp_constraints_lock_held()
286 static inline int hw_breakpoint_weight(struct perf_event *bp) in hw_breakpoint_weight()
323 static int task_bp_pinned(int cpu, struct perf_event *bp, enum bp_type_idx type) in task_bp_pinned()
326 struct perf_event *iter; in task_bp_pinned()
359 static const struct cpumask *cpumask_of_bp(struct perf_event *bp) in cpumask_of_bp()
371 max_bp_pinned_slots(struct perf_event *bp, enum bp_type_idx type) in max_bp_pinned_slots()
410 toggle_bp_slot(struct perf_event *bp, bool enable, enum bp_type_idx type, int weight) in toggle_bp_slot()
[all …]
H A Dcore.c239 static bool is_kernel_event(struct perf_event *event) in is_kernel_event()
271 typedef void (*event_f)(struct perf_event *, struct perf_cpu_context *,
275 struct perf_event *event;
283 struct perf_event *event = efs->event; in event_function()
326 static void event_function_call(struct perf_event *event, event_f func, void *data) in event_function_call()
383 static void event_function_local(struct perf_event *event, event_f func, void *data) in event_function_local()
696 static u64 perf_event_time(struct perf_event *event);
705 static inline u64 perf_event_clock(struct perf_event *event) in perf_event_clock()
733 __perf_effective_state(struct perf_event *event) in __perf_effective_state()
735 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/s390/kernel/
H A Dperf_pai.c58 struct perf_event *event; /* Perf event for sampling */
143 static void pai_event_destroy_cpu(struct perf_event *event, int cpu) in pai_event_destroy_cpu()
160 static void pai_event_destroy(struct perf_event *event) in pai_event_destroy()
176 static void paicrypt_event_destroy(struct perf_event *event) in paicrypt_event_destroy()
192 static u64 pai_getdata(struct perf_event *event, bool kernel) in pai_getdata()
218 static u64 paicrypt_getall(struct perf_event *event) in paicrypt_getall()
237 static int pai_alloc_cpu(struct perf_event *event, int cpu) in pai_alloc_cpu()
312 static int pai_alloc(struct perf_event *event) in pai_alloc()
348 static int pai_event_valid(struct perf_event *event, int idx) in pai_event_valid()
369 static int pai_event_init(struct perf_event *event, int idx) in pai_event_init()
[all …]
/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()

1234567891011