Home
last modified time | relevance | path

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

12345678910

/Linux-v4.19/include/linux/
Dhw_breakpoint.h32 static inline unsigned long hw_breakpoint_addr(struct perf_event *bp) in hw_breakpoint_addr()
37 static inline int hw_breakpoint_type(struct perf_event *bp) in hw_breakpoint_type()
42 static inline unsigned long hw_breakpoint_len(struct perf_event *bp) in hw_breakpoint_len()
47 extern struct perf_event *
55 modify_user_hw_breakpoint(struct perf_event *bp, struct perf_event_attr *attr);
57 modify_user_hw_breakpoint_check(struct perf_event *bp, struct perf_event_attr *attr,
63 extern struct perf_event *
69 extern struct perf_event * __percpu *
74 extern int register_perf_hw_breakpoint(struct perf_event *bp);
75 extern int __register_perf_hw_breakpoint(struct perf_event *bp);
[all …]
Dperf_event.h229 struct perf_event;
297 int (*event_init) (struct perf_event *event);
303 void (*event_mapped) (struct perf_event *event, struct mm_struct *mm); /* optional */
304 void (*event_unmapped) (struct perf_event *event, struct mm_struct *mm); /* optional */
332 int (*add) (struct perf_event *event, int flags);
333 void (*del) (struct perf_event *event, int flags);
353 void (*start) (struct perf_event *event, int flags);
354 void (*stop) (struct perf_event *event, int flags);
362 void (*read) (struct perf_event *event);
396 int (*event_idx) (struct perf_event *event); /*optional */
[all …]
Dtrace_events.h283 struct perf_event *);
406 struct perf_event *p_event) \
469 int perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog);
470 void perf_event_detach_bpf_prog(struct perf_event *event);
471 int perf_event_query_prog_array(struct perf_event *event, void __user *info);
475 int bpf_get_perf_event_info(const struct perf_event *event, u32 *prog_id,
485 perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog) in perf_event_attach_bpf_prog()
490 static inline void perf_event_detach_bpf_prog(struct perf_event *event) { } in perf_event_detach_bpf_prog()
493 perf_event_query_prog_array(struct perf_event *event, void __user *info) in perf_event_query_prog_array()
509 static inline int bpf_get_perf_event_info(const struct perf_event *event, in bpf_get_perf_event_info()
[all …]
/Linux-v4.19/kernel/events/
Dhw_breakpoint.c84 __weak int hw_breakpoint_weight(struct perf_event *bp) in hw_breakpoint_weight()
118 static int task_bp_pinned(int cpu, struct perf_event *bp, enum bp_type_idx type) in task_bp_pinned()
121 struct perf_event *iter; in task_bp_pinned()
134 static const struct cpumask *cpumask_of_bp(struct perf_event *bp) in cpumask_of_bp()
146 fetch_bp_busy_slots(struct bp_busy_slots *slots, struct perf_event *bp, in fetch_bp_busy_slots()
185 static void toggle_bp_task_slot(struct perf_event *bp, int cpu, in toggle_bp_task_slot()
204 toggle_bp_slot(struct perf_event *bp, bool enable, enum bp_type_idx type, in toggle_bp_slot()
232 __weak void arch_unregister_hw_breakpoint(struct perf_event *bp) in arch_unregister_hw_breakpoint()
281 static int __reserve_bp_slot(struct perf_event *bp, u64 bp_type) in __reserve_bp_slot()
315 int reserve_bp_slot(struct perf_event *bp) in reserve_bp_slot()
[all …]
Dcore.c170 static bool is_kernel_event(struct perf_event *event) in is_kernel_event()
194 typedef void (*event_f)(struct perf_event *, struct perf_cpu_context *,
198 struct perf_event *event;
206 struct perf_event *event = efs->event; in event_function()
249 static void event_function_call(struct perf_event *event, event_f func, void *data) in event_function_call()
302 static void event_function_local(struct perf_event *event, event_f func, void *data) in event_function_local()
566 static u64 perf_event_time(struct perf_event *event);
580 static inline u64 perf_event_clock(struct perf_event *event) in perf_event_clock()
608 __perf_effective_state(struct perf_event *event) in __perf_effective_state()
610 struct perf_event *leader = event->group_leader; in __perf_effective_state()
[all …]
/Linux-v4.19/include/linux/perf/
Darm_pmu.h53 struct perf_event *events[ARMPMU_MAX_HWEVENTS];
88 void (*enable)(struct perf_event *event);
89 void (*disable)(struct perf_event *event);
91 struct perf_event *event);
93 struct perf_event *event);
96 u64 (*read_counter)(struct perf_event *event);
97 void (*write_counter)(struct perf_event *event, u64 val);
101 int (*map_event)(struct perf_event *event);
102 int (*filter_match)(struct perf_event *event);
120 u64 armpmu_event_update(struct perf_event *event);
[all …]
/Linux-v4.19/drivers/perf/hisilicon/
Dhisi_uncore_pmu.h43 int (*get_event_idx)(struct perf_event *);
55 struct perf_event *hw_events[HISI_MAX_COUNTERS];
83 int hisi_uncore_pmu_get_event_idx(struct perf_event *event);
84 void hisi_uncore_pmu_read(struct perf_event *event);
85 int hisi_uncore_pmu_add(struct perf_event *event, int flags);
86 void hisi_uncore_pmu_del(struct perf_event *event, int flags);
87 void hisi_uncore_pmu_start(struct perf_event *event, int flags);
88 void hisi_uncore_pmu_stop(struct perf_event *event, int flags);
89 void hisi_uncore_pmu_set_event_period(struct perf_event *event);
90 void hisi_uncore_pmu_event_update(struct perf_event *event);
[all …]
/Linux-v4.19/arch/x86/events/intel/
Duncore.h83 void (*disable_event)(struct intel_uncore_box *, struct perf_event *);
84 void (*enable_event)(struct intel_uncore_box *, struct perf_event *);
85 u64 (*read_counter)(struct intel_uncore_box *, struct perf_event *);
86 int (*hw_config)(struct intel_uncore_box *, struct perf_event *);
88 struct perf_event *);
89 void (*put_constraint)(struct intel_uncore_box *, struct perf_event *);
117 struct perf_event *events[UNCORE_PMC_IDX_MAX];
118 struct perf_event *event_list[UNCORE_PMC_IDX_MAX];
286 struct perf_event *event) in uncore_freerunning_counter()
361 struct perf_event *event) in uncore_freerunning_bits()
[all …]
/Linux-v4.19/arch/x86/events/
Dperf_event.h78 struct perf_event *owners[X86_PMC_IDX_MAX];
179 struct perf_event *events[X86_PMC_IDX_MAX]; /* in counter order */
192 struct perf_event *event_list[X86_PMC_IDX_MAX]; /* in enabled order */
522 void (*enable)(struct perf_event *);
523 void (*disable)(struct perf_event *);
524 void (*add)(struct perf_event *);
525 void (*del)(struct perf_event *);
526 void (*read)(struct perf_event *event);
527 int (*hw_config)(struct perf_event *event);
549 struct perf_event *event);
[all …]
/Linux-v4.19/arch/x86/include/asm/
Dhw_breakpoint.h53 struct perf_event;
57 extern int hw_breakpoint_arch_parse(struct perf_event *bp,
64 int arch_install_hw_breakpoint(struct perf_event *bp);
65 void arch_uninstall_hw_breakpoint(struct perf_event *bp);
66 void hw_breakpoint_pmu_read(struct perf_event *bp);
67 void hw_breakpoint_pmu_unthrottle(struct perf_event *bp);
70 arch_fill_perf_breakpoint(struct perf_event *bp);
/Linux-v4.19/arch/xtensa/kernel/
Dhw_breakpoint.c18 static DEFINE_PER_CPU(struct perf_event *, bp_on_reg[XCHAL_NUM_IBREAK]);
21 static DEFINE_PER_CPU(struct perf_event *, wp_on_reg[XCHAL_NUM_DBREAK]);
50 int hw_breakpoint_arch_parse(struct perf_event *bp, in hw_breakpoint_arch_parse()
133 static int alloc_slot(struct perf_event **slot, size_t n, in alloc_slot()
134 struct perf_event *bp) in alloc_slot()
147 static void set_ibreak_regs(int reg, struct perf_event *bp) in set_ibreak_regs()
157 static void set_dbreak_regs(int reg, struct perf_event *bp) in set_dbreak_regs()
171 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint()
192 static int free_slot(struct perf_event **slot, size_t n, in free_slot()
193 struct perf_event *bp) in free_slot()
[all …]
/Linux-v4.19/tools/perf/util/
Devent.h623 union perf_event { union
665 union perf_event *event,
710 union perf_event *event,
714 union perf_event *event,
718 union perf_event *event,
722 union perf_event *event,
726 union perf_event *event,
730 union perf_event *event,
734 union perf_event *event,
738 union perf_event *event,
[all …]
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_tool *tool, union perf_event *event,
32 typedef int (*event_oe)(struct perf_tool *tool, union perf_event *event,
35 typedef s64 (*event_op3)(struct perf_tool *tool, union perf_event *event,
Dmachine.h18 union perf_event;
107 int machine__process_comm_event(struct machine *machine, union perf_event *event,
109 int machine__process_exit_event(struct machine *machine, union perf_event *event,
111 int machine__process_fork_event(struct machine *machine, union perf_event *event,
113 int machine__process_lost_event(struct machine *machine, union perf_event *event,
115 int machine__process_lost_samples_event(struct machine *machine, union perf_event *event,
118 union perf_event *event);
120 union perf_event *event);
122 union perf_event *event);
124 union perf_event *event,
[all …]
/Linux-v4.19/arch/powerpc/include/asm/
Dhw_breakpoint.h56 struct perf_event;
66 extern int hw_breakpoint_arch_parse(struct perf_event *bp,
71 int arch_install_hw_breakpoint(struct perf_event *bp);
72 void arch_uninstall_hw_breakpoint(struct perf_event *bp);
73 void arch_unregister_hw_breakpoint(struct perf_event *bp);
74 void hw_breakpoint_pmu_read(struct perf_event *bp);
78 extern void ptrace_triggered(struct perf_event *bp,
/Linux-v4.19/kernel/trace/
Dtrace_event_perf.c27 struct perf_event *p_event) in perf_trace_event_perm()
92 struct perf_event *p_event) in perf_trace_event_reg()
149 static void perf_trace_event_unreg(struct perf_event *p_event) in perf_trace_event_unreg()
178 static int perf_trace_event_open(struct perf_event *p_event) in perf_trace_event_open()
184 static void perf_trace_event_close(struct perf_event *p_event) in perf_trace_event_close()
191 struct perf_event *p_event) in perf_trace_event_init()
212 int perf_trace_init(struct perf_event *p_event) in perf_trace_init()
234 void perf_trace_destroy(struct perf_event *p_event) in perf_trace_destroy()
243 int perf_kprobe_init(struct perf_event *p_event, bool is_retprobe) in perf_kprobe_init()
283 void perf_kprobe_destroy(struct perf_event *p_event) in perf_kprobe_destroy()
[all …]
/Linux-v4.19/arch/sh/include/asm/
Dhw_breakpoint.h44 struct perf_event;
58 extern int hw_breakpoint_arch_parse(struct perf_event *bp,
64 int arch_install_hw_breakpoint(struct perf_event *bp);
65 void arch_uninstall_hw_breakpoint(struct perf_event *bp);
66 void hw_breakpoint_pmu_read(struct perf_event *bp);
68 extern void arch_fill_perf_breakpoint(struct perf_event *bp);
/Linux-v4.19/virt/kvm/arm/
Dpmu.c45 if (pmc->perf_event) in kvm_pmu_get_counter_value()
46 counter += perf_event_read_value(pmc->perf_event, &enabled, in kvm_pmu_get_counter_value()
77 if (pmc->perf_event) { in kvm_pmu_stop_counter()
82 perf_event_disable(pmc->perf_event); in kvm_pmu_stop_counter()
83 perf_event_release_kernel(pmc->perf_event); in kvm_pmu_stop_counter()
84 pmc->perf_event = NULL; in kvm_pmu_stop_counter()
118 if (pmc->perf_event) { in kvm_pmu_vcpu_destroy()
119 perf_event_disable(pmc->perf_event); in kvm_pmu_vcpu_destroy()
120 perf_event_release_kernel(pmc->perf_event); in kvm_pmu_vcpu_destroy()
121 pmc->perf_event = NULL; in kvm_pmu_vcpu_destroy()
[all …]
/Linux-v4.19/tools/perf/tests/
Dparse-no-sample-id-all.c14 static int process_event(struct perf_evlist **pevlist, union perf_event *event) in process_event()
40 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()
/Linux-v4.19/tools/perf/
Dbuiltin-inject.c49 union perf_event event[0];
65 union perf_event *event) in perf_event__repipe_synth()
74 union perf_event *event, in perf_event__repipe_oe_synth()
82 union perf_event *event __maybe_unused, in perf_event__drop_oe()
90 union perf_event *event, in perf_event__repipe_op2_synth()
98 union perf_event *event, in perf_event__repipe_attr()
137 union perf_event *event, in perf_event__repipe_auxtrace()
178 union perf_event *event __maybe_unused, in perf_event__repipe_auxtrace()
188 union perf_event *event, in perf_event__repipe()
196 union perf_event *event __maybe_unused, in perf_event__drop()
[all …]
/Linux-v4.19/arch/xtensa/include/asm/
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-v4.19/kernel/
Dwatchdog_hld.c25 static DEFINE_PER_CPU(struct perf_event *, watchdog_ev);
26 static DEFINE_PER_CPU(struct perf_event *, dead_event);
110 static void watchdog_overflow_callback(struct perf_event *event, in watchdog_overflow_callback()
169 struct perf_event *evt; in hardlockup_detector_event_create()
206 struct perf_event *event = this_cpu_read(watchdog_ev); in hardlockup_detector_perf_disable()
227 struct perf_event *event = per_cpu(dead_event, cpu); in hardlockup_detector_perf_cleanup()
252 struct perf_event *event = per_cpu(watchdog_ev, cpu); in hardlockup_detector_perf_stop()
274 struct perf_event *event = per_cpu(watchdog_ev, cpu); in hardlockup_detector_perf_restart()
/Linux-v4.19/arch/powerpc/kernel/
Dhw_breakpoint.c43 static DEFINE_PER_CPU(struct perf_event *, bp_per_reg);
64 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint()
67 struct perf_event **slot = this_cpu_ptr(&bp_per_reg); in arch_install_hw_breakpoint()
90 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint()
92 struct perf_event **slot = this_cpu_ptr(&bp_per_reg); in arch_uninstall_hw_breakpoint()
107 void arch_unregister_hw_breakpoint(struct perf_event *bp) in arch_unregister_hw_breakpoint()
142 int hw_breakpoint_arch_parse(struct perf_event *bp, in hw_breakpoint_arch_parse()
214 struct perf_event *bp; in hw_breakpoint_handler()
309 struct perf_event *bp = NULL; in single_step_dabr_instruction()
375 void hw_breakpoint_pmu_read(struct perf_event *bp) in hw_breakpoint_pmu_read()
/Linux-v4.19/arch/alpha/kernel/
Dperf_event.c41 struct perf_event *event[MAX_HWEVENTS];
86 int (*check_constraints)(struct perf_event **, unsigned long *, int);
152 static int ev67_check_constraints(struct perf_event **event, in ev67_check_constraints()
252 static int alpha_perf_event_set_period(struct perf_event *event, in alpha_perf_event_set_period()
307 static unsigned long alpha_perf_event_update(struct perf_event *event, in alpha_perf_event_update()
340 static int collect_events(struct perf_event *group, int max_count, in collect_events()
341 struct perf_event *event[], unsigned long *evtype, in collect_events()
344 struct perf_event *pe; in collect_events()
371 static int alpha_check_constraints(struct perf_event **events, in alpha_check_constraints()
400 struct perf_event *pe = cpuc->event[j]; in maybe_change_configuration()
[all …]
/Linux-v4.19/drivers/perf/
Dqcom_l3_pmu.c144 static inline u32 get_event_type(struct perf_event *event) in get_event_type()
149 static inline bool event_uses_long_counter(struct perf_event *event) in event_uses_long_counter()
154 static inline int event_num_counters(struct perf_event *event) in event_num_counters()
166 struct perf_event *events[L3_NUM_COUNTERS];
183 void (*start)(struct perf_event *event);
185 void (*stop)(struct perf_event *event, int flags);
187 void (*update)(struct perf_event *event);
201 static void qcom_l3_cache__64bit_counter_start(struct perf_event *event) in qcom_l3_cache__64bit_counter_start()
232 static void qcom_l3_cache__64bit_counter_stop(struct perf_event *event, in qcom_l3_cache__64bit_counter_stop()
247 static void qcom_l3_cache__64bit_counter_update(struct perf_event *event) in qcom_l3_cache__64bit_counter_update()
[all …]

12345678910