1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2592d5a6bSJiri Olsa #ifndef __API_FS_TRACING_PATH_H 3592d5a6bSJiri Olsa #define __API_FS_TRACING_PATH_H 4592d5a6bSJiri Olsa 5988bdb31SJiri Olsa #include <linux/types.h> 67014e0e3SArnaldo Carvalho de Melo #include <dirent.h> 7988bdb31SJiri Olsa 87014e0e3SArnaldo Carvalho de Melo DIR *tracing_events__opendir(void); 9*1504b6f9SIan Rogers int tracing_events__scandir_alphasort(struct dirent ***namelist); 107014e0e3SArnaldo Carvalho de Melo 11592d5a6bSJiri Olsa void tracing_path_set(const char *mountpoint); 12592d5a6bSJiri Olsa const char *tracing_path_mount(void); 13592d5a6bSJiri Olsa 14592d5a6bSJiri Olsa char *get_tracing_file(const char *name); 15592d5a6bSJiri Olsa void put_tracing_file(char *file); 16592d5a6bSJiri Olsa 1740c3c0c9SArnaldo Carvalho de Melo char *get_events_file(const char *name); 1840c3c0c9SArnaldo Carvalho de Melo void put_events_file(char *file); 1940c3c0c9SArnaldo Carvalho de Melo 2040c3c0c9SArnaldo Carvalho de Melo #define zput_events_file(ptr) ({ free(*ptr); *ptr = NULL; }) 2140c3c0c9SArnaldo Carvalho de Melo 22988bdb31SJiri Olsa int tracing_path__strerror_open_tp(int err, char *buf, size_t size, const char *sys, const char *name); 23592d5a6bSJiri Olsa #endif /* __API_FS_TRACING_PATH_H */ 24