0001
0002 #ifndef __API_FS_TRACING_PATH_H
0003 #define __API_FS_TRACING_PATH_H
0004
0005 #include <linux/types.h>
0006 #include <dirent.h>
0007
0008 DIR *tracing_events__opendir(void);
0009
0010 void tracing_path_set(const char *mountpoint);
0011 const char *tracing_path_mount(void);
0012
0013 char *get_tracing_file(const char *name);
0014 void put_tracing_file(char *file);
0015
0016 char *get_events_file(const char *name);
0017 void put_events_file(char *file);
0018
0019 #define zput_events_file(ptr) ({ free(*ptr); *ptr = NULL; })
0020
0021 int tracing_path__strerror_open_tp(int err, char *buf, size_t size, const char *sys, const char *name);
0022 #endif