/linux-6.6.21/include/linux/ |
D | hw_breakpoint.h | 42 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 …]
|
D | perf_event.h | 273 struct perf_event; 350 int (*event_init) (struct perf_event *event); 356 void (*event_mapped) (struct perf_event *event, struct mm_struct *mm); /* optional */ 357 void (*event_unmapped) (struct perf_event *event, struct mm_struct *mm); /* optional */ 385 int (*add) (struct perf_event *event, int flags); 386 void (*del) (struct perf_event *event, int flags); 406 void (*start) (struct perf_event *event, int flags); 407 void (*stop) (struct perf_event *event, int flags); 415 void (*read) (struct perf_event *event); 450 int (*event_idx) (struct perf_event *event); /*optional */ [all …]
|
/linux-6.6.21/include/linux/perf/ |
D | riscv_pmu.h | 37 struct perf_event *events[RISCV_MAX_COUNTERS]; 51 u64 (*ctr_read)(struct perf_event *event); 52 int (*ctr_get_idx)(struct perf_event *event); 54 void (*ctr_clear_idx)(struct perf_event *event); 55 void (*ctr_start)(struct perf_event *event, u64 init_val); 56 void (*ctr_stop)(struct perf_event *event, unsigned long flag); 57 int (*event_map)(struct perf_event *event, u64 *config); 58 void (*event_init)(struct perf_event *event); 59 void (*event_mapped)(struct perf_event *event, struct mm_struct *mm); 60 void (*event_unmapped)(struct perf_event *event, struct mm_struct *mm); [all …]
|
D | arm_pmu.h | 54 struct perf_event *events[ARMPMU_MAX_HWEVENTS]; 91 void (*enable)(struct perf_event *event); 92 void (*disable)(struct perf_event *event); 94 struct perf_event *event); 96 struct perf_event *event); 99 u64 (*read_counter)(struct perf_event *event); 100 void (*write_counter)(struct perf_event *event, u64 val); 104 int (*map_event)(struct perf_event *event); 126 u64 armpmu_event_update(struct perf_event *event); 128 int armpmu_event_set_period(struct perf_event *event); [all …]
|
/linux-6.6.21/tools/perf/util/ |
D | event.h | 271 union perf_event *event, 275 union perf_event *event, 279 union perf_event *event, 283 union perf_event *event, 287 union perf_event *event, 291 union perf_event *event, 295 union perf_event *event, 299 union perf_event *event, 303 union perf_event *event, 307 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, 34 typedef int (*event_oe)(struct perf_tool *tool, union perf_event *event,
|
D | machine.h | 20 union perf_event; 121 int machine__process_comm_event(struct machine *machine, union perf_event *event, 123 int machine__process_exit_event(struct machine *machine, union perf_event *event, 125 int machine__process_fork_event(struct machine *machine, union perf_event *event, 127 int machine__process_lost_event(struct machine *machine, union perf_event *event, 129 int machine__process_lost_samples_event(struct machine *machine, union perf_event *event, 132 union perf_event *event); 134 union perf_event *event); 136 union perf_event *event); 138 union perf_event *event); [all …]
|
D | event.c | 174 size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp) in perf_event__fprintf_comm() 186 size_t perf_event__fprintf_namespaces(union perf_event *event, FILE *fp) in perf_event__fprintf_namespaces() 213 size_t perf_event__fprintf_cgroup(union perf_event *event, FILE *fp) in perf_event__fprintf_cgroup() 220 union perf_event *event, in perf_event__process_comm() 228 union perf_event *event, in perf_event__process_namespaces() 236 union perf_event *event, in perf_event__process_cgroup() 244 union perf_event *event, in perf_event__process_lost() 252 union perf_event *event, in perf_event__process_aux() 260 union perf_event *event, in perf_event__process_itrace_start() 268 union perf_event *event, in perf_event__process_aux_output_hw_id() [all …]
|
/linux-6.6.21/drivers/perf/hisilicon/ |
D | hisi_uncore_pmu.h | 41 static inline u32 hisi_get_##name(struct perf_event *event) \ 54 int (*check_filter)(struct perf_event *event); 56 int (*get_event_idx)(struct perf_event *); 67 void (*enable_filter)(struct perf_event *event); 68 void (*disable_filter)(struct perf_event *event); 79 struct perf_event *hw_events[HISI_MAX_COUNTERS]; 112 int hisi_uncore_pmu_get_event_idx(struct perf_event *event); 113 void hisi_uncore_pmu_read(struct perf_event *event); 114 int hisi_uncore_pmu_add(struct perf_event *event, int flags); 115 void hisi_uncore_pmu_del(struct perf_event *event, int flags); [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | fill_link_info.c | 51 if (!ASSERT_EQ(info.perf_event.type, type, "perf_type_match")) in verify_perf_link_info() 54 switch (info.perf_event.type) { in verify_perf_link_info() 57 ASSERT_EQ(info.perf_event.kprobe.offset, offset, "kprobe_offset"); in verify_perf_link_info() 61 ASSERT_EQ(info.perf_event.kprobe.addr, addr + entry_offset, in verify_perf_link_info() 64 if (!info.perf_event.kprobe.func_name) { in verify_perf_link_info() 65 ASSERT_EQ(info.perf_event.kprobe.name_len, 0, "name_len"); in verify_perf_link_info() 66 info.perf_event.kprobe.func_name = ptr_to_u64(&buf); in verify_perf_link_info() 67 info.perf_event.kprobe.name_len = sizeof(buf); in verify_perf_link_info() 71 err = strncmp(u64_to_ptr(info.perf_event.kprobe.func_name), KPROBE_FUNC, in verify_perf_link_info() 76 if (!info.perf_event.tracepoint.tp_name) { in verify_perf_link_info() [all …]
|
/linux-6.6.21/arch/x86/events/ |
D | perf_event.h | 89 static inline bool is_topdown_count(struct perf_event *event) in is_topdown_count() 94 static inline bool is_metric_event(struct perf_event *event) in is_metric_event() 103 static inline bool is_slots_event(struct perf_event *event) in is_slots_event() 108 static inline bool is_topdown_event(struct perf_event *event) in is_topdown_event() 116 struct perf_event *owners[X86_PMC_IDX_MAX]; 235 struct perf_event *events[X86_PMC_IDX_MAX]; /* in counter order */ 250 struct perf_event *event_list[X86_PMC_IDX_MAX]; /* in enabled order */ 748 void (*enable)(struct perf_event *); 749 void (*disable)(struct perf_event *); 750 void (*assign)(struct perf_event *event, int idx); [all …]
|
/linux-6.6.21/arch/x86/events/intel/ |
D | uncore.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_list[UNCORE_PMC_IDX_MAX]; 376 struct perf_event *event) in uncore_freerunning_counter() 463 struct perf_event *event) in uncore_freerunning_bits() [all …]
|
/linux-6.6.21/kernel/events/ |
D | hw_breakpoint.c | 108 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() 285 static inline int hw_breakpoint_weight(struct perf_event *bp) in hw_breakpoint_weight() 322 static int task_bp_pinned(int cpu, struct perf_event *bp, enum bp_type_idx type) in task_bp_pinned() 325 struct perf_event *iter; in task_bp_pinned() 358 static const struct cpumask *cpumask_of_bp(struct perf_event *bp) in cpumask_of_bp() 370 max_bp_pinned_slots(struct perf_event *bp, enum bp_type_idx type) in max_bp_pinned_slots() 409 toggle_bp_slot(struct perf_event *bp, bool enable, enum bp_type_idx type, int weight) in toggle_bp_slot() [all …]
|
D | core.c | 176 static bool is_kernel_event(struct perf_event *event) in is_kernel_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; in event_function() 263 static void event_function_call(struct perf_event *event, event_f func, void *data) in event_function_call() 316 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); 584 static inline u64 perf_event_clock(struct perf_event *event) in perf_event_clock() 612 __perf_effective_state(struct perf_event *event) in __perf_effective_state() 614 struct perf_event *leader = event->group_leader; in __perf_effective_state() [all …]
|
/linux-6.6.21/arch/xtensa/kernel/ |
D | hw_breakpoint.c | 19 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-6.6.21/arch/x86/include/asm/ |
D | hw_breakpoint.h | 50 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-6.6.21/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() 181 static int perf_trace_event_open(struct perf_event *p_event) in perf_trace_event_open() 187 static void perf_trace_event_close(struct perf_event *p_event) in perf_trace_event_close() 194 struct perf_event *p_event) in perf_trace_event_init() 215 int perf_trace_init(struct perf_event *p_event) in perf_trace_init() 237 void perf_trace_destroy(struct perf_event *p_event) in perf_trace_destroy() 247 int perf_kprobe_init(struct perf_event *p_event, bool is_retprobe) in perf_kprobe_init() 285 void perf_kprobe_destroy(struct perf_event *p_event) in perf_kprobe_destroy() [all …]
|
/linux-6.6.21/arch/sh/include/asm/ |
D | hw_breakpoint.h | 44 struct perf_event; 55 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); 65 extern void arch_fill_perf_breakpoint(struct perf_event *bp);
|
/linux-6.6.21/tools/bpf/bpftool/ |
D | link.c | 299 jsonw_bool_field(wtr, "retprobe", info->perf_event.type == BPF_PERF_EVENT_KRETPROBE); in show_perf_event_kprobe_json() 300 jsonw_uint_field(wtr, "addr", info->perf_event.kprobe.addr); in show_perf_event_kprobe_json() 302 u64_to_ptr(info->perf_event.kprobe.func_name)); in show_perf_event_kprobe_json() 303 jsonw_uint_field(wtr, "offset", info->perf_event.kprobe.offset); in show_perf_event_kprobe_json() 309 jsonw_bool_field(wtr, "retprobe", info->perf_event.type == BPF_PERF_EVENT_URETPROBE); in show_perf_event_uprobe_json() 311 u64_to_ptr(info->perf_event.uprobe.file_name)); in show_perf_event_uprobe_json() 312 jsonw_uint_field(wtr, "offset", info->perf_event.uprobe.offset); in show_perf_event_uprobe_json() 319 u64_to_ptr(info->perf_event.tracepoint.tp_name)); in show_perf_event_tracepoint_json() 380 __u64 config = info->perf_event.event.config; in show_perf_event_event_json() 381 __u32 type = info->perf_event.event.type; in show_perf_event_event_json() [all …]
|
/linux-6.6.21/arch/powerpc/kernel/ |
D | hw_breakpoint.c | 34 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-6.6.21/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 …]
|
/linux-6.6.21/kernel/ |
D | watchdog_perf.c | 23 static DEFINE_PER_CPU(struct perf_event *, watchdog_ev); 24 static DEFINE_PER_CPU(struct perf_event *, dead_event); 94 static void watchdog_overflow_callback(struct perf_event *event, in watchdog_overflow_callback() 111 struct perf_event *evt; in hardlockup_detector_event_create() 160 struct perf_event *event = this_cpu_read(watchdog_ev); in watchdog_hardlockup_disable() 183 struct perf_event *event = per_cpu(dead_event, cpu); in hardlockup_detector_perf_cleanup() 208 struct perf_event *event = per_cpu(watchdog_ev, cpu); in hardlockup_detector_perf_stop() 230 struct perf_event *event = per_cpu(watchdog_ev, cpu); in hardlockup_detector_perf_restart()
|
/linux-6.6.21/tools/perf/tests/ |
D | parse-no-sample-id-all.c | 13 static int process_event(struct evlist **pevlist, union perf_event *event) in process_event() 39 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-6.6.21/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);
|
/linux-6.6.21/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 …]
|