Home
last modified time | relevance | path

Searched refs:perf_event (Results 1 – 25 of 264) 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.h17 #include <uapi/linux/perf_event.h>
25 # include <asm/perf_event.h>
281 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 *even
765 struct perf_event { global() struct
772 event_entryperf_event global() argument
778 sibling_listperf_event global() argument
802 group_leaderperf_event global() argument
811 stateperf_event global() argument
826 attrperf_event global() argument
830 hwperf_event global() argument
832 ctxperf_event global() argument
838 pmu_ctxperf_event global() argument
853 parentperf_event global() argument
855 oncpuperf_event global() argument
856 cpuperf_event global() argument
858 owner_entryperf_event global() argument
859 ownerperf_event global() argument
862 mmap_mutexperf_event global() argument
863 mmap_countperf_event global() argument
865 rbperf_event global() argument
866 rb_entryperf_event global() argument
867 rcu_batchesperf_event global() argument
868 rcu_pendingperf_event global() argument
893 aux_eventperf_event global() argument
895 destroyperf_event global() argument
896 rcu_headperf_event global() argument
898 nsperf_event global() argument
899 idperf_event global() argument
901 lost_samplesperf_event global() argument
903 clockperf_event global() argument
904 overflow_handlerperf_event global() argument
905 overflow_handler_contextperf_event global() argument
906 progperf_event global() argument
907 bpf_cookieperf_event global() argument
910 tp_eventperf_event global() argument
911 filterperf_event global() argument
913 ftrace_opsperf_event global() argument
940 orig_typeperf_event global() argument
[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;
17 typedef int (*event_sample)(const struct perf_tool *tool, union perf_event *event,
21 typedef int (*event_op)(const struct perf_tool *tool, union perf_event *event,
25 union perf_event *event,
29 union perf_event *event);
31 union perf_event *event);
33 union perf_event *event, u64 data, const char *str);
35 typedef int (*event_oe)(const struct perf_tool *tool, union perf_event *event,
103 union perf_event *event,
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 *even
[all...]
H A Dtool.c18 union perf_event *event, u64 file_offset, in perf_session__process_compressed_event()
134 union perf_event *event __maybe_unused) in process_finished_round_stub()
141 union perf_event *event __maybe_unused, in skipn()
149 union perf_event *event __maybe_unused, in skipn()
160 union perf_event *event __maybe_unused, in process_event_auxtrace_stub()
169 union perf_event *event __maybe_unused,
178 union perf_event *event __maybe_unused, in process_event_thread_map_stub()
202 union perf_event *event) in process_event_stat_config_stub()
212 union perf_event *event __maybe_unused) in process_stat_stub()
222 union perf_event *even in process_stat_round_stub()
[all...]
H A Devent.c14 #include <linux/perf_event.h>
182 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 *even in perf_event__process_itrace_start()
[all...]
H A Dheader.h6 #include <linux/perf_event.h>
16 union perf_event;
179 union perf_event *event);
180 int perf_event__process_attr(const struct perf_tool *tool, union perf_event *event,
183 union perf_event *event,
185 size_t perf_event__fprintf_attr(union perf_event *event, FILE *fp);
186 size_t perf_event__fprintf_event_update(union perf_event *event, FILE *fp);
190 union perf_event *event);
194 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 …]
/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.c240 static bool is_kernel_event(struct perf_event *event) in is_kernel_event()
272 typedef void (*event_f)(struct perf_event *, struct perf_cpu_context *,
276 struct perf_event *event;
284 struct perf_event *event = efs->event; in event_function()
327 static void event_function_call(struct perf_event *event, event_f func, void *data) in event_function_call()
384 static void event_function_local(struct perf_event *event, event_f func, void *data) in event_function_local()
697 static u64 perf_event_time(struct perf_event *event);
706 static inline u64 perf_event_clock(struct perf_event *event) in perf_event_clock()
734 __perf_effective_state(struct perf_event *event) in __perf_effective_state()
736 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/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()
199 static u64 pai_getdata(struct perf_event *event, bool kernel) in pai_getdata()
225 static u64 paicrypt_getall(struct perf_event *event) in paicrypt_getall()
244 static int pai_alloc_cpu(struct perf_event *event, int cpu) in pai_alloc_cpu()
319 static int pai_alloc(struct perf_event *event) in pai_alloc()
355 static int pai_event_valid(struct perf_event *event, int idx) in pai_event_valid()
376 static int pai_event_init(struct perf_event *event, int idx) in pai_event_init()
[all …]
/linux/tools/bpf/bpftool/
H A Dlink.c474 jsonw_bool_field(wtr, "retprobe", info->perf_event.type == BPF_PERF_EVENT_KRETPROBE); in show_perf_event_kprobe_json()
475 jsonw_uint_field(wtr, "addr", info->perf_event.kprobe.addr); in show_perf_event_kprobe_json()
477 u64_to_ptr(info->perf_event.kprobe.func_name)); in show_perf_event_kprobe_json()
478 jsonw_uint_field(wtr, "offset", info->perf_event.kprobe.offset); in show_perf_event_kprobe_json()
479 jsonw_uint_field(wtr, "missed", info->perf_event.kprobe.missed); in show_perf_event_kprobe_json()
480 jsonw_uint_field(wtr, "cookie", info->perf_event.kprobe.cookie); in show_perf_event_kprobe_json()
486 jsonw_bool_field(wtr, "retprobe", info->perf_event.type == BPF_PERF_EVENT_URETPROBE); in show_perf_event_uprobe_json()
488 u64_to_ptr(info->perf_event.uprobe.file_name)); in show_perf_event_uprobe_json()
489 jsonw_uint_field(wtr, "offset", info->perf_event.uprobe.offset); in show_perf_event_uprobe_json()
490 jsonw_uint_field(wtr, "cookie", info->perf_event.uprobe.cookie); in show_perf_event_uprobe_json()
[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.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/drivers/perf/
H A Dqcom_l3_pmu.c136 static inline u32 get_event_type(struct perf_event *event) in get_event_type()
141 static inline bool event_uses_long_counter(struct perf_event *event) in event_uses_long_counter()
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);
193 static void qcom_l3_cache__64bit_counter_start(struct perf_event *event) in qcom_l3_cache__64bit_counter_start()
224 static void qcom_l3_cache__64bit_counter_stop(struct perf_event *event, in qcom_l3_cache__64bit_counter_stop()
239 static void qcom_l3_cache__64bit_counter_update(struct perf_event *event) in qcom_l3_cache__64bit_counter_update()
[all …]
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()
/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()
106 union perf_event *events[] = { in test__parse_no_sample_id_all()
107 (union perf_event *)&event1, in test__parse_no_sample_id_all()
108 (union perf_event *)&event2,
109 (union perf_event *)&event3,
/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/tools/testing/selftests/bpf/prog_tests/
H A Dfill_link_info.c73 if (!ASSERT_EQ(info.perf_event.type, type, "perf_type_match")) in verify_perf_link_info()
76 switch (info.perf_event.type) { in verify_perf_link_info()
79 ASSERT_EQ(info.perf_event.kprobe.offset, offset, "kprobe_offset"); in verify_perf_link_info()
83 ASSERT_EQ(info.perf_event.kprobe.addr, addr + entry_offset, in verify_perf_link_info()
86 ASSERT_EQ(info.perf_event.kprobe.cookie, PERF_EVENT_COOKIE, "kprobe_cookie"); in verify_perf_link_info()
88 ASSERT_EQ(info.perf_event.kprobe.name_len, strlen(KPROBE_FUNC) + 1, in verify_perf_link_info()
90 if (!info.perf_event.kprobe.func_name) { in verify_perf_link_info()
91 info.perf_event.kprobe.func_name = ptr_to_u64(&buf); in verify_perf_link_info()
92 info.perf_event.kprobe.name_len = sizeof(buf); in verify_perf_link_info()
96 err = strncmp(u64_to_ptr(info.perf_event.kprobe.func_name), KPROBE_FUNC, in verify_perf_link_info()
[all …]
/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/arch/sh/kernel/
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()
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()

1234567891011