Lines Matching refs:perf_event

273 struct perf_event;
350 int (*event_init) (struct perf_event *event);
356 void (*event_mapped) (struct perf_event *event, struct mm_struct *mm); /* optional */
357 void (*event_unmapped) (struct perf_event *event, struct mm_struct *mm); /* optional */
385 int (*add) (struct perf_event *event, int flags);
386 void (*del) (struct perf_event *event, int flags);
406 void (*start) (struct perf_event *event, int flags);
407 void (*stop) (struct perf_event *event, int flags);
415 void (*read) (struct perf_event *event);
450 int (*event_idx) (struct perf_event *event); /*optional */
476 void *(*setup_aux) (struct perf_event *event, void **pages,
494 long (*snapshot_aux) (struct perf_event *event,
520 void (*addr_filters_sync) (struct perf_event *event);
530 int (*aux_output_match) (struct perf_event *event);
542 int (*check_period) (struct perf_event *event, u64 value); /* optional */
605 typedef void (*perf_overflow_handler_t)(struct perf_event *,
671 struct perf_event { struct
708 struct perf_event *group_leader; argument
759 struct perf_event *parent; argument
799 struct perf_event *aux_event; argument
801 void (*destroy)(struct perf_event *); argument
1005 struct perf_event **heap;
1006 struct perf_event *heap_default[2];
1010 struct perf_event *event;
1025 struct perf_event *event;
1066 struct perf_event *event);
1073 extern void perf_event_itrace_started(struct perf_event *event);
1087 extern const struct perf_event *perf_get_event(struct file *file);
1088 extern const struct perf_event_attr *perf_event_attrs(struct perf_event *event);
1099 extern int perf_event_refresh(struct perf_event *event, int refresh);
1100 extern void perf_event_update_userpage(struct perf_event *event);
1101 extern int perf_event_release_kernel(struct perf_event *event);
1102 extern struct perf_event *
1110 int perf_event_read_local(struct perf_event *event, u64 *value,
1112 extern u64 perf_event_read_value(struct perf_event *event,
1115 extern struct perf_callchain_entry *perf_callchain(struct perf_event *event, struct pt_regs *regs);
1117 static inline bool branch_sample_no_flags(const struct perf_event *event) in branch_sample_no_flags()
1122 static inline bool branch_sample_no_cycles(const struct perf_event *event) in branch_sample_no_cycles()
1127 static inline bool branch_sample_type(const struct perf_event *event) in branch_sample_type()
1132 static inline bool branch_sample_hw_index(const struct perf_event *event) in branch_sample_hw_index()
1137 static inline bool branch_sample_priv(const struct perf_event *event) in branch_sample_priv()
1216 struct perf_event *event, in perf_sample_save_callchain()
1252 struct perf_event *event, in perf_sample_save_brstack()
1267 struct perf_event *event) in perf_sample_data_size()
1297 struct perf_event *event);
1299 struct perf_event *event,
1303 struct perf_event *event,
1306 extern int perf_event_overflow(struct perf_event *event,
1310 extern void perf_event_output_forward(struct perf_event *event,
1313 extern void perf_event_output_backward(struct perf_event *event,
1316 extern int perf_event_output(struct perf_event *event,
1334 static inline bool uses_default_overflow_handler(struct perf_event *event) in uses_default_overflow_handler()
1349 struct perf_event *event);
1351 perf_event__output_id_sample(struct perf_event *event,
1356 perf_log_lost_samples(struct perf_event *event, u64 lost);
1358 static inline bool event_has_any_exclude_flag(struct perf_event *event) in event_has_any_exclude_flag()
1367 static inline bool is_sampling_event(struct perf_event *event) in is_sampling_event()
1375 static inline int is_software_event(struct perf_event *event) in is_software_event()
1383 static inline int in_software_context(struct perf_event *event) in in_software_context()
1626 extern void perf_bp_event(struct perf_event *event, void *data);
1637 static inline bool has_branch_stack(struct perf_event *event) in has_branch_stack()
1642 static inline bool needs_branch_stack(struct perf_event *event) in needs_branch_stack()
1647 static inline bool has_aux(struct perf_event *event) in has_aux()
1652 static inline bool is_write_backward(struct perf_event *event) in is_write_backward()
1657 static inline bool has_addr_filter(struct perf_event *event) in has_addr_filter()
1666 perf_event_addr_filters(struct perf_event *event) in perf_event_addr_filters()
1676 extern void perf_event_addr_filters_sync(struct perf_event *event);
1677 extern void perf_report_aux_output_id(struct perf_event *event, u64 hw_id);
1681 struct perf_event *event, unsigned int size);
1684 struct perf_event *event,
1688 struct perf_event *event,
1701 extern u64 perf_swevent_set_period(struct perf_event *event);
1702 extern void perf_event_enable(struct perf_event *event);
1703 extern void perf_event_disable(struct perf_event *event);
1704 extern void perf_event_disable_local(struct perf_event *event);
1705 extern void perf_event_disable_inatomic(struct perf_event *event);
1707 extern int perf_event_account_interrupt(struct perf_event *event);
1708 extern int perf_event_period(struct perf_event *event, u64 value);
1709 extern u64 perf_event_pause(struct perf_event *event, bool reset);
1713 struct perf_event *event) { return NULL; } in perf_aux_output_begin()
1736 static inline const struct perf_event *perf_get_event(struct file *file) in perf_get_event()
1740 static inline const struct perf_event_attr *perf_event_attrs(struct perf_event *event) in perf_event_attrs()
1744 static inline int perf_event_read_local(struct perf_event *event, u64 *value, in perf_event_read_local()
1752 static inline int perf_event_refresh(struct perf_event *event, int refresh) in perf_event_refresh()
1760 perf_bp_event(struct perf_event *event, void *data) { } in perf_bp_event()
1782 static inline u64 perf_swevent_set_period(struct perf_event *event) { return 0; } in perf_swevent_set_period()
1783 static inline void perf_event_enable(struct perf_event *event) { } in perf_event_enable()
1784 static inline void perf_event_disable(struct perf_event *event) { } in perf_event_disable()
1787 static inline int perf_event_release_kernel(struct perf_event *event) { return 0; } in perf_event_release_kernel()
1788 static inline int perf_event_period(struct perf_event *event, u64 value) in perf_event_period()
1792 static inline u64 perf_event_pause(struct perf_event *event, bool reset) in perf_event_pause()
1877 extern void arch_perf_update_userpage(struct perf_event *event,