parse-events.h 981 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef __PERF_PARSE_EVENTS_H
  2. #define __PERF_PARSE_EVENTS_H
  3. /*
  4. * Parse symbolic events/counts passed in as options:
  5. */
  6. #include <linux/perf_event.h>
  7. struct list_head;
  8. struct perf_evsel;
  9. extern struct list_head evsel_list;
  10. int perf_evsel_list__create_default(void);
  11. struct option;
  12. struct tracepoint_path {
  13. char *system;
  14. char *name;
  15. struct tracepoint_path *next;
  16. };
  17. extern struct tracepoint_path *tracepoint_id_to_path(u64 config);
  18. extern bool have_tracepoints(struct list_head *evsel_list);
  19. extern int nr_counters;
  20. const char *event_name(struct perf_evsel *event);
  21. extern const char *__event_name(int type, u64 config);
  22. extern int parse_events(const struct option *opt, const char *str, int unset);
  23. extern int parse_filter(const struct option *opt, const char *str, int unset);
  24. #define EVENTS_HELP_MAX (128*1024)
  25. extern void print_events(void);
  26. extern char debugfs_path[];
  27. extern int valid_debugfs_mount(const char *debugfs);
  28. #endif /* __PERF_PARSE_EVENTS_H */