Home
last modified time | relevance | path

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

/linux-4.1.27/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.h164 struct perf_event;
215 int (*event_init) (struct perf_event *event);
221 void (*event_mapped) (struct perf_event *event); /*optional*/
222 void (*event_unmapped) (struct perf_event *event); /*optional*/
232 int (*add) (struct perf_event *event, int flags);
233 void (*del) (struct perf_event *event, int flags);
240 void (*start) (struct perf_event *event, int flags);
241 void (*stop) (struct perf_event *event, int flags);
246 void (*read) (struct perf_event *event);
274 int (*event_idx) (struct perf_event *event); /*optional */
[all …]
Dftrace_event.h313 struct perf_event *);
403 struct perf_event *p_event) \
604 struct perf_event;
608 extern int perf_trace_init(struct perf_event *event);
609 extern void perf_trace_destroy(struct perf_event *event);
610 extern int perf_trace_add(struct perf_event *event, int flags);
611 extern void perf_trace_del(struct perf_event *event, int flags);
612 extern int ftrace_profile_set_filter(struct perf_event *event, int event_id,
614 extern void ftrace_profile_free_filter(struct perf_event *event);
Dcgroup_subsys.h39 SUBSYS(perf_event)
/linux-4.1.27/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.c129 static bool is_kernel_event(struct perf_event *event) in is_kernel_event()
318 static u64 perf_event_time(struct perf_event *event);
332 static inline u64 perf_event_clock(struct perf_event *event) in perf_event_clock()
362 perf_cgroup_match(struct perf_event *event) in perf_cgroup_match()
385 static inline void perf_detach_cgroup(struct perf_event *event) in perf_detach_cgroup()
391 static inline int is_cgroup_event(struct perf_event *event) in is_cgroup_event()
396 static inline u64 perf_cgroup_event_time(struct perf_event *event) in perf_cgroup_event_time()
424 static inline void update_cgrp_time_from_event(struct perf_event *event) in update_cgrp_time_from_event()
586 static inline int perf_cgroup_connect(int fd, struct perf_event *event, in perf_cgroup_connect()
588 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,
88 struct perf_event *event);
90 perf_event__output_id_sample(struct perf_event *event,
193 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()
467 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.1.27/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.h489 struct perf_event;
512 struct perf_event *ptrace_bps[HBP_NUM];
Dkvm_host.h319 struct perf_event *perf_event; member
/linux-4.1.27/arch/arm/include/asm/
Dpmu.h71 struct perf_event *events[ARMPMU_MAX_HWEVENTS];
98 void (*enable)(struct perf_event *event);
99 void (*disable)(struct perf_event *event);
101 struct perf_event *event);
103 struct perf_event *event);
106 u32 (*read_counter)(struct perf_event *event);
107 void (*write_counter)(struct perf_event *event, u32 val);
113 int (*map_event)(struct perf_event *event);
129 u64 armpmu_event_update(struct perf_event *event);
131 int armpmu_event_set_period(struct perf_event *event);
[all …]
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.1.27/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.1.27/tools/perf/util/
Devent.h283 union perf_event { union
306 union perf_event *event,
326 union perf_event *event,
330 union perf_event *event,
334 union perf_event *event,
338 union perf_event *event,
342 union perf_event *event,
346 union perf_event *event,
350 union perf_event *event,
356 int perf_event__preprocess_sample(const union perf_event *event,
[all …]
Dtool.h7 union perf_event;
15 typedef int (*event_sample)(struct perf_tool *tool, union perf_event *event,
19 typedef int (*event_op)(struct perf_tool *tool, union perf_event *event,
23 union perf_event *event,
26 typedef int (*event_op2)(struct perf_tool *tool, union perf_event *event,
29 typedef int (*event_oe)(struct perf_tool *tool, union perf_event *event,
Dsession.c21 union perf_event *event,
199 union perf_event *event in process_event_synth_tracing_data_stub()
209 union perf_event *event __maybe_unused, in process_event_synth_attr_stub()
218 union perf_event *event __maybe_unused, in process_event_sample_stub()
228 union perf_event *event __maybe_unused, in process_event_stub()
237 union perf_event *event __maybe_unused, in process_build_id_stub()
245 union perf_event *event __maybe_unused, in process_finished_round_stub()
253 union perf_event *event,
257 union perf_event *event __maybe_unused, in process_id_index_stub()
303 static void swap_sample_id_all(union perf_event *event, void *data) in swap_sample_id_all()
[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()
Devent.c125 static int perf_event__prepare_comm(union perf_event *event, pid_t pid, in perf_event__prepare_comm()
163 union perf_event *event, pid_t pid, in perf_event__synthesize_comm()
179 union perf_event *event, in perf_event__synthesize_fork()
211 union perf_event *event, in perf_event__synthesize_mmap_events()
329 union perf_event *event = zalloc((sizeof(event->mmap) + in perf_event__synthesize_modules()
378 static int __event__synthesize_thread(union perf_event *comm_event, in __event__synthesize_thread()
379 union perf_event *mmap_event, in __event__synthesize_thread()
380 union perf_event *fork_event, in __event__synthesize_thread()
458 union perf_event *comm_event, *mmap_event, *fork_event; in perf_event__synthesize_thread_map()
527 union perf_event *comm_event, *mmap_event, *fork_event; in perf_event__synthesize_threads()
[all …]
Dmachine.h16 union perf_event;
76 int machine__process_comm_event(struct machine *machine, union perf_event *event,
78 int machine__process_exit_event(struct machine *machine, union perf_event *event,
80 int machine__process_fork_event(struct machine *machine, union perf_event *event,
82 int machine__process_lost_event(struct machine *machine, union perf_event *event,
84 int machine__process_mmap_event(struct machine *machine, union perf_event *event,
86 int machine__process_mmap2_event(struct machine *machine, union perf_event *event,
88 int machine__process_event(struct machine *machine, union perf_event *event,
Dsession.h49 union perf_event **event_ptr,
54 int perf_session__queue_event(struct perf_session *s, union perf_event *event,
121 union perf_event *event,
125 union perf_event *event,
Dheader.h131 int perf_event__process_attr(struct perf_tool *tool, union perf_event *event,
138 union perf_event *event,
146 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;
72 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,
Dbuild-id.h16 int build_id__mark_dso_hit(struct perf_tool *tool, union perf_event *event,
Devlist.h104 union perf_event *perf_evlist__mmap_read(struct perf_evlist *evlist, int idx);
166 int perf_evlist__parse_sample(struct perf_evlist *evlist, union perf_event *event,
Ddebug.h44 void trace_event(union perf_event *event);
Dtrace-event-scripting.c43 static void process_event_unsupported(union perf_event *event __maybe_unused, in process_event_unsupported()
Dmachine.c430 int machine__process_comm_event(struct machine *machine, union perf_event *event, in machine__process_comm_event()
454 union perf_event *event, struct perf_sample *sample __maybe_unused) in machine__process_lost_event()
1044 union perf_event *event) in machine__set_kernel_mmap_len()
1074 union perf_event *event) in machine__process_kernel_mmap_event()
1160 union perf_event *event, in machine__process_mmap2_event()
1210 int machine__process_mmap_event(struct machine *machine, union perf_event *event, in machine__process_mmap_event()
1272 int machine__process_fork_event(struct machine *machine, union perf_event *event, in machine__process_fork_event()
1300 int machine__process_exit_event(struct machine *machine, union perf_event *event, in machine__process_exit_event()
1316 int machine__process_event(struct machine *machine, union perf_event *event, in machine__process_event()
Devlist.c581 union perf_event *event, u64 *id) in perf_evlist__event2id()
602 union perf_event *event) in perf_evlist__event2evsel()
634 union perf_event *perf_evlist__mmap_read(struct perf_evlist *evlist, int idx) in perf_evlist__mmap_read()
640 union perf_event *event = NULL; in perf_evlist__mmap_read()
665 event = (union perf_event *)&data[old & md->mask]; in perf_evlist__mmap_read()
685 event = (union perf_event *) md->event_copy; in perf_evlist__mmap_read()
1449 int perf_evlist__parse_sample(struct perf_evlist *evlist, union perf_event *event, in perf_evlist__parse_sample()
Ddebug.c108 void trace_event(union perf_event *event) in trace_event()
Dbuild-id.c25 union perf_event *event, in build_id__mark_dso_hit()
50 union perf_event *event, in perf_event__exit_del_thread()
Dpython.c51 union perf_event event;
347 static PyObject *pyrf_event__new(union perf_event *event) in pyrf_event__new()
804 union perf_event *event; in pyrf_evlist__read_on_cpu()
Devsel.h275 int perf_evsel__parse_sample(struct perf_evsel *evsel, union perf_event *event,
Dheader.c2570 union perf_event *ev; in perf_event__synthesize_attr()
2620 union perf_event *event, in perf_event__process_attr()
2663 union perf_event ev; in perf_event__synthesize_tracing_data()
2706 union perf_event *event, in perf_event__process_tracing_data()
2750 union perf_event ev; in perf_event__synthesize_build_id()
2774 union perf_event *event, in perf_event__process_build_id()
Ddb-export.c283 int db_export__sample(struct db_export *dbe, union perf_event *event, in db_export__sample()
Devsel.c1336 const union perf_event *event, in perf_evsel__parse_id_sample()
1411 int perf_evsel__parse_sample(struct perf_evsel *evsel, union perf_event *event, in perf_evsel__parse_sample()
1783 int perf_event__synthesize_sample(union perf_event *event, u64 type, in perf_event__synthesize_sample()
Ddata-convert-bt.c385 union perf_event *_event __maybe_unused, in process_sample_event()
/linux-4.1.27/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];
274 struct perf_event *event) in uncore_disable_event()
280 struct perf_event *event) in uncore_enable_event()
[all …]
Dperf_event.h83 struct perf_event *owners[X86_PMC_IDX_MAX];
167 struct perf_event *events[X86_PMC_IDX_MAX]; /* in counter order */
180 struct perf_event *event_list[X86_PMC_IDX_MAX]; /* in enabled order */
501 void (*enable)(struct perf_event *);
502 void (*disable)(struct perf_event *);
503 int (*hw_config)(struct perf_event *event);
525 struct perf_event *event);
528 struct perf_event *event);
540 unsigned (*limit_period)(struct perf_event *event, unsigned l);
582 void (*pebs_aliases)(struct perf_event *event);
[all …]
Dperf_event_intel_cqm.c247 static bool __match_event(struct perf_event *a, struct perf_event *b) in __match_event()
279 static inline struct perf_cgroup *event_to_cgroup(struct perf_event *event) in event_to_cgroup()
302 static bool __conflict_event(struct perf_event *a, struct perf_event *b) in __conflict_event()
385 intel_cqm_xchg_rmid(struct perf_event *group, unsigned int rmid) in intel_cqm_xchg_rmid()
387 struct perf_event *event; in intel_cqm_xchg_rmid()
456 struct perf_event *leader, *event; in intel_cqm_sched_in_event()
460 leader = list_first_entry(&cache_groups, struct perf_event, in intel_cqm_sched_in_event()
598 static void __intel_cqm_pick_and_rotate(struct perf_event *next) in __intel_cqm_pick_and_rotate()
600 struct perf_event *rotor; in __intel_cqm_pick_and_rotate()
605 rotor = list_first_entry(&cache_groups, struct perf_event, in __intel_cqm_pick_and_rotate()
[all …]
Dperf_event_intel_uncore_snb.c68 static void snb_uncore_msr_enable_event(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_msr_enable_event()
78 static void snb_uncore_msr_disable_event(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_msr_disable_event()
219 static void snb_uncore_imc_enable_event(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_imc_enable_event()
222 static void snb_uncore_imc_disable_event(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_imc_disable_event()
225 static u64 snb_uncore_imc_read_counter(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_imc_read_counter()
237 static int snb_uncore_imc_event_init(struct perf_event *event) in snb_uncore_imc_event_init()
314 static int snb_uncore_imc_hw_config(struct intel_uncore_box *box, struct perf_event *event) in snb_uncore_imc_hw_config()
319 static void snb_uncore_imc_event_start(struct perf_event *event, int flags) in snb_uncore_imc_event_start()
339 static void snb_uncore_imc_event_stop(struct perf_event *event, int flags) in snb_uncore_imc_event_stop()
366 static int snb_uncore_imc_event_add(struct perf_event *event, int flags) in snb_uncore_imc_event_add()
[all …]
Dperf_event_intel_uncore.c31 struct intel_uncore_pmu *uncore_event_to_pmu(struct perf_event *event) in uncore_event_to_pmu()
61 struct intel_uncore_box *uncore_event_to_box(struct perf_event *event) in uncore_event_to_box()
70 u64 uncore_msr_read_counter(struct intel_uncore_box *box, struct perf_event *event) in uncore_msr_read_counter()
83 uncore_get_constraint(struct intel_uncore_box *box, struct perf_event *event) in uncore_get_constraint()
120 void uncore_put_constraint(struct intel_uncore_box *box, struct perf_event *event) in uncore_put_constraint()
156 static void uncore_assign_hw_event(struct intel_uncore_box *box, struct perf_event *event, int idx) in uncore_assign_hw_event()
173 void uncore_perf_event_update(struct intel_uncore_box *box, struct perf_event *event) in uncore_perf_event_update()
204 struct perf_event *event; in uncore_pmu_hrtimer()
283 static int uncore_pmu_event_init(struct perf_event *event);
285 static bool is_uncore_event(struct perf_event *event) in is_uncore_event()
[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()
271 static void hw_perf_event_destroy(struct perf_event *event) in hw_perf_event_destroy()
276 void hw_perf_lbr_event_destroy(struct perf_event *event) in hw_perf_lbr_event_destroy()
290 set_ext_hw_attr(struct hw_perf_event *hwc, struct perf_event *event) in set_ext_hw_attr()
382 int x86_setup_perfctr(struct perf_event *event) in x86_setup_perfctr()
445 static inline int precise_br_compat(struct perf_event *event) in precise_br_compat()
469 int x86_pmu_hw_config(struct perf_event *event) in x86_pmu_hw_config()
549 static int __x86_pmu_event_init(struct perf_event *event) in __x86_pmu_event_init()
625 static inline int is_x86_event(struct perf_event *event) in is_x86_event()
[all …]
Dperf_event_intel_bts.c219 static void __bts_event_start(struct perf_event *event) in __bts_event_start()
248 static void bts_event_start(struct perf_event *event, int flags) in bts_event_start()
258 static void __bts_event_stop(struct perf_event *event) in __bts_event_stop()
272 static void bts_event_stop(struct perf_event *event, int flags) in bts_event_stop()
382 struct perf_event *event = bts->handle.event; in intel_bts_interrupt()
420 static void bts_event_del(struct perf_event *event, int mode) in bts_event_del()
443 static int bts_event_add(struct perf_event *event, int mode) in bts_event_add()
484 static void bts_event_destroy(struct perf_event *event) in bts_event_destroy()
490 static int bts_event_init(struct perf_event *event) in bts_event_init()
511 static void bts_event_read(struct perf_event *event) in bts_event_read()
Dperf_event_intel_rapl.c139 static inline u64 rapl_read_counter(struct perf_event *event) in rapl_read_counter()
170 static u64 rapl_event_update(struct perf_event *event) in rapl_event_update()
220 struct perf_event *event; in rapl_hrtimer_handle()
248 struct perf_event *event) in __rapl_pmu_event_start()
264 static void rapl_pmu_event_start(struct perf_event *event, int mode) in rapl_pmu_event_start()
274 static void rapl_pmu_event_stop(struct perf_event *event, int mode) in rapl_pmu_event_stop()
308 static int rapl_pmu_event_add(struct perf_event *event, int mode) in rapl_pmu_event_add()
326 static void rapl_pmu_event_del(struct perf_event *event, int flags) in rapl_pmu_event_del()
331 static int rapl_pmu_event_init(struct perf_event *event) in rapl_pmu_event_init()
389 static void rapl_pmu_event_read(struct perf_event *event) in rapl_pmu_event_read()
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_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_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_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_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.c175 static bool pt_event_valid(struct perf_event *event) in pt_event_valid()
199 static void pt_config(struct perf_event *event) in pt_config()
868 struct perf_event *event = pt->handle.event; in intel_pt_interrupt()
923 static void pt_event_start(struct perf_event *event, int mode) in pt_event_start()
942 static void pt_event_stop(struct perf_event *event, int mode) in pt_event_stop()
976 static void pt_event_del(struct perf_event *event, int mode) in pt_event_del()
995 static int pt_event_add(struct perf_event *event, int mode) in pt_event_add()
1036 static void pt_event_read(struct perf_event *event) in pt_event_read()
1040 static void pt_event_destroy(struct perf_event *event) in pt_event_destroy()
1045 static int pt_event_init(struct perf_event *event) in pt_event_init()
Dperf_event_intel.c1279 struct perf_event *event = in __intel_pmu_enable_all()
1318 struct perf_event *event; in intel_pmu_nhm_workaround()
1402 static inline bool event_is_checkpointed(struct perf_event *event) in event_is_checkpointed()
1407 static void intel_pmu_disable_event(struct perf_event *event) in intel_pmu_disable_event()
1471 static void intel_pmu_enable_event(struct perf_event *event) in intel_pmu_enable_event()
1513 int intel_pmu_save_and_restart(struct perf_event *event) in intel_pmu_save_and_restart()
1646 struct perf_event *event = cpuc->events[bit]; in intel_pmu_handle_irq()
1685 intel_bts_constraints(struct perf_event *event) in intel_bts_constraints()
1716 static void intel_fixup_er(struct perf_event *event, int idx) in intel_fixup_er()
1740 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.c111 static u64 precise_datala_hsw(struct perf_event *event, u64 status) in precise_datala_hsw()
502 struct perf_event *event = cpuc->events[INTEL_PMC_IDX_FIXED_BTS]; in intel_pmu_drain_bts_buffer()
668 struct event_constraint *intel_pebs_constraints(struct perf_event *event) in intel_pebs_constraints()
687 void intel_pmu_pebs_enable(struct perf_event *event) in intel_pmu_pebs_enable()
702 void intel_pmu_pebs_disable(struct perf_event *event) in intel_pmu_pebs_disable()
849 static void __intel_pmu_pebs_event(struct perf_event *event, in __intel_pmu_pebs_event()
972 struct perf_event *event = cpuc->events[0]; /* PMC0 only */ in intel_pmu_drain_pebs_core()
1013 struct perf_event *event = NULL; 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.c307 void intel_pmu_lbr_enable(struct perf_event *event) in intel_pmu_lbr_enable()
335 void intel_pmu_lbr_disable(struct perf_event *event) in intel_pmu_lbr_disable()
480 static int intel_pmu_setup_sw_lbr_filter(struct perf_event *event) in intel_pmu_setup_sw_lbr_filter()
539 static int intel_pmu_setup_hw_lbr_filter(struct perf_event *event) in intel_pmu_setup_hw_lbr_filter()
570 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.1.27/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.1.27/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 …]
Dtrace_uprobe.c1003 struct perf_event *event; in __uprobe_perf_filter()
1017 uprobe_filter_event(struct trace_uprobe *tu, struct perf_event *event) in uprobe_filter_event()
1022 static int uprobe_perf_close(struct trace_uprobe *tu, struct perf_event *event) in uprobe_perf_close()
1044 static int uprobe_perf_open(struct trace_uprobe *tu, struct perf_event *event) in uprobe_perf_open()
Dtrace_events_filter.c2075 void ftrace_profile_free_filter(struct perf_event *event) in ftrace_profile_free_filter()
2205 static int ftrace_function_set_filter(struct perf_event *event, in ftrace_function_set_filter()
2218 static int ftrace_function_set_filter(struct perf_event *event, in ftrace_function_set_filter()
2225 int ftrace_profile_set_filter(struct perf_event *event, int event_id, in ftrace_profile_set_filter()
/linux-4.1.27/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.c18 union perf_event *event, in mmap_handler()
27 union perf_event event; in init_live_machine()
Dcode-reading.c246 union perf_event *event, struct state *state) in process_sample_event()
269 union perf_event *event, struct state *state) in process_event()
294 union perf_event *event; in process_events()
Dtask-exit.c37 union perf_event *event; in test__task_exit()
Dsw-clock.c26 union perf_event *event; in __test__sw_clock_freq()
Dopen-syscall-tp-fields.c75 union perf_event *event; in test__syscall_open_tp_fields()
Dhists_link.c79 const union perf_event event = { in add_hist_entries()
103 const union perf_event event = { in add_hist_entries()
Dkeep-tracking.c28 union perf_event *event; in find_comm()
Dmmap-basic.c21 union perf_event *event; in test__basic_mmap()
Dperf-time-to-tsc.c56 union perf_event *event; in test__perf_time_to_tsc()
Dhists_common.c102 union perf_event fake_mmap_event = { in setup_fake_machine()
Dhists_filter.c60 const union perf_event event = { in add_hist_entries()
Dperf-record.c158 union perf_event *event; in test__PERF_RECORD()
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.1.27/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.1.27/tools/perf/
Dbuiltin-inject.c38 union perf_event event[0];
42 union perf_event *event) in perf_event__repipe_synth()
57 union perf_event *event, in perf_event__repipe_oe_synth()
64 union perf_event *event, in perf_event__repipe_op2_synth()
72 union perf_event *event, in perf_event__repipe_attr()
90 union perf_event *event, in perf_event__repipe()
98 union perf_event *event,
104 union perf_event *event, in perf_event__repipe_sample()
120 union perf_event *event, in perf_event__repipe_mmap()
133 union perf_event *event, in perf_event__repipe_mmap2()
[all …]
DMANIFEST31 include/linux/perf_event.h
47 include/uapi/linux/perf_event.h
Dbuiltin-script.c379 static void print_sample_addr(union perf_event *event, in print_sample_addr()
408 static void print_sample_bts(union perf_event *event, in print_sample_bts()
448 static void process_event(union perf_event *event, struct perf_sample *sample, in process_event()
546 union perf_event *event, in process_sample_event()
588 static int process_attr(struct perf_tool *tool, union perf_event *event, in process_attr()
617 union perf_event *event, in process_comm_event()
651 union perf_event *event, in process_fork_event()
681 union perf_event *event, in process_exit_event()
712 union perf_event *event, in process_mmap_event()
743 union perf_event *event, in process_mmap2_event()
Dbuiltin-mem.c62 union perf_event *event, in dump_raw_samples()
111 union perf_event *event, in process_sample_event()
Dbuiltin-trace.c1398 union perf_event *event, struct perf_sample *sample) in trace__process_event()
1416 union perf_event *event, in trace__tool_process()
1612 union perf_event *event,
1708 union perf_event *event __maybe_unused, in trace__sys_enter()
1765 union perf_event *event __maybe_unused, in trace__sys_exit()
1843 union perf_event *event __maybe_unused, in trace__vfs_getname()
1851 union perf_event *event __maybe_unused, in trace__sched_stat_runtime()
1879 union perf_event *event __maybe_unused, in trace__event_handler()
1919 union perf_event *event, in trace__pgfault()
1987 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()
554 union perf_event *event, in process_sample_event()
Dbuiltin-report.c132 union perf_event *event, in process_sample_event()
178 union perf_event *event, in process_read_event()
Dbuiltin-annotate.c80 union perf_event *event, in process_sample_event()
Dbuiltin-record.c62 union perf_event *event, in process_synthesized_event()
195 union perf_event *event, in process_sample_event()
Dbuiltin-kvm.c628 union perf_event *event __maybe_unused, in process_lost_event()
649 union perf_event *event, in process_sample_event()
720 union perf_event *event; in perf_kvm__mmap_read_idx()
Dbuiltin-sched.c115 int (*fork_event)(struct perf_sched *sched, union perf_event *event,
760 union perf_event *event, in replay_fork_event()
1427 union perf_event *event, in perf_sched__process_fork_event()
1462 union perf_event *event __maybe_unused, in perf_sched__process_tracepoint_sample()
Dbuiltin-top.c694 const union perf_event *event, in perf_event__process_sample()
804 union perf_event *event; in perf_top__mmap_read_idx()
DMakefile.perf430 TAG_FILES= ../../include/uapi/linux/perf_event.h
Dbuiltin-lock.c808 union perf_event *event, in process_sample_event()
Dbuiltin-kmem.c476 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
/linux-4.1.27/arch/arm64/include/asm/
Dhw_breakpoint.h106 struct perf_event;
111 extern int arch_check_bp_in_kernelspace(struct perf_event *bp);
112 extern int arch_validate_hwbkpt_settings(struct perf_event *bp);
116 extern int arch_install_hw_breakpoint(struct perf_event *bp);
117 extern void arch_uninstall_hw_breakpoint(struct perf_event *bp);
118 extern void hw_breakpoint_pmu_read(struct perf_event *bp);
Dpmu.h29 struct perf_event **events;
61 int (*map_event)(struct perf_event *event);
74 u64 armpmu_event_update(struct perf_event *event,
78 int armpmu_event_set_period(struct perf_event *event,
Dprocessor.h59 struct perf_event *hbp_break[ARM_MAX_BRP];
60 struct perf_event *hbp_watch[ARM_MAX_WRP];
/linux-4.1.27/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.1.27/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.1.27/arch/x86/kernel/
Dhw_breakpoint.c57 static DEFINE_PER_CPU(struct perf_event *, bp_per_reg[HBP_NUM]);
104 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint()
111 struct perf_event **slot = this_cpu_ptr(&bp_per_reg[i]); in arch_install_hw_breakpoint()
144 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint()
151 struct perf_event **slot = this_cpu_ptr(&bp_per_reg[i]); in arch_uninstall_hw_breakpoint()
173 int arch_check_bp_in_kernelspace(struct perf_event *bp) in arch_check_bp_in_kernelspace()
231 static int arch_build_bp_info(struct perf_event *bp) in arch_build_bp_info()
293 int arch_validate_hwbkpt_settings(struct perf_event *bp) in arch_validate_hwbkpt_settings()
347 struct perf_event *bp; in aout_dump_debugregs()
418 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()
641 static void kgdb_hw_overflow_handler(struct perf_event *event, in kgdb_hw_overflow_handler()
656 struct perf_event **pevent; in kgdb_arch_late()
Dptrace.c558 static void ptrace_triggered(struct perf_event *bp, in ptrace_triggered()
582 static unsigned long ptrace_get_dr7(struct perf_event *bp[]) in ptrace_get_dr7()
613 static struct perf_event *
631 static int ptrace_modify_breakpoint(struct perf_event *bp, int len, int type, in ptrace_modify_breakpoint()
662 struct perf_event *bp = thread->ptrace_bps[i]; in ptrace_write_dr7()
704 struct perf_event *bp = thread->ptrace_bps[n]; in ptrace_get_debugreg()
720 struct perf_event *bp = t->ptrace_bps[nr]; in ptrace_set_breakpoint_addr()
/linux-4.1.27/arch/arm/kernel/
Dperf_event.c71 armpmu_map_event(struct perf_event *event, in armpmu_map_event()
97 int armpmu_event_set_period(struct perf_event *event) in armpmu_event_set_period()
137 u64 armpmu_event_update(struct perf_event *event) in armpmu_event_update()
160 armpmu_read(struct perf_event *event) in armpmu_read()
166 armpmu_stop(struct perf_event *event, int flags) in armpmu_stop()
182 static void armpmu_start(struct perf_event *event, int flags) in armpmu_start()
207 armpmu_del(struct perf_event *event, int flags) in armpmu_del()
224 armpmu_add(struct perf_event *event, int flags) in armpmu_add()
263 struct perf_event *event) in validate_event()
289 validate_group(struct perf_event *event) in validate_group()
[all …]
Dperf_event_xscale.c166 struct perf_event *event = cpuc->events[idx]; in xscale1pmu_handle_irq()
196 static void xscale1pmu_enable_event(struct perf_event *event) in xscale1pmu_enable_event()
232 static void xscale1pmu_disable_event(struct perf_event *event) in xscale1pmu_disable_event()
268 struct perf_event *event) in xscale1pmu_get_event_idx()
311 static inline u32 xscale1pmu_read_counter(struct perf_event *event) in xscale1pmu_read_counter()
332 static inline void xscale1pmu_write_counter(struct perf_event *event, u32 val) in xscale1pmu_write_counter()
350 static int xscale_map_event(struct perf_event *event) in xscale_map_event()
507 struct perf_event *event = cpuc->events[idx]; in xscale2pmu_handle_irq()
537 static void xscale2pmu_enable_event(struct perf_event *event) in xscale2pmu_enable_event()
583 static void xscale2pmu_disable_event(struct perf_event *event) in xscale2pmu_disable_event()
[all …]
Dhw_breakpoint.c42 static DEFINE_PER_CPU(struct perf_event *, bp_on_reg[ARM_MAX_BRP]);
45 static DEFINE_PER_CPU(struct perf_event *, wp_on_reg[ARM_MAX_WRP]);
334 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint()
337 struct perf_event **slot, **slots; in arch_install_hw_breakpoint()
391 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint()
394 struct perf_event **slot, **slots; in arch_uninstall_hw_breakpoint()
460 int arch_check_bp_in_kernelspace(struct perf_event *bp) in arch_check_bp_in_kernelspace()
522 static int arch_build_bp_info(struct perf_event *bp) in arch_build_bp_info()
595 int arch_validate_hwbkpt_settings(struct perf_event *bp) in arch_validate_hwbkpt_settings()
671 static void enable_single_step(struct perf_event *bp, u32 addr) in enable_single_step()
[all …]
Dperf_event_v6.c227 static inline u32 armv6pmu_read_counter(struct perf_event *event) in armv6pmu_read_counter()
245 static inline void armv6pmu_write_counter(struct perf_event *event, u32 value) in armv6pmu_write_counter()
260 static void armv6pmu_enable_event(struct perf_event *event) in armv6pmu_enable_event()
320 struct perf_event *event = cpuc->events[idx]; in armv6pmu_handle_irq()
382 struct perf_event *event) in armv6pmu_get_event_idx()
407 static void armv6pmu_disable_event(struct perf_event *event) in armv6pmu_disable_event()
442 static void armv6mpcore_pmu_disable_event(struct perf_event *event) in armv6mpcore_pmu_disable_event()
473 static int armv6_map_event(struct perf_event *event) in armv6_map_event()
523 static int armv6mpcore_map_event(struct perf_event *event) in armv6mpcore_map_event()
Dperf_event_v7.c634 static inline u32 armv7pmu_read_counter(struct perf_event *event) in armv7pmu_read_counter()
654 static inline void armv7pmu_write_counter(struct perf_event *event, u32 value) in armv7pmu_write_counter()
759 static void armv7pmu_enable_event(struct perf_event *event) in armv7pmu_enable_event()
805 static void armv7pmu_disable_event(struct perf_event *event) in armv7pmu_disable_event()
863 struct perf_event *event = cpuc->events[idx]; in armv7pmu_handle_irq()
922 struct perf_event *event) in armv7pmu_get_event_idx()
991 static int armv7_a8_map_event(struct perf_event *event) in armv7_a8_map_event()
997 static int armv7_a9_map_event(struct perf_event *event) in armv7_a9_map_event()
1003 static int armv7_a5_map_event(struct perf_event *event) in armv7_a5_map_event()
1009 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()
DMakefile73 obj-$(CONFIG_HW_PERF_EVENTS) += perf_event.o perf_event_cpu.o
/linux-4.1.27/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]);
193 static int hw_breakpoint_slot_setup(struct perf_event **slots, int max_slots, in hw_breakpoint_slot_setup()
194 struct perf_event *bp, in hw_breakpoint_slot_setup()
198 struct perf_event **slot; in hw_breakpoint_slot_setup()
227 static int hw_breakpoint_control(struct perf_event *bp, in hw_breakpoint_control()
231 struct perf_event **slots; in hw_breakpoint_control()
293 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint()
298 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint()
328 int arch_check_bp_in_kernelspace(struct perf_event *bp) in arch_check_bp_in_kernelspace()
[all …]
Dperf_event.c47 static DEFINE_PER_CPU(struct perf_event * [ARMPMU_MAX_HWEVENTS], hw_events);
128 static int map_cpu_event(struct perf_event *event, in map_cpu_event()
151 armpmu_event_set_period(struct perf_event *event, in armpmu_event_set_period()
193 armpmu_event_update(struct perf_event *event, in armpmu_event_update()
217 armpmu_read(struct perf_event *event) in armpmu_read()
229 armpmu_stop(struct perf_event *event, int flags) in armpmu_stop()
247 armpmu_start(struct perf_event *event, int flags) in armpmu_start()
272 armpmu_del(struct perf_event *event, int flags) in armpmu_del()
289 armpmu_add(struct perf_event *event, int flags) in armpmu_add()
328 struct perf_event *event) in validate_event()
[all …]
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 …]
DMakefile29 arm64-obj-$(CONFIG_HW_PERF_EVENTS) += perf_event.o
/linux-4.1.27/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.c1068 static int add_event_to_24x7_request(struct perf_event *event, in add_event_to_24x7_request()
1100 static unsigned long single_24x7_request(struct perf_event *event, u64 *count) in single_24x7_request()
1136 static int h_24x7_event_init(struct perf_event *event) in h_24x7_event_init()
1211 static u64 h_24x7_get_value(struct perf_event *event) in h_24x7_get_value()
1223 static void update_event_count(struct perf_event *event, u64 now) in update_event_count()
1231 static void h_24x7_event_read(struct perf_event *event) in h_24x7_event_read()
1239 static void h_24x7_event_start(struct perf_event *event, int flags) in h_24x7_event_start()
1245 static void h_24x7_event_stop(struct perf_event *event, int flags) in h_24x7_event_stop()
1250 static int h_24x7_event_add(struct perf_event *event, int flags) in h_24x7_event_add()
Dhv-common.h40 static u64 event_get_##name(struct perf_event *event) \
Dmpc7450-pmu.c265 struct perf_event *pevents[]) in mpc7450_compute_mmcr()
Dpower7-pmu.c248 unsigned int hwc[], unsigned long mmcr[], struct perf_event *pevents[]) in power7_compute_mmcr()
Dpower6-pmu.c178 unsigned int hwc[], unsigned long mmcr[], struct perf_event *pevents[]) in p6_compute_mmcr()
Dppc970-pmu.c260 unsigned int hwc[], unsigned long mmcr[], struct perf_event *pevents[]) in p970_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.1.27/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.1.27/arch/x86/kvm/
Dpmu.c106 static void kvm_perf_overflow(struct perf_event *perf_event, in kvm_perf_overflow() argument
110 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_perf_overflow()
118 static void kvm_perf_overflow_intr(struct perf_event *perf_event, in kvm_perf_overflow_intr() argument
121 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_perf_overflow_intr()
147 if (pmc->perf_event) in read_pmc()
148 counter += perf_event_read_value(pmc->perf_event, in read_pmc()
158 if (pmc->perf_event) { in stop_counter()
160 perf_event_release_kernel(pmc->perf_event); in stop_counter()
161 pmc->perf_event = NULL; in stop_counter()
169 struct perf_event *event; in reprogram_counter()
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/arch/s390/kernel/
Dperf_cpum_cf.c292 static void hw_perf_event_destroy(struct perf_event *event) in hw_perf_event_destroy()
323 static int __hw_perf_event_init(struct perf_event *event) in __hw_perf_event_init()
406 static int cpumf_pmu_event_init(struct perf_event *event) in cpumf_pmu_event_init()
426 static int hw_perf_event_reset(struct perf_event *event) in hw_perf_event_reset()
449 static int hw_perf_event_update(struct perf_event *event) in hw_perf_event_update()
468 static void cpumf_pmu_read(struct perf_event *event) in cpumf_pmu_read()
476 static void cpumf_pmu_start(struct perf_event *event, int flags) in cpumf_pmu_start()
507 static void cpumf_pmu_stop(struct perf_event *event, int flags) in cpumf_pmu_stop()
528 static int cpumf_pmu_add(struct perf_event *event, int flags) in cpumf_pmu_add()
552 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()
1044 static void perf_event_count_update(struct perf_event *event, u64 count) in perf_event_count_update()
1140 static void hw_collect_samples(struct perf_event *event, unsigned long *sdbt, in hw_collect_samples()
1215 static void hw_perf_event_update(struct perf_event *event, int flush_all) in hw_perf_event_update()
1299 static void cpumsf_pmu_read(struct perf_event *event) in cpumsf_pmu_read()
[all …]
DMakefile55 obj-$(CONFIG_PERF_EVENTS) += perf_event.o perf_cpum_cf.o perf_cpum_sf.o
/linux-4.1.27/drivers/bus/
Darm-cci.c103 struct perf_event *events[CCI_PMU_MAX_HW_EVENTS];
276 static int pmu_get_event_idx(struct cci_pmu_hw_events *hw, struct perf_event *event) in pmu_get_event_idx()
298 static int pmu_map_event(struct perf_event *event) in pmu_map_event()
361 static u32 pmu_read_counter(struct perf_event *event) in pmu_read_counter()
377 static void pmu_write_counter(struct perf_event *event, u32 value) in pmu_write_counter()
389 static u64 pmu_event_update(struct perf_event *event) in pmu_event_update()
407 static void pmu_read(struct perf_event *event) in pmu_read()
412 void pmu_event_set_period(struct perf_event *event) in pmu_event_set_period()
440 struct perf_event *event = events->events[idx]; in pmu_handle_irq()
479 static void hw_perf_event_destroy(struct perf_event *event) in hw_perf_event_destroy()
[all …]
Darm-ccn.c160 struct perf_event *event;
590 static void arm_ccn_pmu_event_destroy(struct perf_event *event) in arm_ccn_pmu_event_destroy()
614 static int arm_ccn_pmu_event_init(struct perf_event *event) in arm_ccn_pmu_event_init()
784 static void arm_ccn_pmu_event_update(struct perf_event *event) in arm_ccn_pmu_event_update()
800 static void arm_ccn_pmu_xp_dt_config(struct perf_event *event, int enable) in arm_ccn_pmu_xp_dt_config()
829 static void arm_ccn_pmu_event_start(struct perf_event *event, int flags) in arm_ccn_pmu_event_start()
846 static void arm_ccn_pmu_event_stop(struct perf_event *event, int flags) in arm_ccn_pmu_event_stop()
871 static void arm_ccn_pmu_xp_watchpoint_config(struct perf_event *event) in arm_ccn_pmu_xp_watchpoint_config()
919 static void arm_ccn_pmu_xp_event_config(struct perf_event *event) in arm_ccn_pmu_xp_event_config()
940 static void arm_ccn_pmu_node_event_config(struct perf_event *event) in arm_ccn_pmu_node_event_config()
[all …]
/linux-4.1.27/arch/arc/kernel/
Dperf_event.c88 static void arc_perf_event_update(struct perf_event *event, in arc_perf_event_update()
107 static void arc_pmu_read(struct perf_event *event) in arc_pmu_read()
140 static int arc_pmu_event_init(struct perf_event *event) in arc_pmu_event_init()
188 static void arc_pmu_start(struct perf_event *event, int flags) in arc_pmu_start()
206 static void arc_pmu_stop(struct perf_event *event, int flags) in arc_pmu_stop()
228 static void arc_pmu_del(struct perf_event *event, int flags) in arc_pmu_del()
237 static int arc_pmu_add(struct perf_event *event, int flags) in arc_pmu_add()
DMakefile22 obj-$(CONFIG_PERF_EVENTS) += perf_event.o
/linux-4.1.27/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 …]
DMakefile115 pc--$(CONFIG_PERF_EVENTS) := perf_event.o
/linux-4.1.27/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.1.27/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()
288 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.1.27/kernel/
Dwatchdog.c77 static DEFINE_PER_CPU(struct perf_event *, watchdog_ev);
274 static void watchdog_overflow_callback(struct perf_event *event, in watchdog_overflow_callback()
522 struct perf_event *event = per_cpu(watchdog_ev, cpu); in watchdog_nmi_enable()
594 struct perf_event *event = per_cpu(watchdog_ev, cpu); in watchdog_nmi_disable()
/linux-4.1.27/arch/powerpc/include/uapi/asm/
DKbuild22 header-y += perf_event.h
/linux-4.1.27/arch/sh/kernel/cpu/sh4a/
DMakefile51 obj-$(CONFIG_PERF_EVENTS) += perf_event.o
/linux-4.1.27/tools/perf/util/scripting-engines/
Dtrace-event-perl.c336 static void perl_process_event_generic(union perf_event *event, in perl_process_event_generic()
360 static void perl_process_event(union perf_event *event, in perl_process_event()
Dtrace-event-python.c841 static void python_process_event(union perf_event *event, in python_process_event()
/linux-4.1.27/Documentation/ABI/testing/
Dsysfs-bus-event_source-devices-events59 corresponding to the <term>) in the perf_event structure passed
/linux-4.1.27/arch/x86/ia32/
Dia32_aout.c46 struct perf_event *bp = current->thread.ptrace_bps[n]; in get_dr()
/linux-4.1.27/Documentation/powerpc/
Dpmu-ebb.txt20 just refers to a struct perf_event which has set the "EBB" flag in its
/linux-4.1.27/arch/powerpc/platforms/
DKconfig.cputype365 This enables the powerpc-specific perf_event back-end.
/linux-4.1.27/include/uapi/linux/
DKbuild315 header-y += perf_event.h
/linux-4.1.27/Documentation/ioctl/
Dioctl-number.txt83 '$' 00-0F linux/perf_counter.h, linux/perf_event.h
/linux-4.1.27/
DMAINTAINERS802 F: arch/arm/kernel/perf_event*
7644 F: include/linux/perf_event.h
7645 F: include/uapi/linux/perf_event.h
7646 F: arch/*/kernel/perf_event*.c
7647 F: arch/*/kernel/*/perf_event*.c
7648 F: arch/*/kernel/*/*/perf_event*.c
7649 F: arch/*/include/asm/perf_event.h
/linux-4.1.27/init/
DKconfig1067 bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"