parse-events.h 1.1 KB

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 "../../../include/linux/perf_event.h"
  7. struct list_head;
  8. struct perf_evsel;
  9. struct option;
  10. struct tracepoint_path {
  11. char *system;
  12. char *name;
  13. struct tracepoint_path *next;
  14. };
  15. extern struct tracepoint_path *tracepoint_id_to_path(u64 config);
  16. extern bool have_tracepoints(struct list_head *evlist);
  17. const char *event_type(int type);
  18. const char *event_name(struct perf_evsel *event);
  19. extern const char *__event_name(int type, u64 config);
  20. extern int parse_events(const struct option *opt, const char *str, int unset);
  21. extern int parse_filter(const struct option *opt, const char *str, int unset);
  22. #define EVENTS_HELP_MAX (128*1024)
  23. void print_events(const char *event_glob);
  24. void print_events_type(u8 type);
  25. void print_tracepoint_events(const char *subsys_glob, const char *event_glob);
  26. int print_hwcache_events(const char *event_glob);
  27. extern int is_valid_tracepoint(const char *event_string);
  28. extern char debugfs_path[];
  29. extern int valid_debugfs_mount(const char *debugfs);
  30. #endif /* __PERF_PARSE_EVENTS_H */