Home
last modified time | relevance | path

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

/linux-4.4.14/include/linux/
Dhw_breakpoint.h31 static inline unsigned long hw_breakpoint_addr(struct perf_event *bp) in hw_breakpoint_addr()
36 static inline int hw_breakpoint_type(struct perf_event *bp) in hw_breakpoint_type()
41 static inline unsigned long hw_breakpoint_len(struct perf_event *bp) in hw_breakpoint_len()
46 extern struct perf_event *
54 modify_user_hw_breakpoint(struct perf_event *bp, struct perf_event_attr *attr);
59 extern struct perf_event *
65 extern struct perf_event * __percpu *
70 extern int register_perf_hw_breakpoint(struct perf_event *bp);
71 extern int __register_perf_hw_breakpoint(struct perf_event *bp);
72 extern void unregister_hw_breakpoint(struct perf_event *bp);
[all …]
Dperf_event.h197 struct perf_event;
261 int (*event_init) (struct perf_event *event);
267 void (*event_mapped) (struct perf_event *event); /*optional*/
268 void (*event_unmapped) (struct perf_event *event); /*optional*/
296 int (*add) (struct perf_event *event, int flags);
297 void (*del) (struct perf_event *event, int flags);
317 void (*start) (struct perf_event *event, int flags);
318 void (*stop) (struct perf_event *event, int flags);
326 void (*read) (struct perf_event *event);
360 int (*event_idx) (struct perf_event *event); /*optional */
[all …]
Dtrace_events.h306 struct perf_event *);
399 struct perf_event *p_event) \
606 struct perf_event;
610 extern int perf_trace_init(struct perf_event *event);
611 extern void perf_trace_destroy(struct perf_event *event);
612 extern int perf_trace_add(struct perf_event *event, int flags);
613 extern void perf_trace_del(struct perf_event *event, int flags);
614 extern int ftrace_profile_set_filter(struct perf_event *event, int event_id,
616 extern void ftrace_profile_free_filter(struct perf_event *event);
Dcgroup_subsys.h50 SUBSYS(perf_event)
/linux-4.4.14/kernel/events/
Dhw_breakpoint.c83 __weak int hw_breakpoint_weight(struct perf_event *bp) in hw_breakpoint_weight()
88 static inline enum bp_type_idx find_slot_idx(struct perf_event *bp) in find_slot_idx()
117 static int task_bp_pinned(int cpu, struct perf_event *bp, enum bp_type_idx type) in task_bp_pinned()
120 struct perf_event *iter; in task_bp_pinned()
133 static const struct cpumask *cpumask_of_bp(struct perf_event *bp) in cpumask_of_bp()
145 fetch_bp_busy_slots(struct bp_busy_slots *slots, struct perf_event *bp, in fetch_bp_busy_slots()
184 static void toggle_bp_task_slot(struct perf_event *bp, int cpu, in toggle_bp_task_slot()
203 toggle_bp_slot(struct perf_event *bp, bool enable, enum bp_type_idx type, in toggle_bp_slot()
231 __weak void arch_unregister_hw_breakpoint(struct perf_event *bp) in arch_unregister_hw_breakpoint()
280 static int __reserve_bp_slot(struct perf_event *bp) in __reserve_bp_slot()
[all …]
Dcore.c131 static bool is_kernel_event(struct perf_event *event) in is_kernel_event()
321 static u64 perf_event_time(struct perf_event *event);
335 static inline u64 perf_event_clock(struct perf_event *event) in perf_event_clock()
365 perf_cgroup_match(struct perf_event *event) in perf_cgroup_match()
388 static inline void perf_detach_cgroup(struct perf_event *event) in perf_detach_cgroup()
394 static inline int is_cgroup_event(struct perf_event *event) in is_cgroup_event()
399 static inline u64 perf_cgroup_event_time(struct perf_event *event) in perf_cgroup_event_time()
427 static inline void update_cgrp_time_from_event(struct perf_event *event) in update_cgrp_time_from_event()
598 static inline int perf_cgroup_connect(int fd, struct perf_event *event, in perf_cgroup_connect()
600 struct perf_event *group_leader) in perf_cgroup_connect()
[all …]
Dinternal.h70 extern void perf_event_wakeup(struct perf_event *event);
71 extern int rb_alloc_aux(struct ring_buffer *rb, struct perf_event *event,
74 extern struct ring_buffer *ring_buffer_get(struct perf_event *event);
82 void perf_event_aux_event(struct perf_event *event, unsigned long head,
184 perf_callchain(struct perf_event *event, struct pt_regs *regs);
Dring_buffer.c106 struct perf_event *event, unsigned int size) in perf_output_begin()
269 struct perf_event *event) in perf_aux_output_begin()
271 struct perf_event *output_event = event; in perf_aux_output_begin()
470 int rb_alloc_aux(struct ring_buffer *rb, struct perf_event *event, in rb_alloc_aux()
Dcallchain.c160 perf_callchain(struct perf_event *event, struct pt_regs *regs) in perf_callchain()
/linux-4.4.14/arch/x86/include/asm/
Dhw_breakpoint.h51 struct perf_event;
54 extern int arch_check_bp_in_kernelspace(struct perf_event *bp);
55 extern int arch_validate_hwbkpt_settings(struct perf_event *bp);
60 int arch_install_hw_breakpoint(struct perf_event *bp);
61 void arch_uninstall_hw_breakpoint(struct perf_event *bp);
62 void hw_breakpoint_pmu_read(struct perf_event *bp);
63 void hw_breakpoint_pmu_unthrottle(struct perf_event *bp);
66 arch_fill_perf_breakpoint(struct perf_event *bp);
Dprocessor.h370 struct perf_event;
394 struct perf_event *ptrace_bps[HBP_NUM];
Dkvm_host.h333 struct perf_event *perf_event; member
/linux-4.4.14/include/linux/perf/
Darm_pmu.h59 struct perf_event *events[ARMPMU_MAX_HWEVENTS];
87 void (*enable)(struct perf_event *event);
88 void (*disable)(struct perf_event *event);
90 struct perf_event *event);
92 struct perf_event *event);
95 u32 (*read_counter)(struct perf_event *event);
96 void (*write_counter)(struct perf_event *event, u32 val);
102 int (*map_event)(struct perf_event *event);
116 u64 armpmu_event_update(struct perf_event *event);
118 int armpmu_event_set_period(struct perf_event *event);
[all …]
/linux-4.4.14/tools/perf/util/
Devent.h359 union perf_event { union
389 union perf_event *event,
411 union perf_event *event,
415 union perf_event *event,
419 union perf_event *event,
423 union perf_event *event,
427 union perf_event *event,
431 union perf_event *event,
435 union perf_event *event,
439 union perf_event *event,
[all …]
Dtool.h9 union perf_event;
17 typedef int (*event_sample)(struct perf_tool *tool, union perf_event *event,
21 typedef int (*event_op)(struct perf_tool *tool, union perf_event *event,
25 union perf_event *event,
28 typedef int (*event_op2)(struct perf_tool *tool, union perf_event *event,
31 typedef int (*event_oe)(struct perf_tool *tool, union perf_event *event,
34 typedef s64 (*event_op3)(struct perf_tool *tool, union perf_event *event,
Dmachine.h16 union perf_event;
83 int machine__process_comm_event(struct machine *machine, union perf_event *event,
85 int machine__process_exit_event(struct machine *machine, union perf_event *event,
87 int machine__process_fork_event(struct machine *machine, union perf_event *event,
89 int machine__process_lost_event(struct machine *machine, union perf_event *event,
91 int machine__process_lost_samples_event(struct machine *machine, union perf_event *event,
94 union perf_event *event);
96 union perf_event *event);
98 union perf_event *event);
99 int machine__process_mmap_event(struct machine *machine, union perf_event *event,
[all …]
Devent.c134 static int perf_event__prepare_comm(union perf_event *event, pid_t pid, in perf_event__prepare_comm()
172 union perf_event *event, pid_t pid, in perf_event__synthesize_comm()
188 union perf_event *event, in perf_event__synthesize_fork()
220 union perf_event *event, in perf_event__synthesize_mmap_events()
360 union perf_event *event = zalloc((sizeof(event->mmap) + in perf_event__synthesize_modules()
407 static int __event__synthesize_thread(union perf_event *comm_event, in __event__synthesize_thread()
408 union perf_event *mmap_event, in __event__synthesize_thread()
409 union perf_event *fork_event, in __event__synthesize_thread()
491 union perf_event *comm_event, *mmap_event, *fork_event; in perf_event__synthesize_thread_map()
562 union perf_event *comm_event, *mmap_event, *fork_event; in perf_event__synthesize_threads()
[all …]
Dauxtrace.h31 union perf_event;
126 union perf_event *event,
130 union perf_event *event,
378 union perf_event *event, void *data1,
392 union perf_event *event, off_t data_offset,
445 int auxtrace_index__auxtrace_event(struct list_head *head, union perf_event *event,
461 union perf_event *event,
464 union perf_event *event,
467 union perf_event *event,
473 size_t perf_event__fprintf_auxtrace_error(union perf_event *event, FILE *fp);
[all …]
Dsession.c22 union perf_event *event,
190 union perf_event *event in process_event_synth_tracing_data_stub()
200 union perf_event *event __maybe_unused, in process_event_synth_attr_stub()
209 union perf_event *event __maybe_unused, in process_event_sample_stub()
219 union perf_event *event __maybe_unused, in process_event_stub()
228 union perf_event *event __maybe_unused, in process_build_id_stub()
236 union perf_event *event __maybe_unused, in process_finished_round_stub()
244 union perf_event *event,
248 union perf_event *event __maybe_unused, in process_id_index_stub()
257 union perf_event *event __maybe_unused, in process_event_auxtrace_info_stub()
[all …]
Dordered-events.c60 static union perf_event *__dup_event(struct ordered_events *oe, in __dup_event()
61 union perf_event *event) in __dup_event()
63 union perf_event *new_event = NULL; in __dup_event()
74 static union perf_event *dup_event(struct ordered_events *oe, in dup_event()
75 union perf_event *event) in dup_event()
80 static void free_dup_event(struct ordered_events *oe, union perf_event *event) in free_dup_event()
90 union perf_event *event) in alloc_event()
94 union perf_event *new_event; in alloc_event()
135 union perf_event *event) in ordered_events__new_event()
155 int ordered_events__queue(struct ordered_events *oe, union perf_event *event, in ordered_events__queue()
Dsession.h55 union perf_event **event_ptr,
60 int perf_session__queue_event(struct perf_session *s, union perf_event *event,
129 union perf_event *event,
133 union perf_event *event,
Dintel-bts.h35 union perf_event;
40 int intel_bts_process_auxtrace_info(union perf_event *event,
Dintel-pt.h44 union perf_event;
51 int intel_pt_process_auxtrace_info(union perf_event *event,
Dheader.h108 int perf_event__process_attr(struct perf_tool *tool, union perf_event *event,
115 union perf_event *event,
123 union perf_event *event,
Dordered-events.h11 union perf_event *event;
46 int ordered_events__queue(struct ordered_events *oe, union perf_event *event,
Dtrace-event.h9 union perf_event;
74 void (*process_event) (union perf_event *event,
Ddb-export.h34 union perf_event *event;
97 int db_export__sample(struct db_export *dbe, union perf_event *event,
Dauxtrace.c316 union perf_event *event, off_t data_offset, in auxtrace_queues__add_event()
354 union perf_event *event; in auxtrace_queues__add_indexed_event()
620 union perf_event *event, off_t file_offset) in auxtrace_index__auxtrace_event()
850 union perf_event *ev; in perf_event__synthesize_auxtrace_info()
881 union perf_event *event, in perf_event__process_auxtrace_info()
901 union perf_event *event, in perf_event__process_auxtrace()
1104 size_t perf_event__fprintf_auxtrace_error(union perf_event *event, FILE *fp) in perf_event__fprintf_auxtrace_error()
1117 union perf_event *event) in perf_session__auxtrace_error_inc()
1139 union perf_event *event, in perf_event__process_auxtrace_error()
1157 union perf_event ev; in __auxtrace_mmap__read()
Dintel-bts.c138 union perf_event event; in intel_bts_lost()
275 union perf_event event; in intel_bts_synth_branch_sample()
359 union perf_event event; in intel_bts_synth_error()
596 union perf_event *event, in intel_bts_process_event()
640 union perf_event *event, in intel_bts_process_auxtrace_event()
741 union perf_event *event, in intel_bts_event_synth()
856 int intel_bts_process_auxtrace_info(union perf_event *event, in intel_bts_process_auxtrace_info()
Dbuild-id.h20 int build_id__mark_dso_hit(struct perf_tool *tool, union perf_event *event,
Dmachine.c464 int machine__process_comm_event(struct machine *machine, union perf_event *event, in machine__process_comm_event()
491 union perf_event *event, struct perf_sample *sample __maybe_unused) in machine__process_lost_event()
499 union perf_event *event, struct perf_sample *sample) in machine__process_lost_samples_event()
540 union perf_event *event) in machine__process_aux_event()
548 union perf_event *event) in machine__process_itrace_start_event()
556 union perf_event *event) in machine__process_switch_event()
1118 union perf_event *event) in machine__set_kernel_mmap_len()
1148 union perf_event *event) in machine__process_kernel_mmap_event()
1258 union perf_event *event, in machine__process_mmap2_event()
1312 int machine__process_mmap_event(struct machine *machine, union perf_event *event, in machine__process_mmap_event()
[all …]
Dtrace-event-scripting.c43 static void process_event_unsupported(union perf_event *event __maybe_unused, in process_event_unsupported()
Ddebug.h44 void trace_event(union perf_event *event);
Devlist.h113 union perf_event *perf_evlist__mmap_read(struct perf_evlist *evlist, int idx);
177 int perf_evlist__parse_sample(struct perf_evlist *evlist, union perf_event *event,
Dintel-pt.c123 union perf_event *event_buf;
953 static int intel_pt_inject_event(union perf_event *event, in intel_pt_inject_event()
965 union perf_event *event = ptq->event_buf; in intel_pt_synth_branch_sample()
1028 union perf_event *event = ptq->event_buf; in intel_pt_synth_instruction_sample()
1085 union perf_event *event = ptq->event_buf; in intel_pt_synth_transaction_sample()
1139 union perf_event event; in intel_pt_synth_error()
1579 static int intel_pt_context_switch(struct intel_pt *pt, union perf_event *event, in intel_pt_context_switch()
1621 union perf_event *event, in intel_pt_process_itrace_start()
1638 union perf_event *event, in intel_pt_process_event()
1752 union perf_event *event, in intel_pt_process_auxtrace_event()
[all …]
Devlist.c659 union perf_event *event, u64 *id) in perf_evlist__event2id()
680 union perf_event *event) in perf_evlist__event2evsel()
712 union perf_event *perf_evlist__mmap_read(struct perf_evlist *evlist, int idx) in perf_evlist__mmap_read()
718 union perf_event *event = NULL; in perf_evlist__mmap_read()
750 event = (union perf_event *)&data[old & md->mask]; in perf_evlist__mmap_read()
770 event = (union perf_event *) md->event_copy; in perf_evlist__mmap_read()
1634 int perf_evlist__parse_sample(struct perf_evlist *evlist, union perf_event *event, in perf_evlist__parse_sample()
Ddebug.c113 void trace_event(union perf_event *event) in trace_event()
Dbuild-id.c25 union perf_event *event, in build_id__mark_dso_hit()
51 union perf_event *event, in perf_event__exit_del_thread()
Dpython.c51 union perf_event event;
391 static PyObject *pyrf_event__new(union perf_event *event) in pyrf_event__new()
853 union perf_event *event; in pyrf_evlist__read_on_cpu()
Dheader.c2659 union perf_event *ev; in perf_event__synthesize_attr()
2709 union perf_event *event, in perf_event__process_attr()
2752 union perf_event ev; in perf_event__synthesize_tracing_data()
2795 union perf_event *event, in perf_event__process_tracing_data()
2839 union perf_event ev; in perf_event__synthesize_build_id()
2863 union perf_event *event, in perf_event__process_build_id()
Devsel.h307 int perf_evsel__parse_sample(struct perf_evsel *evsel, union perf_event *event,
Ddb-export.c288 int db_export__sample(struct db_export *dbe, union perf_event *event, in db_export__sample()
Devsel.c1509 const union perf_event *event, in perf_evsel__parse_id_sample()
1584 int perf_evsel__parse_sample(struct perf_evsel *evsel, union perf_event *event, in perf_evsel__parse_sample()
1956 int perf_event__synthesize_sample(union perf_event *event, u64 type, in perf_event__synthesize_sample()
Ddata-convert-bt.c556 union perf_event *_event __maybe_unused, in process_sample_event()
/linux-4.4.14/arch/sh/include/asm/
Dhw_breakpoint.h43 struct perf_event;
56 extern int arch_check_bp_in_kernelspace(struct perf_event *bp);
57 extern int arch_validate_hwbkpt_settings(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);
Dptrace.h96 struct perf_event;
99 extern void ptrace_triggered(struct perf_event *bp,
Dprocessor_32.h105 struct perf_event *ptrace_bps[HBP_NUM];
/linux-4.4.14/arch/x86/kernel/cpu/
Dperf_event_intel_uncore.h66 void (*disable_event)(struct intel_uncore_box *, struct perf_event *);
67 void (*enable_event)(struct intel_uncore_box *, struct perf_event *);
68 u64 (*read_counter)(struct intel_uncore_box *, struct perf_event *);
69 int (*hw_config)(struct intel_uncore_box *, struct perf_event *);
71 struct perf_event *);
72 void (*put_constraint)(struct intel_uncore_box *, struct perf_event *);
98 struct perf_event *events[UNCORE_PMC_IDX_MAX];
99 struct perf_event *event_list[UNCORE_PMC_IDX_MAX];
283 struct perf_event *event) in uncore_disable_event()
289 struct perf_event *event) in uncore_enable_event()
[all …]
Dperf_event.h86 struct perf_event *owners[X86_PMC_IDX_MAX];
181 struct perf_event *events[X86_PMC_IDX_MAX]; /* in counter order */
194 struct perf_event *event_list[X86_PMC_IDX_MAX]; /* in enabled order */
515 void (*enable)(struct perf_event *);
516 void (*disable)(struct perf_event *);
517 int (*hw_config)(struct perf_event *event);
539 struct perf_event *event);
542 struct perf_event *event);
554 unsigned (*limit_period)(struct perf_event *event, unsigned l);
597 void (*pebs_aliases)(struct perf_event *event);
[all …]
Dperf_event_intel_cqm.c266 static bool __match_event(struct perf_event *a, struct perf_event *b) in __match_event()
298 static inline struct perf_cgroup *event_to_cgroup(struct perf_event *event) in event_to_cgroup()
321 static bool __conflict_event(struct perf_event *a, struct perf_event *b) in __conflict_event()
403 static u32 intel_cqm_xchg_rmid(struct perf_event *group, u32 rmid) in intel_cqm_xchg_rmid()
405 struct perf_event *event; in intel_cqm_xchg_rmid()
474 struct perf_event *leader, *event; in intel_cqm_sched_in_event()
478 leader = list_first_entry(&cache_groups, struct perf_event, in intel_cqm_sched_in_event()
616 static void __intel_cqm_pick_and_rotate(struct perf_event *next) in __intel_cqm_pick_and_rotate()
618 struct perf_event *rotor; in __intel_cqm_pick_and_rotate()
623 rotor = list_first_entry(&cache_groups, struct perf_event, in __intel_cqm_pick_and_rotate()
[all …]
Dperf_event_msr.c111 static int msr_event_init(struct perf_event *event) in msr_event_init()
141 static inline u64 msr_read_counter(struct perf_event *event) in msr_read_counter()
152 static void msr_event_update(struct perf_event *event) in msr_event_update()
172 static void msr_event_start(struct perf_event *event, int flags) in msr_event_start()
180 static void msr_event_stop(struct perf_event *event, int flags) in msr_event_stop()
185 static void msr_event_del(struct perf_event *event, int flags) in msr_event_del()
190 static int msr_event_add(struct perf_event *event, int flags) in msr_event_add()
Dperf_event_intel_uncore_snb.c74 static void snb_uncore_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_msr_enable_event()
84 static void snb_uncore_msr_disable_event(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_msr_disable_event()
239 static void snb_uncore_imc_enable_event(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_imc_enable_event()
242 static void snb_uncore_imc_disable_event(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_imc_disable_event()
245 static u64 snb_uncore_imc_read_counter(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_imc_read_counter()
257 static int snb_uncore_imc_event_init(struct perf_event *event) in snb_uncore_imc_event_init()
334 static int snb_uncore_imc_hw_config(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_imc_hw_config()
339 static void snb_uncore_imc_event_start(struct perf_event *event, int flags) in snb_uncore_imc_event_start()
359 static void snb_uncore_imc_event_stop(struct perf_event *event, int flags) in snb_uncore_imc_event_stop()
386 static int snb_uncore_imc_event_add(struct perf_event *event, int flags) in snb_uncore_imc_event_add()
[all …]
Dperf_event_amd_uncore.c41 struct perf_event *events[MAX_COUNTERS];
54 static bool is_nb_event(struct perf_event *event) in is_nb_event()
59 static bool is_l2_event(struct perf_event *event) in is_l2_event()
64 static struct amd_uncore *event_to_amd_uncore(struct perf_event *event) in event_to_amd_uncore()
74 static void amd_uncore_read(struct perf_event *event) in amd_uncore_read()
93 static void amd_uncore_start(struct perf_event *event, int flags) in amd_uncore_start()
105 static void amd_uncore_stop(struct perf_event *event, int flags) in amd_uncore_stop()
118 static int amd_uncore_add(struct perf_event *event, int flags) in amd_uncore_add()
159 static void amd_uncore_del(struct perf_event *event, int flags) in amd_uncore_del()
175 static int amd_uncore_event_init(struct perf_event *event) in amd_uncore_event_init()
Dperf_event.c64 u64 x86_perf_event_update(struct perf_event *event) in x86_perf_event_update()
110 static int x86_pmu_extra_regs(u64 config, struct perf_event *event) in x86_pmu_extra_regs()
272 static void hw_perf_event_destroy(struct perf_event *event) in hw_perf_event_destroy()
278 void hw_perf_lbr_event_destroy(struct perf_event *event) in hw_perf_lbr_event_destroy()
292 set_ext_hw_attr(struct hw_perf_event *hwc, struct perf_event *event) in set_ext_hw_attr()
386 int x86_setup_perfctr(struct perf_event *event) in x86_setup_perfctr()
449 static inline int precise_br_compat(struct perf_event *event) in precise_br_compat()
473 int x86_pmu_hw_config(struct perf_event *event) in x86_pmu_hw_config()
553 static int __x86_pmu_event_init(struct perf_event *event) in __x86_pmu_event_init()
643 static inline int is_x86_event(struct perf_event *event) in is_x86_event()
[all …]
Dperf_event_intel_uncore.c85 struct intel_uncore_pmu *uncore_event_to_pmu(struct perf_event *event) in uncore_event_to_pmu()
115 struct intel_uncore_box *uncore_event_to_box(struct perf_event *event) in uncore_event_to_box()
124 u64 uncore_msr_read_counter(struct intel_uncore_box *box, struct perf_event *event) in uncore_msr_read_counter()
137 uncore_get_constraint(struct intel_uncore_box *box, struct perf_event *event) in uncore_get_constraint()
174 void uncore_put_constraint(struct intel_uncore_box *box, struct perf_event *event) in uncore_put_constraint()
210 static void uncore_assign_hw_event(struct intel_uncore_box *box, struct perf_event *event, int idx) in uncore_assign_hw_event()
227 void uncore_perf_event_update(struct intel_uncore_box *box, struct perf_event *event) in uncore_perf_event_update()
258 struct perf_event *event; in uncore_pmu_hrtimer()
336 static int uncore_pmu_event_init(struct perf_event *event);
338 static bool is_uncore_event(struct perf_event *event) in is_uncore_event()
[all …]
Dperf_event_intel_bts.c216 static void __bts_event_start(struct perf_event *event) in __bts_event_start()
246 static void bts_event_start(struct perf_event *event, int flags) in bts_event_start()
256 static void __bts_event_stop(struct perf_event *event) in __bts_event_stop()
270 static void bts_event_stop(struct perf_event *event, int flags) in bts_event_stop()
380 struct perf_event *event = bts->handle.event; in intel_bts_interrupt()
418 static void bts_event_del(struct perf_event *event, int mode) in bts_event_del()
441 static int bts_event_add(struct perf_event *event, int mode) in bts_event_add()
482 static void bts_event_destroy(struct perf_event *event) in bts_event_destroy()
488 static int bts_event_init(struct perf_event *event) in bts_event_init()
522 static void bts_event_read(struct perf_event *event) in bts_event_read()
Dperf_event_amd_iommu.c197 static int perf_iommu_event_init(struct perf_event *event) in perf_iommu_event_init()
250 static void perf_iommu_enable_event(struct perf_event *ev) in perf_iommu_enable_event()
283 static void perf_iommu_disable_event(struct perf_event *event) in perf_iommu_disable_event()
292 static void perf_iommu_start(struct perf_event *event, int flags) in perf_iommu_start()
315 static void perf_iommu_read(struct perf_event *event) in perf_iommu_read()
342 static void perf_iommu_stop(struct perf_event *event, int flags) in perf_iommu_stop()
364 static int perf_iommu_add(struct perf_event *event, int flags) in perf_iommu_add()
386 static void perf_iommu_del(struct perf_event *event, int flags) in perf_iommu_del()
Dperf_event_amd.c176 static int amd_core_hw_config(struct perf_event *event) in amd_core_hw_config()
214 static int amd_pmu_hw_config(struct perf_event *event) in amd_pmu_hw_config()
236 struct perf_event *event) in __amd_put_nb_event_constraints()
292 __amd_get_nb_event_constraints(struct cpu_hw_events *cpuc, struct perf_event *event, in __amd_get_nb_event_constraints()
297 struct perf_event *old; in __amd_get_nb_event_constraints()
434 struct perf_event *event) in amd_get_event_constraints()
446 struct perf_event *event) in amd_put_event_constraints()
543 struct perf_event *event) in amd_get_event_constraints_f15h()
Dperf_event_intel_rapl.c137 static inline u64 rapl_read_counter(struct perf_event *event) in rapl_read_counter()
168 static u64 rapl_event_update(struct perf_event *event) in rapl_event_update()
217 struct perf_event *event; in rapl_hrtimer_handle()
245 struct perf_event *event) in __rapl_pmu_event_start()
261 static void rapl_pmu_event_start(struct perf_event *event, int mode) in rapl_pmu_event_start()
271 static void rapl_pmu_event_stop(struct perf_event *event, int mode) in rapl_pmu_event_stop()
305 static int rapl_pmu_event_add(struct perf_event *event, int mode) in rapl_pmu_event_add()
323 static void rapl_pmu_event_del(struct perf_event *event, int flags) in rapl_pmu_event_del()
328 static int rapl_pmu_event_init(struct perf_event *event) in rapl_pmu_event_init()
386 static void rapl_pmu_event_read(struct perf_event *event) in rapl_pmu_event_read()
Dperf_event_amd_ibs.c40 struct perf_event *event;
116 perf_event_try_update(struct perf_event *event, u64 new_raw_count, int width) in perf_event_try_update()
181 static int perf_ibs_precise_event(struct perf_event *event, u64 *config) in perf_ibs_precise_event()
227 static int perf_ibs_init(struct perf_event *event) in perf_ibs_init()
321 perf_ibs_event_update(struct perf_ibs *perf_ibs, struct perf_event *event, in perf_ibs_event_update()
365 static void perf_ibs_start(struct perf_event *event, int flags) in perf_ibs_start()
385 static void perf_ibs_stop(struct perf_event *event, int flags) in perf_ibs_stop()
420 static int perf_ibs_add(struct perf_event *event, int flags) in perf_ibs_add()
438 static void perf_ibs_del(struct perf_event *event, int flags) in perf_ibs_del()
453 static void perf_ibs_read(struct perf_event *event) { } in perf_ibs_read()
[all …]
Dperf_event_intel_uncore_snbep.c287 static void snbep_uncore_pci_enable_event(struct intel_uncore_box *box, struct perf_event *event) in snbep_uncore_pci_enable_event()
295 static void snbep_uncore_pci_disable_event(struct intel_uncore_box *box, struct perf_event *event) in snbep_uncore_pci_disable_event()
303 static u64 snbep_uncore_pci_read_counter(struct intel_uncore_box *box, struct perf_event *event) in snbep_uncore_pci_read_counter()
348 static void snbep_uncore_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) in snbep_uncore_msr_enable_event()
360 struct perf_event *event) in snbep_uncore_msr_disable_event()
640 static void snbep_cbox_put_constraint(struct intel_uncore_box *box, struct perf_event *event) in snbep_cbox_put_constraint()
657 __snbep_cbox_get_constraint(struct intel_uncore_box *box, struct perf_event *event, in __snbep_cbox_get_constraint()
720 snbep_cbox_get_constraint(struct intel_uncore_box *box, struct perf_event *event) in snbep_cbox_get_constraint()
725 static int snbep_cbox_hw_config(struct intel_uncore_box *box, struct perf_event *event) in snbep_cbox_hw_config()
769 static u64 snbep_pcu_alter_er(struct perf_event *event, int new_idx, bool modify) in snbep_pcu_alter_er()
[all …]
Dperf_event_intel_cstate.c385 static int cstate_pmu_event_init(struct perf_event *event) in cstate_pmu_event_init()
425 static inline u64 cstate_pmu_read_counter(struct perf_event *event) in cstate_pmu_read_counter()
433 static void cstate_pmu_event_update(struct perf_event *event) in cstate_pmu_event_update()
449 static void cstate_pmu_event_start(struct perf_event *event, int mode) in cstate_pmu_event_start()
454 static void cstate_pmu_event_stop(struct perf_event *event, int mode) in cstate_pmu_event_stop()
459 static void cstate_pmu_event_del(struct perf_event *event, int mode) in cstate_pmu_event_del()
464 static int cstate_pmu_event_add(struct perf_event *event, int mode) in cstate_pmu_event_add()
Dperf_event_intel_uncore_nhmex.c234 static void nhmex_uncore_msr_disable_event(struct intel_uncore_box *box, struct perf_event *event) in nhmex_uncore_msr_disable_event()
239 static void nhmex_uncore_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) in nhmex_uncore_msr_enable_event()
343 static int nhmex_bbox_hw_config(struct intel_uncore_box *box, struct perf_event *event) in nhmex_bbox_hw_config()
370 static void nhmex_bbox_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) in nhmex_bbox_msr_enable_event()
434 static int nhmex_sbox_hw_config(struct intel_uncore_box *box, struct perf_event *event) in nhmex_sbox_hw_config()
455 static void nhmex_sbox_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) in nhmex_sbox_msr_enable_event()
622 static u64 nhmex_mbox_alter_er(struct perf_event *event, int new_idx, bool modify) in nhmex_mbox_alter_er()
662 nhmex_mbox_get_constraint(struct intel_uncore_box *box, struct perf_event *event) in nhmex_mbox_get_constraint()
731 static void nhmex_mbox_put_constraint(struct intel_uncore_box *box, struct perf_event *event) in nhmex_mbox_put_constraint()
758 static int nhmex_mbox_hw_config(struct intel_uncore_box *box, struct perf_event *event) in nhmex_mbox_hw_config()
[all …]
Dperf_event_intel_pt.c198 static bool pt_event_valid(struct perf_event *event) in pt_event_valid()
253 static void pt_config(struct perf_event *event) in pt_config()
936 struct perf_event *event = pt->handle.event; in intel_pt_interrupt()
991 static void pt_event_start(struct perf_event *event, int mode) in pt_event_start()
1009 static void pt_event_stop(struct perf_event *event, int mode) in pt_event_stop()
1042 static void pt_event_del(struct perf_event *event, int mode) in pt_event_del()
1061 static int pt_event_add(struct perf_event *event, int mode) in pt_event_add()
1102 static void pt_event_read(struct perf_event *event) in pt_event_read()
1106 static void pt_event_destroy(struct perf_event *event) in pt_event_destroy()
1111 static int pt_event_init(struct perf_event *event) in pt_event_init()
Dperf_event_intel.c1501 struct perf_event *event = in __intel_pmu_enable_all()
1540 struct perf_event *event; in intel_pmu_nhm_workaround()
1624 static inline bool event_is_checkpointed(struct perf_event *event) in event_is_checkpointed()
1629 static void intel_pmu_disable_event(struct perf_event *event) in intel_pmu_disable_event()
1693 static void intel_pmu_enable_event(struct perf_event *event) in intel_pmu_enable_event()
1735 int intel_pmu_save_and_restart(struct perf_event *event) in intel_pmu_save_and_restart()
1879 struct perf_event *event = cpuc->events[bit]; in intel_pmu_handle_irq()
1921 intel_bts_constraints(struct perf_event *event) in intel_bts_constraints()
1956 static void intel_fixup_er(struct perf_event *event, int idx) in intel_fixup_er()
1980 struct perf_event *event, in __intel_shared_reg_get_constraints()
[all …]
Dperf_event_knc.c176 knc_pmu_disable_event(struct perf_event *event) in knc_pmu_disable_event()
187 static void knc_pmu_enable_event(struct perf_event *event) in knc_pmu_enable_event()
242 struct perf_event *event = cpuc->events[bit]; in knc_pmu_handle_irq()
Dperf_event_intel_ds.c120 static u64 precise_datala_hsw(struct perf_event *event, u64 status) in precise_datala_hsw()
521 struct perf_event *event = cpuc->events[INTEL_PMC_IDX_FIXED_BTS]; in intel_pmu_drain_bts_buffer()
750 struct event_constraint *intel_pebs_constraints(struct perf_event *event) in intel_pebs_constraints()
774 void intel_pmu_pebs_enable(struct perf_event *event) in intel_pmu_pebs_enable()
824 void intel_pmu_pebs_disable(struct perf_event *event) in intel_pmu_pebs_disable()
980 static void setup_pebs_sample_data(struct perf_event *event, in setup_pebs_sample_data()
1137 static void __intel_pmu_pebs_event(struct perf_event *event, in __intel_pmu_pebs_event()
1175 struct perf_event *event = cpuc->events[0]; /* PMC0 only */ in intel_pmu_drain_pebs_core()
1209 struct perf_event *event; in intel_pmu_drain_pebs_nhm()
Dperf_event_p6.c158 p6_pmu_disable_event(struct perf_event *event) in p6_pmu_disable_event()
166 static void p6_pmu_enable_event(struct perf_event *event) in p6_pmu_enable_event()
Dperf_event_intel_lbr.c322 void intel_pmu_lbr_enable(struct perf_event *event) in intel_pmu_lbr_enable()
350 void intel_pmu_lbr_disable(struct perf_event *event) in intel_pmu_lbr_disable()
511 static int intel_pmu_setup_sw_lbr_filter(struct perf_event *event) in intel_pmu_setup_sw_lbr_filter()
575 static int intel_pmu_setup_hw_lbr_filter(struct perf_event *event) in intel_pmu_setup_hw_lbr_filter()
606 int intel_pmu_setup_lbr_filter(struct perf_event *event) in intel_pmu_setup_lbr_filter()
Dperf_event_p4.c749 static int p4_validate_raw_event(struct perf_event *event) in p4_validate_raw_event()
801 static int p4_hw_config(struct perf_event *event) in p4_hw_config()
903 static inline void p4_pmu_disable_event(struct perf_event *event) in p4_pmu_disable_event()
922 struct perf_event *event = cpuc->events[idx]; in p4_pmu_disable_all()
949 static void p4_pmu_enable_event(struct perf_event *event) in p4_pmu_enable_event()
991 struct perf_event *event = cpuc->events[idx]; in p4_pmu_enable_all()
1002 struct perf_event *event; in p4_pmu_handle_irq()
DMakefile33 obj-$(CONFIG_PERF_EVENTS) += perf_event.o
/linux-4.4.14/arch/powerpc/include/asm/
Dhw_breakpoint.h55 struct perf_event;
63 extern int arch_check_bp_in_kernelspace(struct perf_event *bp);
64 extern int arch_validate_hwbkpt_settings(struct perf_event *bp);
67 int arch_install_hw_breakpoint(struct perf_event *bp);
68 void arch_uninstall_hw_breakpoint(struct perf_event *bp);
69 void hw_breakpoint_pmu_read(struct perf_event *bp);
73 extern void ptrace_triggered(struct perf_event *bp,
Dperf_event_server.h22 struct perf_event;
36 struct perf_event *pevents[]);
Dprocessor.h235 struct perf_event *ptrace_bps[HBP_NUM];
240 struct perf_event *last_hit_ubp;
/linux-4.4.14/kernel/trace/
Dtrace_event_perf.c25 struct perf_event *p_event) in perf_trace_event_perm()
87 struct perf_event *p_event) in perf_trace_event_reg()
144 static void perf_trace_event_unreg(struct perf_event *p_event) in perf_trace_event_unreg()
173 static int perf_trace_event_open(struct perf_event *p_event) in perf_trace_event_open()
179 static void perf_trace_event_close(struct perf_event *p_event) in perf_trace_event_close()
186 struct perf_event *p_event) in perf_trace_event_init()
207 int perf_trace_init(struct perf_event *p_event) in perf_trace_init()
229 void perf_trace_destroy(struct perf_event *p_event) in perf_trace_destroy()
237 int perf_trace_add(struct perf_event *p_event, int flags) in perf_trace_add()
256 void perf_trace_del(struct perf_event *p_event, int flags) in perf_trace_del()
[all …]
Dbpf_trace.c193 struct perf_event *event; in bpf_perf_event_read()
198 event = (struct perf_event *)array->ptrs[index]; in bpf_perf_event_read()
230 struct perf_event *event; in bpf_perf_event_output()
239 event = (struct perf_event *)array->ptrs[index]; in bpf_perf_event_output()
Dtrace_uprobe.c1018 struct perf_event *event; in __uprobe_perf_filter()
1032 uprobe_filter_event(struct trace_uprobe *tu, struct perf_event *event) in uprobe_filter_event()
1037 static int uprobe_perf_close(struct trace_uprobe *tu, struct perf_event *event) in uprobe_perf_close()
1059 static int uprobe_perf_open(struct trace_uprobe *tu, struct perf_event *event) in uprobe_perf_open()
Dtrace_events_filter.c2126 void ftrace_profile_free_filter(struct perf_event *event) in ftrace_profile_free_filter()
2255 static int ftrace_function_set_filter(struct perf_event *event, in ftrace_function_set_filter()
2268 static int ftrace_function_set_filter(struct perf_event *event, in ftrace_function_set_filter()
2275 int ftrace_profile_set_filter(struct perf_event *event, int event_id, in ftrace_profile_set_filter()
/linux-4.4.14/tools/perf/tests/
Dparse-no-sample-id-all.c12 static int process_event(struct perf_evlist **pevlist, union perf_event *event) in process_event()
38 static int process_events(union perf_event **events, size_t count) in process_events()
98 union perf_event *events[] = { in test__parse_no_sample_id_all()
99 (union perf_event *)&event1, in test__parse_no_sample_id_all()
100 (union perf_event *)&event2, in test__parse_no_sample_id_all()
101 (union perf_event *)&event3, in test__parse_no_sample_id_all()
Dswitch-tracking.c63 union perf_event *event, const char *comm, int nr) in check_comm()
114 union perf_event *event, in process_sample_event()
163 static int process_event(struct perf_evlist *evlist, union perf_event *event, in process_event()
199 union perf_event *event;
204 union perf_event *event) in add_event()
255 union perf_event *event; in process_events()
Ddwarf-unwind.c22 union perf_event *event, in mmap_handler()
31 union perf_event event; in init_live_machine()
Dcode-reading.c292 union perf_event *event, struct state *state) in process_sample_event()
318 union perf_event *event, struct state *state) in process_event()
343 union perf_event *event; in process_events()
Dtask-exit.c37 union perf_event *event; in test__task_exit()
Dopenat-syscall-tp-fields.c76 union perf_event *event; in test__syscall_openat_tp_fields()
Dsw-clock.c26 union perf_event *event; in __test__sw_clock_freq()
Dhists_link.c79 const union perf_event event = { in add_hist_entries()
105 const union perf_event event = { in add_hist_entries()
Dkeep-tracking.c28 union perf_event *event; in find_comm()
Dmmap-basic.c22 union perf_event *event; in test__basic_mmap()
Dbpf.c116 union perf_event *event; in do_test()
Dhists_common.c103 union perf_event fake_mmap_event = { in setup_fake_machine()
Dperf-record.c158 union perf_event *event; in test__PERF_RECORD()
Dhists_filter.c61 const union perf_event event = { in add_hist_entries()
Dsample-parsing.c154 union perf_event *event; in do_test()
Dhists_cumulate.c84 const union perf_event event = { in add_hist_entries()
Dhists_output.c54 const union perf_event event = { in add_hist_entries()
/linux-4.4.14/arch/powerpc/kernel/
Dhw_breakpoint.c42 static DEFINE_PER_CPU(struct perf_event *, bp_per_reg);
63 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint()
66 struct perf_event **slot = this_cpu_ptr(&bp_per_reg); in arch_install_hw_breakpoint()
89 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint()
91 struct perf_event **slot = this_cpu_ptr(&bp_per_reg); in arch_uninstall_hw_breakpoint()
106 void arch_unregister_hw_breakpoint(struct perf_event *bp) in arch_unregister_hw_breakpoint()
120 int arch_check_bp_in_kernelspace(struct perf_event *bp) in arch_check_bp_in_kernelspace()
142 int arch_validate_hwbkpt_settings(struct perf_event *bp) in arch_validate_hwbkpt_settings()
211 struct perf_event *bp; in hw_breakpoint_handler()
299 struct perf_event *bp = NULL; in single_step_dabr_instruction()
[all …]
Dptrace.c918 void ptrace_triggered(struct perf_event *bp, in ptrace_triggered()
941 struct perf_event *bp; in ptrace_set_debugreg()
1375 struct perf_event *bp; in ppc_set_hwdebug()
1482 struct perf_event *bp; in ppc_del_hwdebug()
/linux-4.4.14/tools/perf/
Dbuiltin-inject.c43 union perf_event event[0];
59 union perf_event *event) in perf_event__repipe_synth()
68 union perf_event *event, in perf_event__repipe_oe_synth()
75 union perf_event *event, in perf_event__repipe_op2_synth()
83 union perf_event *event, in perf_event__repipe_attr()
122 union perf_event *event, in perf_event__repipe_auxtrace()
164 union perf_event *event __maybe_unused, in perf_event__repipe_auxtrace()
174 union perf_event *event, in perf_event__repipe()
182 union perf_event *event __maybe_unused, in perf_event__drop()
190 union perf_event *event __maybe_unused, in perf_event__drop_aux()
[all …]
Dbuiltin-script.c370 static void print_sample_iregs(union perf_event *event __maybe_unused, in print_sample_iregs()
441 static void print_sample_brstack(union perf_event *event __maybe_unused, in print_sample_brstack()
463 static void print_sample_brstacksym(union perf_event *event __maybe_unused, in print_sample_brstacksym()
503 static void print_sample_addr(union perf_event *event, in print_sample_addr()
532 static void print_sample_bts(union perf_event *event, in print_sample_bts()
591 static void process_event(union perf_event *event, struct perf_sample *sample, in process_event()
700 union perf_event *event, in process_sample_event()
744 static int process_attr(struct perf_tool *tool, union perf_event *event, in process_attr()
776 union perf_event *event, in process_comm_event()
810 union perf_event *event, in process_fork_event()
[all …]
Dbuiltin-mem.c62 union perf_event *event, in dump_raw_samples()
112 union perf_event *event, in process_sample_event()
DMANIFEST60 include/linux/perf_event.h
72 include/uapi/linux/perf_event.h
Dbuiltin-record.c68 union perf_event *event, in process_synthesized_event()
148 union perf_event *event, void *data1, in record__process_auxtrace()
334 union perf_event *event, in process_sample_event()
641 union perf_event *event; in __cmd_record()
Dbuiltin-trace.c1611 union perf_event *event, struct perf_sample *sample) in trace__process_event()
1629 union perf_event *event, in trace__tool_process()
1862 union perf_event *event,
1958 union perf_event *event __maybe_unused, in trace__sys_enter()
2017 union perf_event *event __maybe_unused, in trace__sys_exit()
2094 union perf_event *event __maybe_unused, in trace__vfs_getname()
2151 union perf_event *event __maybe_unused, in trace__sched_stat_runtime()
2181 union perf_event *event __maybe_unused, in trace__event_handler()
2221 union perf_event *event, in trace__pgfault()
2293 union perf_event *event, in trace__process_sample()
[all …]
Dbuiltin-timechart.c312 union perf_event *event, in process_comm_event()
322 union perf_event *event, in process_fork_event()
332 union perf_event *event, in process_exit_event()
471 static const char *cat_backtrace(union perf_event *event, in cat_backtrace()
555 union perf_event *event, in process_sample_event()
Dbuiltin-annotate.c85 union perf_event *event, in process_sample_event()
Dbuiltin-report.c139 union perf_event *event, in process_sample_event()
194 union perf_event *event, in process_read_event()
Dbuiltin-sched.c116 int (*fork_event)(struct perf_sched *sched, union perf_event *event,
762 union perf_event *event, in replay_fork_event()
1468 union perf_event *event, in perf_sched__process_fork_event()
1503 union perf_event *event __maybe_unused, in perf_sched__process_tracepoint_sample()
Dbuiltin-kvm.c627 union perf_event *event __maybe_unused, in process_lost_event()
648 union perf_event *event, in process_sample_event()
721 union perf_event *event; in perf_kvm__mmap_read_idx()
Dbuiltin-top.c705 const union perf_event *event, in perf_event__process_sample()
816 union perf_event *event; in perf_top__mmap_read_idx()
DMakefile.perf480 TAG_FILES= ../../include/uapi/linux/perf_event.h
Dbuiltin-lock.c809 union perf_event *event, in process_sample_event()
Dbuiltin-diff.c324 union perf_event *event, in diff__process_sample_event()
Ddesign.txt455 - asm/perf_event.h - a basic stub will suffice at first
Dbuiltin-kmem.c904 union perf_event *event, in process_sample_event()
/linux-4.4.14/arch/alpha/kernel/
Dperf_event.c40 struct perf_event *event[MAX_HWEVENTS];
85 int (*check_constraints)(struct perf_event **, unsigned long *, int);
151 static int ev67_check_constraints(struct perf_event **event, in ev67_check_constraints()
251 static int alpha_perf_event_set_period(struct perf_event *event, in alpha_perf_event_set_period()
306 static unsigned long alpha_perf_event_update(struct perf_event *event, in alpha_perf_event_update()
339 static int collect_events(struct perf_event *group, int max_count, in collect_events()
340 struct perf_event *event[], unsigned long *evtype, in collect_events()
343 struct perf_event *pe; in collect_events()
370 static int alpha_check_constraints(struct perf_event **events, in alpha_check_constraints()
399 struct perf_event *pe = cpuc->event[j]; in maybe_change_configuration()
[all …]
DMakefile18 obj-$(CONFIG_PERF_EVENTS) += perf_event.o
/linux-4.4.14/arch/sh/kernel/
Dhw_breakpoint.c31 static DEFINE_PER_CPU(struct perf_event *, bp_per_reg[HBP_NUM]);
49 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint()
55 struct perf_event **slot = this_cpu_ptr(&bp_per_reg[i]); in arch_install_hw_breakpoint()
81 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint()
87 struct perf_event **slot = this_cpu_ptr(&bp_per_reg[i]); in arch_uninstall_hw_breakpoint()
126 int arch_check_bp_in_kernelspace(struct perf_event *bp) in arch_check_bp_in_kernelspace()
176 static int arch_build_bp_info(struct perf_event *bp) in arch_build_bp_info()
221 int arch_validate_hwbkpt_settings(struct perf_event *bp) in arch_validate_hwbkpt_settings()
284 struct perf_event *bp; in hw_breakpoint_handler()
404 void hw_breakpoint_pmu_read(struct perf_event *bp) in hw_breakpoint_pmu_read()
Dperf_event.c32 struct perf_event *events[MAX_HWEVENTS];
84 static void hw_perf_event_destroy(struct perf_event *event) in hw_perf_event_destroy()
121 static int __hw_perf_event_init(struct perf_event *event) in __hw_perf_event_init()
179 static void sh_perf_event_update(struct perf_event *event, in sh_perf_event_update()
220 static void sh_pmu_stop(struct perf_event *event, int flags) in sh_pmu_stop()
238 static void sh_pmu_start(struct perf_event *event, int flags) in sh_pmu_start()
255 static void sh_pmu_del(struct perf_event *event, int flags) in sh_pmu_del()
265 static int sh_pmu_add(struct perf_event *event, int flags) in sh_pmu_add()
296 static void sh_pmu_read(struct perf_event *event) in sh_pmu_read()
301 static int sh_pmu_event_init(struct perf_event *event) in sh_pmu_event_init()
DMakefile46 obj-$(CONFIG_PERF_EVENTS) += perf_event.o perf_callchain.o
Dptrace_32.c65 void ptrace_triggered(struct perf_event *bp, in ptrace_triggered()
82 struct perf_event *bp; in set_single_step()
/linux-4.4.14/arch/arm64/include/asm/
Dhw_breakpoint.h109 struct perf_event;
114 extern int arch_check_bp_in_kernelspace(struct perf_event *bp);
115 extern int arch_validate_hwbkpt_settings(struct perf_event *bp);
119 extern int arch_install_hw_breakpoint(struct perf_event *bp);
120 extern void arch_uninstall_hw_breakpoint(struct perf_event *bp);
121 extern void hw_breakpoint_pmu_read(struct perf_event *bp);
Dprocessor.h59 struct perf_event *hbp_break[ARM_MAX_BRP];
60 struct perf_event *hbp_watch[ARM_MAX_WRP];
/linux-4.4.14/arch/arm/include/asm/
Dhw_breakpoint.h114 struct perf_event;
120 extern int arch_check_bp_in_kernelspace(struct perf_event *bp);
121 extern int arch_validate_hwbkpt_settings(struct perf_event *bp);
129 int arch_install_hw_breakpoint(struct perf_event *bp);
130 void arch_uninstall_hw_breakpoint(struct perf_event *bp);
131 void hw_breakpoint_pmu_read(struct perf_event *bp);
Dprocessor.h35 struct perf_event *hbp[ARM_MAX_HBP_SLOTS];
/linux-4.4.14/arch/x86/kernel/
Dhw_breakpoint.c58 static DEFINE_PER_CPU(struct perf_event *, bp_per_reg[HBP_NUM]);
105 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint()
112 struct perf_event **slot = this_cpu_ptr(&bp_per_reg[i]); in arch_install_hw_breakpoint()
145 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint()
152 struct perf_event **slot = this_cpu_ptr(&bp_per_reg[i]); in arch_uninstall_hw_breakpoint()
174 int arch_check_bp_in_kernelspace(struct perf_event *bp) in arch_check_bp_in_kernelspace()
236 static int arch_build_bp_info(struct perf_event *bp) in arch_build_bp_info()
322 int arch_validate_hwbkpt_settings(struct perf_event *bp) in arch_validate_hwbkpt_settings()
376 struct perf_event *bp; in aout_dump_debugregs()
447 struct perf_event *bp; in hw_breakpoint_handler()
[all …]
Dkgdb.c200 struct perf_event * __percpu *pev;
210 struct perf_event *bp; in kgdb_correct_hw_break()
246 struct perf_event **pevent; in hw_break_reserve_slot()
273 struct perf_event **pevent; in hw_break_release_slot()
315 struct perf_event *bp; in kgdb_remove_all_hw_break()
401 struct perf_event *bp; in kgdb_disable_hw_debug()
646 static void kgdb_hw_overflow_handler(struct perf_event *event, in kgdb_hw_overflow_handler()
661 struct perf_event **pevent; in kgdb_arch_late()
Dptrace.c556 static void ptrace_triggered(struct perf_event *bp, in ptrace_triggered()
580 static unsigned long ptrace_get_dr7(struct perf_event *bp[]) in ptrace_get_dr7()
611 static struct perf_event *
629 static int ptrace_modify_breakpoint(struct perf_event *bp, int len, int type, in ptrace_modify_breakpoint()
660 struct perf_event *bp = thread->ptrace_bps[i]; in ptrace_write_dr7()
702 struct perf_event *bp = thread->ptrace_bps[n]; in ptrace_get_debugreg()
718 struct perf_event *bp = t->ptrace_bps[nr]; in ptrace_set_breakpoint_addr()
/linux-4.4.14/arch/x86/kvm/
Dpmu.c58 static void kvm_perf_overflow(struct perf_event *perf_event, in kvm_perf_overflow() argument
62 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_perf_overflow()
72 static void kvm_perf_overflow_intr(struct perf_event *perf_event, in kvm_perf_overflow_intr() argument
76 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_perf_overflow_intr()
104 struct perf_event *event; in pmc_reprogram_counter()
132 pmc->perf_event = event; in pmc_reprogram_counter()
225 if (unlikely(!pmc || !pmc->perf_event)) { in kvm_pmu_handle_event()
Dpmu.h45 if (pmc->perf_event) in pmc_read_counter()
46 counter += perf_event_read_value(pmc->perf_event, in pmc_read_counter()
54 if (pmc->perf_event) { in pmc_stop_counter()
56 perf_event_release_kernel(pmc->perf_event); in pmc_stop_counter()
57 pmc->perf_event = NULL; in pmc_stop_counter()
/linux-4.4.14/arch/arm64/kernel/
Dhw_breakpoint.c40 static DEFINE_PER_CPU(struct perf_event *, bp_on_reg[ARM_MAX_BRP]);
43 static DEFINE_PER_CPU(struct perf_event *, wp_on_reg[ARM_MAX_WRP]);
167 static int is_compat_bp(struct perf_event *bp) in is_compat_bp()
195 static int hw_breakpoint_slot_setup(struct perf_event **slots, int max_slots, in hw_breakpoint_slot_setup()
196 struct perf_event *bp, in hw_breakpoint_slot_setup()
200 struct perf_event **slot; in hw_breakpoint_slot_setup()
229 static int hw_breakpoint_control(struct perf_event *bp, in hw_breakpoint_control()
233 struct perf_event **slots; in hw_breakpoint_control()
295 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint()
300 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint()
[all …]
Dperf_event.c274 static inline u32 armv8pmu_read_counter(struct perf_event *event) in armv8pmu_read_counter()
292 static inline void armv8pmu_write_counter(struct perf_event *event, u32 value) in armv8pmu_write_counter()
362 static void armv8pmu_enable_event(struct perf_event *event) in armv8pmu_enable_event()
399 static void armv8pmu_disable_event(struct perf_event *event) in armv8pmu_disable_event()
451 struct perf_event *event = cpuc->events[idx]; in armv8pmu_handle_irq()
510 struct perf_event *event) in armv8pmu_get_event_idx()
579 static int armv8_pmuv3_map_event(struct perf_event *event) in armv8_pmuv3_map_event()
586 static int armv8_a53_map_event(struct perf_event *event) in armv8_a53_map_event()
593 static int armv8_a57_map_event(struct perf_event *event) in armv8_a57_map_event()
Dptrace.c73 static void ptrace_hbptriggered(struct perf_event *bp, in ptrace_hbptriggered()
139 static struct perf_event *ptrace_hbp_get_event(unsigned int note_type, in ptrace_hbp_get_event()
143 struct perf_event *bp = ERR_PTR(-EINVAL); in ptrace_hbp_get_event()
162 struct perf_event *bp) in ptrace_hbp_set_event()
184 static struct perf_event *ptrace_hbp_create(unsigned int note_type, in ptrace_hbp_create()
188 struct perf_event *bp; in ptrace_hbp_create()
287 struct perf_event *bp = ptrace_hbp_get_event(note_type, tsk, idx); in ptrace_hbp_get_ctrl()
301 struct perf_event *bp = ptrace_hbp_get_event(note_type, tsk, idx); in ptrace_hbp_get_addr()
310 static struct perf_event *ptrace_hbp_get_initialised_bp(unsigned int note_type, in ptrace_hbp_get_initialised_bp()
314 struct perf_event *bp = ptrace_hbp_get_event(note_type, tsk, idx); in ptrace_hbp_get_initialised_bp()
[all …]
DMakefile34 arm64-obj-$(CONFIG_HW_PERF_EVENTS) += perf_event.o
/linux-4.4.14/arch/powerpc/perf/
Dcore-fsl-emb.c27 struct perf_event *event[MAX_HWEVENTS];
179 static void fsl_emb_pmu_read(struct perf_event *event) in fsl_emb_pmu_read()
268 static int collect_events(struct perf_event *group, int max_count, in collect_events()
269 struct perf_event *ctrs[]) in collect_events()
272 struct perf_event *event; in collect_events()
293 static int fsl_emb_pmu_add(struct perf_event *event, int flags) in fsl_emb_pmu_add()
354 static void fsl_emb_pmu_del(struct perf_event *event, int flags) in fsl_emb_pmu_del()
391 static void fsl_emb_pmu_start(struct perf_event *event, int ef_flags) in fsl_emb_pmu_start()
421 static void fsl_emb_pmu_stop(struct perf_event *event, int ef_flags) in fsl_emb_pmu_stop()
446 static void hw_perf_event_destroy(struct perf_event *event) in hw_perf_event_destroy()
[all …]
Dcore-book3s.c36 struct perf_event *event[MAX_HWEVENTS];
45 struct perf_event *limited_counter[MAX_LIMITED_HWCOUNTERS];
116 static bool is_ebb_event(struct perf_event *event) { return false; } in is_ebb_event()
117 static int ebb_event_check(struct perf_event *event) { return 0; } in ebb_event_check()
118 static void ebb_event_add(struct perf_event *event) { } in ebb_event_add()
125 static inline void power_pmu_bhrb_enable(struct perf_event *event) {} in power_pmu_bhrb_enable()
126 static inline void power_pmu_bhrb_disable(struct perf_event *event) {} in power_pmu_bhrb_disable()
349 static void power_pmu_bhrb_enable(struct perf_event *event) in power_pmu_bhrb_enable()
365 static void power_pmu_bhrb_disable(struct perf_event *event) in power_pmu_bhrb_disable()
500 static bool is_ebb_event(struct perf_event *event) in is_ebb_event()
[all …]
Dhv-gpci.c172 static u64 h_gpci_get_value(struct perf_event *event) in h_gpci_get_value()
187 static void h_gpci_event_update(struct perf_event *event) in h_gpci_event_update()
195 static void h_gpci_event_start(struct perf_event *event, int flags) in h_gpci_event_start()
200 static void h_gpci_event_stop(struct perf_event *event, int flags) in h_gpci_event_stop()
205 static int h_gpci_event_add(struct perf_event *event, int flags) in h_gpci_event_add()
213 static int h_gpci_event_init(struct perf_event *event) in h_gpci_event_init()
Dhv-24x7.c149 struct perf_event *events[255];
1079 static int add_event_to_24x7_request(struct perf_event *event, in add_event_to_24x7_request()
1111 static unsigned long single_24x7_request(struct perf_event *event, u64 *count) in single_24x7_request()
1145 static int h_24x7_event_init(struct perf_event *event) in h_24x7_event_init()
1220 static u64 h_24x7_get_value(struct perf_event *event) in h_24x7_get_value()
1232 static void update_event_count(struct perf_event *event, u64 now) in update_event_count()
1240 static void h_24x7_event_read(struct perf_event *event) in h_24x7_event_read()
1287 static void h_24x7_event_start(struct perf_event *event, int flags) in h_24x7_event_start()
1293 static void h_24x7_event_stop(struct perf_event *event, int flags) in h_24x7_event_stop()
1298 static int h_24x7_event_add(struct perf_event *event, int flags) in h_24x7_event_add()
[all …]
Dhv-common.h40 static u64 event_get_##name(struct perf_event *event) \
Dmpc7450-pmu.c265 struct perf_event *pevents[]) in mpc7450_compute_mmcr()
Dppc970-pmu.c260 unsigned int hwc[], unsigned long mmcr[], struct perf_event *pevents[]) in p970_compute_mmcr()
Dpower6-pmu.c178 unsigned int hwc[], unsigned long mmcr[], struct perf_event *pevents[]) in p6_compute_mmcr()
Dpower7-pmu.c248 unsigned int hwc[], unsigned long mmcr[], struct perf_event *pevents[]) in power7_compute_mmcr()
Dpower4-pmu.c359 unsigned int hwc[], unsigned long mmcr[], struct perf_event *pevents[]) in p4_compute_mmcr()
Dpower5-pmu.c386 unsigned int hwc[], unsigned long mmcr[], struct perf_event *pevents[]) in power5_compute_mmcr()
Dpower5+-pmu.c455 unsigned int hwc[], unsigned long mmcr[], struct perf_event *pevents[]) in power5p_compute_mmcr()
Dpower8-pmu.c403 struct perf_event *pevents[]) in power8_compute_mmcr()
/linux-4.4.14/drivers/oprofile/
Dnmi_timer_int.c17 static DEFINE_PER_CPU(struct perf_event *, nmi_timer_events);
28 static void nmi_timer_callback(struct perf_event *event, in nmi_timer_callback()
38 struct perf_event *event = per_cpu(nmi_timer_events, cpu); in nmi_timer_start_cpu()
56 struct perf_event *event = per_cpu(nmi_timer_events, cpu); in nmi_timer_stop_cpu()
108 struct perf_event *event; in nmi_timer_shutdown()
Doprofile_perf.c29 static DEFINE_PER_CPU(struct perf_event **, perf_events);
35 static void op_overflow_handler(struct perf_event *event, in op_overflow_handler()
76 struct perf_event *pevent; in op_create_counter()
102 struct perf_event *pevent = per_cpu(perf_events, cpu)[event]; in op_destroy_counter()
257 struct perf_event *event; in oprofile_perf_exit()
301 sizeof(struct perf_event *), GFP_KERNEL); in oprofile_perf_init()
/linux-4.4.14/arch/xtensa/kernel/
Dperf_event.c55 struct perf_event *event[XCHAL_NUM_PERF_COUNTERS];
139 static void xtensa_perf_event_update(struct perf_event *event, in xtensa_perf_event_update()
157 static bool xtensa_perf_event_set_period(struct perf_event *event, in xtensa_perf_event_set_period()
201 static int xtensa_pmu_event_init(struct perf_event *event) in xtensa_pmu_event_init()
243 static void xtensa_pmu_start(struct perf_event *event, int flags) in xtensa_pmu_start()
261 static void xtensa_pmu_stop(struct perf_event *event, int flags) in xtensa_pmu_stop()
284 static int xtensa_pmu_add(struct perf_event *event, int flags) in xtensa_pmu_add()
310 static void xtensa_pmu_del(struct perf_event *event, int flags) in xtensa_pmu_del()
319 static void xtensa_pmu_read(struct perf_event *event) in xtensa_pmu_read()
372 struct perf_event *event = ev->event[i]; in xtensa_pmu_irq_handler()
DMakefile16 obj-$(CONFIG_XTENSA_VARIANT_HAVE_PERF_EVENTS) += perf_event.o
/linux-4.4.14/arch/blackfin/kernel/
Dperf_event.c231 struct perf_event *events[MAX_HWEVENTS];
260 static void bfin_perf_event_update(struct perf_event *event, in bfin_perf_event_update()
301 static void bfin_pmu_stop(struct perf_event *event, int flags) in bfin_pmu_stop()
319 static void bfin_pmu_start(struct perf_event *event, int flags) in bfin_pmu_start()
336 static void bfin_pmu_del(struct perf_event *event, int flags) in bfin_pmu_del()
346 static int bfin_pmu_add(struct perf_event *event, int flags) in bfin_pmu_add()
377 static void bfin_pmu_read(struct perf_event *event) in bfin_pmu_read()
382 static int bfin_pmu_event_init(struct perf_event *event) in bfin_pmu_event_init()
425 struct perf_event *event; in bfin_pmu_enable()
DMakefile37 obj-$(CONFIG_PERF_EVENTS) += perf_event.o
/linux-4.4.14/arch/arm/kernel/
Dperf_event_xscale.c174 struct perf_event *event = cpuc->events[idx]; in xscale1pmu_handle_irq()
204 static void xscale1pmu_enable_event(struct perf_event *event) in xscale1pmu_enable_event()
240 static void xscale1pmu_disable_event(struct perf_event *event) in xscale1pmu_disable_event()
276 struct perf_event *event) in xscale1pmu_get_event_idx()
319 static inline u32 xscale1pmu_read_counter(struct perf_event *event) in xscale1pmu_read_counter()
340 static inline void xscale1pmu_write_counter(struct perf_event *event, u32 val) in xscale1pmu_write_counter()
358 static int xscale_map_event(struct perf_event *event) in xscale_map_event()
515 struct perf_event *event = cpuc->events[idx]; in xscale2pmu_handle_irq()
545 static void xscale2pmu_enable_event(struct perf_event *event) in xscale2pmu_enable_event()
591 static void xscale2pmu_disable_event(struct perf_event *event) in xscale2pmu_disable_event()
[all …]
Dhw_breakpoint.c41 static DEFINE_PER_CPU(struct perf_event *, bp_on_reg[ARM_MAX_BRP]);
44 static DEFINE_PER_CPU(struct perf_event *, wp_on_reg[ARM_MAX_WRP]);
333 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint()
336 struct perf_event **slot, **slots; in arch_install_hw_breakpoint()
390 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint()
393 struct perf_event **slot, **slots; in arch_uninstall_hw_breakpoint()
459 int arch_check_bp_in_kernelspace(struct perf_event *bp) in arch_check_bp_in_kernelspace()
521 static int arch_build_bp_info(struct perf_event *bp) in arch_build_bp_info()
594 int arch_validate_hwbkpt_settings(struct perf_event *bp) in arch_validate_hwbkpt_settings()
670 static void enable_single_step(struct perf_event *bp, u32 addr) in enable_single_step()
[all …]
Dperf_event_v6.c235 static inline u32 armv6pmu_read_counter(struct perf_event *event) in armv6pmu_read_counter()
253 static inline void armv6pmu_write_counter(struct perf_event *event, u32 value) in armv6pmu_write_counter()
268 static void armv6pmu_enable_event(struct perf_event *event) in armv6pmu_enable_event()
328 struct perf_event *event = cpuc->events[idx]; in armv6pmu_handle_irq()
390 struct perf_event *event) in armv6pmu_get_event_idx()
415 static void armv6pmu_disable_event(struct perf_event *event) in armv6pmu_disable_event()
450 static void armv6mpcore_pmu_disable_event(struct perf_event *event) in armv6mpcore_pmu_disable_event()
481 static int armv6_map_event(struct perf_event *event) in armv6_map_event()
531 static int armv6mpcore_map_event(struct perf_event *event) in armv6mpcore_map_event()
Dperf_event_v7.c640 static inline u32 armv7pmu_read_counter(struct perf_event *event) in armv7pmu_read_counter()
660 static inline void armv7pmu_write_counter(struct perf_event *event, u32 value) in armv7pmu_write_counter()
765 static void armv7pmu_enable_event(struct perf_event *event) in armv7pmu_enable_event()
811 static void armv7pmu_disable_event(struct perf_event *event) in armv7pmu_disable_event()
869 struct perf_event *event = cpuc->events[idx]; in armv7pmu_handle_irq()
928 struct perf_event *event) in armv7pmu_get_event_idx()
997 static int armv7_a8_map_event(struct perf_event *event) in armv7_a8_map_event()
1003 static int armv7_a9_map_event(struct perf_event *event) in armv7_a9_map_event()
1009 static int armv7_a5_map_event(struct perf_event *event) in armv7_a5_map_event()
1015 static int armv7_a15_map_event(struct perf_event *event) in armv7_a15_map_event()
[all …]
Dptrace.c385 static void ptrace_hbptriggered(struct perf_event *bp, in ptrace_hbptriggered()
456 static struct perf_event *ptrace_hbp_create(struct task_struct *tsk, int type) in ptrace_hbp_create()
477 struct perf_event *bp; in ptrace_gethbpregs()
523 struct perf_event *bp; in ptrace_sethbpregs()
/linux-4.4.14/drivers/perf/
Darm_pmu.c77 armpmu_map_event(struct perf_event *event, in armpmu_map_event()
103 int armpmu_event_set_period(struct perf_event *event) in armpmu_event_set_period()
143 u64 armpmu_event_update(struct perf_event *event) in armpmu_event_update()
166 armpmu_read(struct perf_event *event) in armpmu_read()
172 armpmu_stop(struct perf_event *event, int flags) in armpmu_stop()
188 static void armpmu_start(struct perf_event *event, int flags) in armpmu_start()
213 armpmu_del(struct perf_event *event, int flags) in armpmu_del()
230 armpmu_add(struct perf_event *event, int flags) in armpmu_add()
273 struct perf_event *event) in validate_event()
299 validate_group(struct perf_event *event) in validate_group()
[all …]
/linux-4.4.14/arch/tile/kernel/
Dperf_event.c52 struct perf_event *events[TILE_MAX_COUNTERS]; /* counter order */
53 struct perf_event *event_list[TILE_MAX_COUNTERS]; /* enabled
410 static inline void tile_pmu_enable_event(struct perf_event *event) in tile_pmu_enable_event()
459 static inline void tile_pmu_disable_event(struct perf_event *event) in tile_pmu_disable_event()
502 static u64 tile_perf_event_update(struct perf_event *event) in tile_perf_event_update()
548 static int tile_event_set_period(struct perf_event *event) in tile_event_set_period()
591 static void tile_pmu_stop(struct perf_event *event, int flags) in tile_pmu_stop()
617 static void tile_pmu_start(struct perf_event *event, int flags) in tile_pmu_start()
651 static int tile_pmu_add(struct perf_event *event, int flags) in tile_pmu_add()
707 static void tile_pmu_del(struct perf_event *event, int flags) in tile_pmu_del()
[all …]
DMakefile28 obj-$(CONFIG_PERF_EVENTS) += perf_event.o
/linux-4.4.14/arch/metag/kernel/perf/
Dperf_event.c31 static int _hw_perf_event_init(struct perf_event *);
32 static void _hw_perf_event_destroy(struct perf_event *);
144 static int metag_pmu_event_init(struct perf_event *event) in metag_pmu_event_init()
189 void metag_pmu_event_update(struct perf_event *event, in metag_pmu_event_update()
221 int metag_pmu_event_set_period(struct perf_event *event, in metag_pmu_event_set_period()
259 static void metag_pmu_start(struct perf_event *event, int flags) in metag_pmu_start()
292 static void metag_pmu_stop(struct perf_event *event, int flags) in metag_pmu_stop()
307 static int metag_pmu_add(struct perf_event *event, int flags) in metag_pmu_add()
349 static void metag_pmu_del(struct perf_event *event, int flags) in metag_pmu_del()
363 static void metag_pmu_read(struct perf_event *event) in metag_pmu_read()
[all …]
DMakefile3 obj-y += perf_event.o
Dperf_event.h51 struct perf_event *events[MAX_HWEVENTS];
/linux-4.4.14/arch/sh/kernel/cpu/sh4/
DMakefile13 perf-$(CONFIG_CPU_SUBTYPE_SH7750) := perf_event.o
14 perf-$(CONFIG_CPU_SUBTYPE_SH7750S) := perf_event.o
15 perf-$(CONFIG_CPU_SUBTYPE_SH7091) := perf_event.o
/linux-4.4.14/arch/arc/kernel/
Dperf_event.c40 struct perf_event *act_counter[ARC_PERF_MAX_COUNTERS];
103 static void arc_perf_event_update(struct perf_event *event, in arc_perf_event_update()
119 static void arc_pmu_read(struct perf_event *event) in arc_pmu_read()
152 static int arc_pmu_event_init(struct perf_event *event) in arc_pmu_event_init()
214 static int arc_pmu_event_set_period(struct perf_event *event) in arc_pmu_event_set_period()
260 static void arc_pmu_start(struct perf_event *event, int flags) in arc_pmu_start()
285 static void arc_pmu_stop(struct perf_event *event, int flags) in arc_pmu_stop()
318 static void arc_pmu_del(struct perf_event *event, int flags) in arc_pmu_del()
331 static int arc_pmu_add(struct perf_event *event, int flags) in arc_pmu_add()
388 struct perf_event *event = pmu_cpu->act_counter[idx]; in arc_pmu_intr()
DMakefile24 obj-$(CONFIG_PERF_EVENTS) += perf_event.o
/linux-4.4.14/arch/s390/kernel/
Dperf_cpum_cf.c298 static void hw_perf_event_destroy(struct perf_event *event) in hw_perf_event_destroy()
329 static int __hw_perf_event_init(struct perf_event *event) in __hw_perf_event_init()
412 static int cpumf_pmu_event_init(struct perf_event *event) in cpumf_pmu_event_init()
432 static int hw_perf_event_reset(struct perf_event *event) in hw_perf_event_reset()
455 static int hw_perf_event_update(struct perf_event *event) in hw_perf_event_update()
474 static void cpumf_pmu_read(struct perf_event *event) in cpumf_pmu_read()
482 static void cpumf_pmu_start(struct perf_event *event, int flags) in cpumf_pmu_start()
513 static void cpumf_pmu_stop(struct perf_event *event, int flags) in cpumf_pmu_stop()
534 static int cpumf_pmu_add(struct perf_event *event, int flags) in cpumf_pmu_add()
558 static void cpumf_pmu_del(struct perf_event *event, int flags) in cpumf_pmu_del()
Dperf_cpum_sf.c87 struct perf_event *event; /* Scheduled perf event */
625 static void hw_perf_event_destroy(struct perf_event *event) in hw_perf_event_destroy()
668 static int __hw_perf_event_init(struct perf_event *event) in __hw_perf_event_init()
801 static int cpumsf_pmu_event_init(struct perf_event *event) in cpumsf_pmu_event_init()
951 static int perf_exclude_event(struct perf_event *event, struct pt_regs *regs, in perf_exclude_event()
976 static int perf_push_sample(struct perf_event *event, struct sf_raw_sample *sfr) in perf_push_sample()
1043 static void perf_event_count_update(struct perf_event *event, u64 count) in perf_event_count_update()
1139 static void hw_collect_samples(struct perf_event *event, unsigned long *sdbt, in hw_collect_samples()
1214 static void hw_perf_event_update(struct perf_event *event, int flush_all) in hw_perf_event_update()
1298 static void cpumsf_pmu_read(struct perf_event *event) in cpumsf_pmu_read()
[all …]
DMakefile66 obj-$(CONFIG_PERF_EVENTS) += perf_event.o perf_cpum_cf.o perf_cpum_sf.o
/linux-4.4.14/arch/sparc/kernel/
Dperf_event.c90 struct perf_event *event[MAX_HWEVENTS];
861 static u64 sparc_perf_event_update(struct perf_event *event, in sparc_perf_event_update()
885 static int sparc_perf_event_set_period(struct perf_event *event, in sparc_perf_event_set_period()
922 struct perf_event *cp = cpuc->event[i]; in read_in_all_counters()
948 struct perf_event *cp = cpuc->event[i]; in calculate_single_pcr()
970 static void sparc_pmu_start(struct perf_event *event, int flags);
981 struct perf_event *cp = cpuc->event[i]; in calculate_multiple_pcrs()
994 struct perf_event *cp = cpuc->event[i]; in calculate_multiple_pcrs()
1056 struct perf_event *event) in active_event_index()
1068 static void sparc_pmu_start(struct perf_event *event, int flags) in sparc_pmu_start()
[all …]
DMakefile116 pc--$(CONFIG_PERF_EVENTS) := perf_event.o
/linux-4.4.14/samples/hw_breakpoint/
Ddata_breakpoint.c37 struct perf_event * __percpu *sample_hbp;
44 static void sample_hbp_handler(struct perf_event *bp, in sample_hbp_handler()
/linux-4.4.14/drivers/bus/
Darm-cci.c107 struct perf_event **events;
665 static int pmu_get_event_idx(struct cci_pmu_hw_events *hw, struct perf_event *event) in pmu_get_event_idx()
683 static int pmu_map_event(struct perf_event *event) in pmu_map_event()
741 static u32 pmu_read_counter(struct perf_event *event) in pmu_read_counter()
757 static void pmu_write_counter(struct perf_event *event, u32 value) in pmu_write_counter()
769 static u64 pmu_event_update(struct perf_event *event) in pmu_event_update()
787 static void pmu_read(struct perf_event *event) in pmu_read()
792 void pmu_event_set_period(struct perf_event *event) in pmu_event_set_period()
820 struct perf_event *event = events->events[idx]; in pmu_handle_irq()
860 static void hw_perf_event_destroy(struct perf_event *event) in hw_perf_event_destroy()
[all …]
Darm-ccn.c160 struct perf_event *event;
631 static int arm_ccn_pmu_event_alloc(struct perf_event *event) in arm_ccn_pmu_event_alloc()
689 static void arm_ccn_pmu_event_release(struct perf_event *event) in arm_ccn_pmu_event_release()
713 static int arm_ccn_pmu_event_init(struct perf_event *event) in arm_ccn_pmu_event_init()
720 struct perf_event *sibling; in arm_ccn_pmu_event_init()
864 static void arm_ccn_pmu_event_update(struct perf_event *event) in arm_ccn_pmu_event_update()
880 static void arm_ccn_pmu_xp_dt_config(struct perf_event *event, int enable) in arm_ccn_pmu_xp_dt_config()
909 static void arm_ccn_pmu_event_start(struct perf_event *event, int flags) in arm_ccn_pmu_event_start()
931 static void arm_ccn_pmu_event_stop(struct perf_event *event, int flags) in arm_ccn_pmu_event_stop()
956 static void arm_ccn_pmu_xp_watchpoint_config(struct perf_event *event) in arm_ccn_pmu_xp_watchpoint_config()
[all …]
/linux-4.4.14/arch/mips/kernel/
Dperf_event_mipsxx.c36 struct perf_event *events[MIPS_MAX_HWEVENTS];
375 static int mipspmu_event_set_period(struct perf_event *event, in mipspmu_event_set_period()
411 static void mipspmu_event_update(struct perf_event *event, in mipspmu_event_update()
432 static void mipspmu_start(struct perf_event *event, int flags) in mipspmu_start()
448 static void mipspmu_stop(struct perf_event *event, int flags) in mipspmu_stop()
461 static int mipspmu_add(struct perf_event *event, int flags) in mipspmu_add()
497 static void mipspmu_del(struct perf_event *event, int flags) in mipspmu_del()
512 static void mipspmu_read(struct perf_event *event) in mipspmu_read()
597 static int __hw_perf_event_init(struct perf_event *event);
599 static void hw_perf_event_destroy(struct perf_event *event) in hw_perf_event_destroy()
[all …]
Dpm-cps.c247 unsigned perf_counter, perf_event; in cps_gen_flush_fsb() local
257 perf_event = 51; in cps_gen_flush_fsb()
289 uasm_i_addiu(pp, t0, zero, (perf_event << 5) | 0xf); in cps_gen_flush_fsb()
DMakefile99 obj-$(CONFIG_PERF_EVENTS) += perf_event.o
/linux-4.4.14/kernel/
Dwatchdog.c106 static DEFINE_PER_CPU(struct perf_event *, watchdog_ev);
311 static void watchdog_overflow_callback(struct perf_event *event, in watchdog_overflow_callback()
575 struct perf_event *event = per_cpu(watchdog_ev, cpu); in watchdog_nmi_enable()
647 struct perf_event *event = per_cpu(watchdog_ev, cpu); in watchdog_nmi_disable()
/linux-4.4.14/kernel/bpf/
Darraymap.c292 struct perf_event *event; in perf_event_fd_array_get_ptr()
322 struct perf_event *event = ptr; in perf_event_fd_array_put_ptr()
/linux-4.4.14/arch/powerpc/include/uapi/asm/
DKbuild24 header-y += perf_event.h
/linux-4.4.14/arch/sh/kernel/cpu/sh4a/
DMakefile51 obj-$(CONFIG_PERF_EVENTS) += perf_event.o
/linux-4.4.14/tools/perf/arch/x86/tests/
Dperf-time-to-tsc.c58 union perf_event *event; in test__perf_time_to_tsc()
/linux-4.4.14/Documentation/arm/
DCCN.txt39 request the events on this processor (if not, the perf_event->cpu value
/linux-4.4.14/tools/perf/util/scripting-engines/
Dtrace-event-perl.c337 static void perl_process_event_generic(union perf_event *event, in perl_process_event_generic()
361 static void perl_process_event(union perf_event *event, in perl_process_event()
Dtrace-event-python.c842 static void python_process_event(union perf_event *event, in python_process_event()
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-bus-event_source-devices-events59 corresponding to the <term>) in the perf_event structure passed
/linux-4.4.14/arch/x86/ia32/
Dia32_aout.c46 struct perf_event *bp = current->thread.ptrace_bps[n]; in get_dr()
/linux-4.4.14/Documentation/powerpc/
Dpmu-ebb.txt20 just refers to a struct perf_event which has set the "EBB" flag in its
/linux-4.4.14/arch/powerpc/platforms/
DKconfig.cputype354 This enables the powerpc-specific perf_event back-end.
/linux-4.4.14/include/uapi/linux/
DKbuild322 header-y += perf_event.h
/linux-4.4.14/Documentation/ioctl/
Dioctl-number.txt83 '$' 00-0F linux/perf_counter.h, linux/perf_event.h
/linux-4.4.14/
DMAINTAINERS837 F: arch/arm*/include/asm/perf_event.h
8297 F: include/linux/perf_event.h
8298 F: include/uapi/linux/perf_event.h
8299 F: arch/*/kernel/perf_event*.c
8300 F: arch/*/kernel/*/perf_event*.c
8301 F: arch/*/kernel/*/*/perf_event*.c
8302 F: arch/*/include/asm/perf_event.h
/linux-4.4.14/init/
DKconfig1072 bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"