Searched refs:perf_event (Results 26 - 50 of 487) sorted by relevance

1234567891011>>

/linux-master/tools/perf/util/
H A Ddlfilter.h11 union perf_event;
31 union perf_event *event;
59 union perf_event *event,
70 union perf_event *event,
83 union perf_event *event,
H A Dmachine.h21 union perf_event;
105 int machine__process_comm_event(struct machine *machine, union perf_event *event,
107 int machine__process_exit_event(struct machine *machine, union perf_event *event,
109 int machine__process_fork_event(struct machine *machine, union perf_event *event,
111 int machine__process_lost_event(struct machine *machine, union perf_event *event,
113 int machine__process_lost_samples_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 *even
[all...]
H A Dheader.h6 #include <linux/perf_event.h>
116 union perf_event;
158 union perf_event *event);
159 int perf_event__process_attr(struct perf_tool *tool, union perf_event *event,
162 union perf_event *event,
164 size_t perf_event__fprintf_event_update(union perf_event *event, FILE *fp);
167 union perf_event *event);
170 union perf_event *event);
H A Dbpf-event.h12 union perf_event;
33 int machine__process_bpf(struct machine *machine, union perf_event *event,
41 union perf_event *event __maybe_unused,
H A Dsession.h14 #include <linux/perf_event.h>
82 union perf_event **event_ptr,
85 union perf_event *event, u64 offset,
92 int perf_session__queue_event(struct perf_session *s, union perf_event *event,
156 union perf_event *event,
160 union perf_event *event);
163 union perf_event *event,
H A Dtrace-event.h13 union perf_event;
98 void (*process_event) (union perf_event *event,
103 void (*process_switch)(union perf_event *event,
107 union perf_event *event);
111 void (*process_throttle)(union perf_event *event,
130 union perf_event *event;
139 union perf_event *event,
/linux-master/arch/x86/events/
H A Dperf_event.h15 #include <linux/perf_event.h>
89 static inline bool is_topdown_count(struct perf_event *event)
94 static inline bool is_metric_event(struct perf_event *event)
103 static inline bool is_slots_event(struct perf_event *event)
108 static inline bool is_topdown_event(struct perf_event *event)
113 static inline bool is_branch_counters_group(struct perf_event *event)
121 struct perf_event *owners[X86_PMC_IDX_MAX];
240 struct perf_event *events[X86_PMC_IDX_MAX]; /* in counter order */
255 struct perf_event *event_list[X86_PMC_IDX_MAX]; /* in enabled order */
761 void (*enable)(struct perf_event *);
[all...]
/linux-master/drivers/perf/arm_cspmu/
H A Darm_cspmu.h16 #include <linux/perf_event.h>
81 struct perf_event **events;
103 bool (*is_cycle_counter_event)(const struct perf_event *event);
105 u32 (*event_type)(const struct perf_event *event);
107 u32 (*event_filter)(const struct perf_event *event);
113 struct perf_event *event);
/linux-master/kernel/events/
H A Dhw_breakpoint.c108 static inline struct mutex *get_task_bps_mutex(struct perf_event *bp)
115 static struct mutex *bp_constraints_lock(struct perf_event *bp)
149 static bool bp_constraints_is_locked(struct perf_event *bp)
158 static inline void assert_bp_constraints_lock_held(struct perf_event *bp)
285 static inline int hw_breakpoint_weight(struct perf_event *bp)
322 static int task_bp_pinned(int cpu, struct perf_event *bp, enum bp_type_idx type)
325 struct perf_event *iter;
358 static const struct cpumask *cpumask_of_bp(struct perf_event *bp)
370 max_bp_pinned_slots(struct perf_event *bp, enum bp_type_idx type)
409 toggle_bp_slot(struct perf_event *b
[all...]
H A Dcore.c38 #include <linux/perf_event.h>
176 static bool is_kernel_event(struct perf_event *event)
208 typedef void (*event_f)(struct perf_event *, struct perf_cpu_context *,
212 struct perf_event *event;
220 struct perf_event *event = efs->event;
263 static void event_function_call(struct perf_event *event, event_f func, void *data)
316 static void event_function_local(struct perf_event *event, event_f func, void *data)
575 static u64 perf_event_time(struct perf_event *event);
584 static inline u64 perf_event_clock(struct perf_event *event)
612 __perf_effective_state(struct perf_event *even
[all...]
/linux-master/tools/bpf/bpftool/
H A Dlink.c8 #include <linux/perf_event.h>
366 jsonw_bool_field(wtr, "retprobe", info->perf_event.type == BPF_PERF_EVENT_KRETPROBE);
367 jsonw_uint_field(wtr, "addr", info->perf_event.kprobe.addr);
369 u64_to_ptr(info->perf_event.kprobe.func_name));
370 jsonw_uint_field(wtr, "offset", info->perf_event.kprobe.offset);
371 jsonw_uint_field(wtr, "missed", info->perf_event.kprobe.missed);
372 jsonw_uint_field(wtr, "cookie", info->perf_event.kprobe.cookie);
378 jsonw_bool_field(wtr, "retprobe", info->perf_event.type == BPF_PERF_EVENT_URETPROBE);
380 u64_to_ptr(info->perf_event.uprobe.file_name));
381 jsonw_uint_field(wtr, "offset", info->perf_event
[all...]
/linux-master/arch/powerpc/perf/
H A Dhv-common.h5 #include <linux/perf_event.h>
41 static u64 event_get_##name(struct perf_event *event) \
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dfill_link_info.c55 if (!ASSERT_EQ(info.perf_event.type, type, "perf_type_match"))
58 switch (info.perf_event.type) {
61 ASSERT_EQ(info.perf_event.kprobe.offset, offset, "kprobe_offset");
65 ASSERT_EQ(info.perf_event.kprobe.addr, addr + entry_offset,
68 ASSERT_EQ(info.perf_event.kprobe.cookie, PERF_EVENT_COOKIE, "kprobe_cookie");
70 if (!info.perf_event.kprobe.func_name) {
71 ASSERT_EQ(info.perf_event.kprobe.name_len, 0, "name_len");
72 info.perf_event.kprobe.func_name = ptr_to_u64(&buf);
73 info.perf_event.kprobe.name_len = sizeof(buf);
77 err = strncmp(u64_to_ptr(info.perf_event
[all...]
/linux-master/tools/include/linux/
H A Dring_buffer.h5 #include <linux/perf_event.h>
/linux-master/arch/x86/events/intel/
H A Duncore.h8 #include <linux/perf_event.h>
9 #include "../perf_event.h"
112 void (*disable_event)(struct intel_uncore_box *, struct perf_event *);
113 void (*enable_event)(struct intel_uncore_box *, struct perf_event *);
114 u64 (*read_counter)(struct intel_uncore_box *, struct perf_event *);
115 int (*hw_config)(struct intel_uncore_box *, struct perf_event *);
117 struct perf_event *);
118 void (*put_constraint)(struct intel_uncore_box *, struct perf_event *);
145 struct perf_event *events[UNCORE_PMC_IDX_MAX];
146 struct perf_event *event_lis
[all...]
/linux-master/samples/hw_breakpoint/
H A Ddata_breakpoint.c21 #include <linux/perf_event.h>
24 static struct perf_event * __percpu *sample_hbp;
31 static void sample_hbp_handler(struct perf_event *bp,
/linux-master/arch/sh/kernel/cpu/sh4/
H A DMakefile14 perf-$(CONFIG_CPU_SUBTYPE_SH7750) := perf_event.o
15 perf-$(CONFIG_CPU_SUBTYPE_SH7750S) := perf_event.o
16 perf-$(CONFIG_CPU_SUBTYPE_SH7091) := perf_event.o
/linux-master/arch/arm/include/asm/
H A Dhw_breakpoint.h119 struct perf_event;
125 extern int hw_breakpoint_arch_parse(struct perf_event *bp,
135 int arch_install_hw_breakpoint(struct perf_event *bp);
136 void arch_uninstall_hw_breakpoint(struct perf_event *bp);
137 void hw_breakpoint_pmu_read(struct perf_event *bp);
/linux-master/arch/loongarch/include/asm/
H A Dhw_breakpoint.h100 struct perf_event;
106 extern int hw_breakpoint_arch_parse(struct perf_event *bp,
112 extern int arch_install_hw_breakpoint(struct perf_event *bp);
113 extern void arch_uninstall_hw_breakpoint(struct perf_event *bp);
115 extern void hw_breakpoint_pmu_read(struct perf_event *bp);
/linux-master/arch/arm64/include/asm/
H A Dhw_breakpoint.h109 struct perf_event;
115 extern int hw_breakpoint_arch_parse(struct perf_event *bp,
121 extern int arch_install_hw_breakpoint(struct perf_event *bp);
122 extern void arch_uninstall_hw_breakpoint(struct perf_event *bp);
123 extern void hw_breakpoint_pmu_read(struct perf_event *bp);
/linux-master/arch/sh/kernel/
H A Dperf_event.c24 #include <linux/perf_event.h>
29 struct perf_event *events[MAX_HWEVENTS];
61 * Release the PMU if this is the last perf_event.
63 static void hw_perf_event_destroy(struct perf_event *event)
100 static int __hw_perf_event_init(struct perf_event *event)
158 static void sh_perf_event_update(struct perf_event *event,
199 static void sh_pmu_stop(struct perf_event *event, int flags)
217 static void sh_pmu_start(struct perf_event *event, int flags)
234 static void sh_pmu_del(struct perf_event *event, int flags)
244 static int sh_pmu_add(struct perf_event *even
[all...]
H A Dhw_breakpoint.c10 #include <linux/perf_event.h>
29 static DEFINE_PER_CPU(struct perf_event *, bp_per_reg[HBP_NUM]);
47 int arch_install_hw_breakpoint(struct perf_event *bp)
53 struct perf_event **slot = this_cpu_ptr(&bp_per_reg[i]);
79 void arch_uninstall_hw_breakpoint(struct perf_event *bp)
85 struct perf_event **slot = this_cpu_ptr(&bp_per_reg[i]);
174 static int arch_build_bp_info(struct perf_event *bp,
219 int hw_breakpoint_arch_parse(struct perf_event *bp,
276 struct perf_event *bp;
391 void hw_breakpoint_pmu_read(struct perf_event *b
[all...]
/linux-master/drivers/perf/
H A Driscv_pmu_legacy.c20 static int pmu_legacy_ctr_get_idx(struct perf_event *event)
35 static int pmu_legacy_event_map(struct perf_event *event, u64 *config)
46 static u64 pmu_legacy_read_ctr(struct perf_event *event)
66 static void pmu_legacy_ctr_start(struct perf_event *event, u64 ival)
80 static uint8_t pmu_legacy_csr_index(struct perf_event *event)
85 static void pmu_legacy_event_mapped(struct perf_event *event, struct mm_struct *mm)
94 static void pmu_legacy_event_unmapped(struct perf_event *event, struct mm_struct *mm)
H A Dqcom_l3_pmu.c22 #include <linux/perf_event.h>
136 static inline u32 get_event_type(struct perf_event *event)
141 static inline bool event_uses_long_counter(struct perf_event *event)
146 static inline int event_num_counters(struct perf_event *event)
158 struct perf_event *events[L3_NUM_COUNTERS];
175 void (*start)(struct perf_event *event);
177 void (*stop)(struct perf_event *event, int flags);
178 /* Called to update the perf_event */
179 void (*update)(struct perf_event *event);
193 static void qcom_l3_cache__64bit_counter_start(struct perf_event *even
[all...]
/linux-master/kernel/trace/
H A Dtrace_event_perf.c28 struct perf_event *p_event)
97 struct perf_event *p_event)
154 static void perf_trace_event_unreg(struct perf_event *p_event)
181 static int perf_trace_event_open(struct perf_event *p_event)
187 static void perf_trace_event_close(struct perf_event *p_event)
194 struct perf_event *p_event)
215 int perf_trace_init(struct perf_event *p_event)
237 void perf_trace_destroy(struct perf_event *p_event)
247 int perf_kprobe_init(struct perf_event *p_event, bool is_retprobe)
285 void perf_kprobe_destroy(struct perf_event *p_even
[all...]

Completed in 353 milliseconds

1234567891011>>