/kernel/linux/linux-5.10/include/linux/ |
D | hw_breakpoint.h | 32 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 void unregister_hw_breakpoint(struct perf_event *bp); [all …]
|
D | perf_event.h | 252 struct perf_event; 325 int (*event_init) (struct perf_event *event); 331 void (*event_mapped) (struct perf_event *event, struct mm_struct *mm); /* optional */ 332 void (*event_unmapped) (struct perf_event *event, struct mm_struct *mm); /* optional */ 360 int (*add) (struct perf_event *event, int flags); 361 void (*del) (struct perf_event *event, int flags); 381 void (*start) (struct perf_event *event, int flags); 382 void (*stop) (struct perf_event *event, int flags); 390 void (*read) (struct perf_event *event); 424 int (*event_idx) (struct perf_event *event); /*optional */ [all …]
|
D | trace_events.h | 308 struct perf_event *); 561 struct perf_event *p_event) \ 624 int perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog); 625 void perf_event_detach_bpf_prog(struct perf_event *event); 626 int perf_event_query_prog_array(struct perf_event *event, void __user *info); 631 int bpf_get_perf_event_info(const struct perf_event *event, u32 *prog_id, 641 perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog) in perf_event_attach_bpf_prog() 646 static inline void perf_event_detach_bpf_prog(struct perf_event *event) { } in perf_event_detach_bpf_prog() 649 perf_event_query_prog_array(struct perf_event *event, void __user *info) in perf_event_query_prog_array() 668 static inline int bpf_get_perf_event_info(const struct perf_event *event, in bpf_get_perf_event_info() [all …]
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | event.h | 299 union perf_event *event, 303 union perf_event *event, 307 union perf_event *event, 311 union perf_event *event, 315 union perf_event *event, 319 union perf_event *event, 323 union perf_event *event, 327 union perf_event *event, 331 union perf_event *event, 335 union perf_event *event, [all …]
|
D | tool.h | 10 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_session *session, union perf_event *event); 30 typedef s64 (*event_op3)(struct perf_session *session, union perf_event *event); 31 typedef int (*event_op4)(struct perf_session *session, union perf_event *event, u64 data); 33 typedef int (*event_oe)(struct perf_tool *tool, union perf_event *event,
|
D | machine.h | 20 union perf_event; 112 int machine__process_comm_event(struct machine *machine, union perf_event *event, 114 int machine__process_exit_event(struct machine *machine, union perf_event *event, 116 int machine__process_fork_event(struct machine *machine, union perf_event *event, 118 int machine__process_lost_event(struct machine *machine, union perf_event *event, 120 int machine__process_lost_samples_event(struct machine *machine, union perf_event *event, 123 union perf_event *event); 125 union perf_event *event); 127 union perf_event *event); 129 union perf_event *event, [all …]
|
D | event.c | 147 size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp) in perf_event__fprintf_comm() 159 size_t perf_event__fprintf_namespaces(union perf_event *event, FILE *fp) in perf_event__fprintf_namespaces() 186 size_t perf_event__fprintf_cgroup(union perf_event *event, FILE *fp) in perf_event__fprintf_cgroup() 193 union perf_event *event, in perf_event__process_comm() 201 union perf_event *event, in perf_event__process_namespaces() 209 union perf_event *event, in perf_event__process_cgroup() 217 union perf_event *event, in perf_event__process_lost() 225 union perf_event *event, in perf_event__process_aux() 233 union perf_event *event, in perf_event__process_itrace_start() 241 union perf_event *event, in perf_event__process_lost_samples() [all …]
|
D | session.c | 39 union perf_event *event, u64 file_offset) in perf_session__process_compressed_event() 99 union perf_event *event, 309 union perf_event *event in process_event_synth_tracing_data_stub() 317 union perf_event *event __maybe_unused, in process_event_synth_attr_stub() 326 union perf_event *event __maybe_unused, in process_event_synth_event_update_stub() 338 union perf_event *event __maybe_unused, in process_event_sample_stub() 348 union perf_event *event __maybe_unused, in process_event_stub() 357 union perf_event *event __maybe_unused, in process_finished_round_stub() 365 union perf_event *event, 384 union perf_event *event) in process_event_auxtrace_stub() [all …]
|
/kernel/linux/linux-5.10/kernel/events/ |
D | hw_breakpoint.c | 71 __weak int hw_breakpoint_weight(struct perf_event *bp) in hw_breakpoint_weight() 105 static int task_bp_pinned(int cpu, struct perf_event *bp, enum bp_type_idx type) in task_bp_pinned() 108 struct perf_event *iter; in task_bp_pinned() 121 static const struct cpumask *cpumask_of_bp(struct perf_event *bp) in cpumask_of_bp() 133 fetch_bp_busy_slots(struct bp_busy_slots *slots, struct perf_event *bp, in fetch_bp_busy_slots() 172 static void toggle_bp_task_slot(struct perf_event *bp, int cpu, in toggle_bp_task_slot() 191 toggle_bp_slot(struct perf_event *bp, bool enable, enum bp_type_idx type, in toggle_bp_slot() 216 __weak int arch_reserve_bp_slot(struct perf_event *bp) in arch_reserve_bp_slot() 221 __weak void arch_release_bp_slot(struct perf_event *bp) in arch_release_bp_slot() 228 __weak void arch_unregister_hw_breakpoint(struct perf_event *bp) in arch_unregister_hw_breakpoint() [all …]
|
D | core.c | 177 static bool is_kernel_event(struct perf_event *event) in is_kernel_event() 201 typedef void (*event_f)(struct perf_event *, struct perf_cpu_context *, 205 struct perf_event *event; 213 struct perf_event *event = efs->event; in event_function() 256 static void event_function_call(struct perf_event *event, event_f func, void *data) in event_function_call() 309 static void event_function_local(struct perf_event *event, event_f func, void *data) in event_function_local() 575 static u64 perf_event_time(struct perf_event *event); 589 static inline u64 perf_event_clock(struct perf_event *event) in perf_event_clock() 617 __perf_effective_state(struct perf_event *event) in __perf_effective_state() 619 struct perf_event *leader = event->group_leader; in __perf_effective_state() [all …]
|
/kernel/linux/linux-5.10/include/linux/perf/ |
D | arm_pmu.h | 49 struct perf_event *events[ARMPMU_MAX_HWEVENTS]; 86 void (*enable)(struct perf_event *event); 87 void (*disable)(struct perf_event *event); 89 struct perf_event *event); 91 struct perf_event *event); 94 u64 (*read_counter)(struct perf_event *event); 95 void (*write_counter)(struct perf_event *event, u64 val); 99 int (*map_event)(struct perf_event *event); 100 int (*filter_match)(struct perf_event *event); 122 u64 armpmu_event_update(struct perf_event *event); [all …]
|
/kernel/linux/linux-5.10/drivers/perf/hisilicon/ |
D | hisi_uncore_pmu.h | 41 int (*get_event_idx)(struct perf_event *); 53 struct perf_event *hw_events[HISI_MAX_COUNTERS]; 81 int hisi_uncore_pmu_get_event_idx(struct perf_event *event); 82 void hisi_uncore_pmu_read(struct perf_event *event); 83 int hisi_uncore_pmu_add(struct perf_event *event, int flags); 84 void hisi_uncore_pmu_del(struct perf_event *event, int flags); 85 void hisi_uncore_pmu_start(struct perf_event *event, int flags); 86 void hisi_uncore_pmu_stop(struct perf_event *event, int flags); 87 void hisi_uncore_pmu_set_event_period(struct perf_event *event); 88 void hisi_uncore_pmu_event_update(struct perf_event *event); [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | hw_breakpoint.c | 34 static DEFINE_PER_CPU(struct perf_event *, bp_per_reg[HBP_NUM_MAX]); 66 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint() 69 struct perf_event **slot; in arch_install_hw_breakpoint() 102 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint() 105 struct perf_event **slot; in arch_uninstall_hw_breakpoint() 122 static bool is_ptrace_bp(struct perf_event *bp) in is_ptrace_bp() 129 struct perf_event *bp; 136 static struct breakpoint *alloc_breakpoint(struct perf_event *bp) in alloc_breakpoint() 148 static bool bp_addr_range_overlap(struct perf_event *bp1, struct perf_event *bp2) in bp_addr_range_overlap() 160 static bool alternate_infra_bp(struct breakpoint *b, struct perf_event *bp) in alternate_infra_bp() [all …]
|
/kernel/linux/linux-5.10/arch/x86/events/intel/ |
D | uncore.h | 100 void (*disable_event)(struct intel_uncore_box *, struct perf_event *); 101 void (*enable_event)(struct intel_uncore_box *, struct perf_event *); 102 u64 (*read_counter)(struct intel_uncore_box *, struct perf_event *); 103 int (*hw_config)(struct intel_uncore_box *, struct perf_event *); 105 struct perf_event *); 106 void (*put_constraint)(struct intel_uncore_box *, struct perf_event *); 134 struct perf_event *events[UNCORE_PMC_IDX_MAX]; 135 struct perf_event *event_list[UNCORE_PMC_IDX_MAX]; 343 struct perf_event *event) in uncore_freerunning_counter() 430 struct perf_event *event) in uncore_freerunning_bits() [all …]
|
/kernel/linux/linux-5.10/arch/x86/events/ |
D | perf_event.h | 84 static inline bool is_topdown_count(struct perf_event *event) in is_topdown_count() 89 static inline bool is_metric_event(struct perf_event *event) in is_metric_event() 98 static inline bool is_slots_event(struct perf_event *event) in is_slots_event() 103 static inline bool is_topdown_event(struct perf_event *event) in is_topdown_event() 111 struct perf_event *owners[X86_PMC_IDX_MAX]; 228 struct perf_event *events[X86_PMC_IDX_MAX]; /* in counter order */ 243 struct perf_event *event_list[X86_PMC_IDX_MAX]; /* in enabled order */ 642 void (*enable)(struct perf_event *); 643 void (*disable)(struct perf_event *); 644 void (*add)(struct perf_event *); [all …]
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
D | hw_breakpoint.h | 53 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);
|
/kernel/linux/linux-5.10/arch/xtensa/kernel/ |
D | hw_breakpoint.c | 18 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 …]
|
/kernel/linux/linux-5.10/kernel/trace/ |
D | trace_event_perf.c | 28 struct perf_event *p_event) in perf_trace_event_perm() 97 struct perf_event *p_event) in perf_trace_event_reg() 154 static void perf_trace_event_unreg(struct perf_event *p_event) in perf_trace_event_unreg() 183 static int perf_trace_event_open(struct perf_event *p_event) in perf_trace_event_open() 189 static void perf_trace_event_close(struct perf_event *p_event) in perf_trace_event_close() 196 struct perf_event *p_event) in perf_trace_event_init() 217 int perf_trace_init(struct perf_event *p_event) in perf_trace_init() 239 void perf_trace_destroy(struct perf_event *p_event) in perf_trace_destroy() 248 int perf_kprobe_init(struct perf_event *p_event, bool is_retprobe) in perf_kprobe_init() 290 void perf_kprobe_destroy(struct perf_event *p_event) in perf_kprobe_destroy() [all …]
|
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
D | hw_breakpoint.h | 44 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);
|
/kernel/linux/linux-5.10/tools/perf/ |
D | builtin-inject.c | 58 union perf_event event[]; 77 union perf_event *event) in perf_event__repipe_synth() 86 union perf_event *event, in perf_event__repipe_oe_synth() 94 union perf_event *event __maybe_unused, in perf_event__drop_oe() 102 union perf_event *event) in perf_event__repipe_op2_synth() 108 union perf_event *event, in perf_event__repipe_op4_synth() 115 union perf_event *event, in perf_event__repipe_attr() 133 union perf_event *event, in perf_event__repipe_event_update() 161 union perf_event *event) in perf_event__repipe_auxtrace() 202 union perf_event *event __maybe_unused) in perf_event__repipe_auxtrace() [all …]
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
D | parse-no-sample-id-all.c | 12 static int process_event(struct evlist **pevlist, union perf_event *event) in process_event() 38 static int process_events(union perf_event **events, size_t count) in process_events() 94 union perf_event *events[] = { in test__parse_no_sample_id_all() 95 (union perf_event *)&event1, in test__parse_no_sample_id_all() 96 (union perf_event *)&event2, in test__parse_no_sample_id_all() 97 (union perf_event *)&event3, in test__parse_no_sample_id_all()
|
/kernel/linux/linux-5.10/arch/xtensa/include/asm/ |
D | hw_breakpoint.h | 34 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);
|
/kernel/linux/linux-5.10/kernel/ |
D | watchdog_hld.c | 25 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() 170 struct perf_event *evt; in hardlockup_detector_event_create() 207 struct perf_event *event = this_cpu_read(watchdog_ev); in hardlockup_detector_perf_disable() 228 struct perf_event *event = per_cpu(dead_event, cpu); in hardlockup_detector_perf_cleanup() 253 struct perf_event *event = per_cpu(watchdog_ev, cpu); in hardlockup_detector_perf_stop() 275 struct perf_event *event = per_cpu(watchdog_ev, cpu); in hardlockup_detector_perf_restart()
|
/kernel/linux/linux-5.10/arch/alpha/kernel/ |
D | perf_event.c | 41 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 …]
|
/kernel/linux/linux-5.10/drivers/perf/ |
D | qcom_l3_pmu.c | 136 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 …]
|