Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v3.2-rc2 45 lines 1.3 kB view raw
1#ifndef __PERF_PARSE_EVENTS_H 2#define __PERF_PARSE_EVENTS_H 3/* 4 * Parse symbolic events/counts passed in as options: 5 */ 6 7#include "../../../include/linux/perf_event.h" 8 9struct list_head; 10struct perf_evsel; 11struct perf_evlist; 12 13struct option; 14 15struct tracepoint_path { 16 char *system; 17 char *name; 18 struct tracepoint_path *next; 19}; 20 21extern struct tracepoint_path *tracepoint_id_to_path(u64 config); 22extern bool have_tracepoints(struct list_head *evlist); 23 24const char *event_type(int type); 25const char *event_name(struct perf_evsel *event); 26extern const char *__event_name(int type, u64 config); 27 28extern int parse_events_option(const struct option *opt, const char *str, 29 int unset); 30extern int parse_events(struct perf_evlist *evlist, const char *str, 31 int unset); 32extern int parse_filter(const struct option *opt, const char *str, int unset); 33 34#define EVENTS_HELP_MAX (128*1024) 35 36void print_events(const char *event_glob); 37void print_events_type(u8 type); 38void print_tracepoint_events(const char *subsys_glob, const char *event_glob); 39int print_hwcache_events(const char *event_glob); 40extern int is_valid_tracepoint(const char *event_string); 41 42extern char debugfs_path[]; 43extern int valid_debugfs_mount(const char *debugfs); 44 45#endif /* __PERF_PARSE_EVENTS_H */