mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 01:51:34 +00:00
5beeded123
If "/sys/kernel/debug" is not a debugfs mount point, search for the debugfs filesystem in /proc/mounts, but also allows the user to specify '--debugfs-dir=blah' or set the environment variable: 'PERF_DEBUGFS_DIR' Signed-off-by: Jason Baron <jbaron@redhat.com> [ also made it probe "/debug" by default ] Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <20090721181629.GA3094@redhat.com>
23 lines
426 B
C
23 lines
426 B
C
|
|
/*
|
|
* Parse symbolic events/counts passed in as options:
|
|
*/
|
|
|
|
struct option;
|
|
|
|
extern int nr_counters;
|
|
|
|
extern struct perf_counter_attr attrs[MAX_COUNTERS];
|
|
|
|
extern char *event_name(int ctr);
|
|
|
|
extern int parse_events(const struct option *opt, const char *str, int unset);
|
|
|
|
#define EVENTS_HELP_MAX (128*1024)
|
|
|
|
extern void print_events(void);
|
|
|
|
extern char debugfs_path[];
|
|
extern int valid_debugfs_mount(const char *debugfs);
|
|
|