Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Jiri Olsa | 592d5a6 | 2015-09-02 09:56:34 +0200 | [diff] [blame] | 2 | #ifndef __API_FS_TRACING_PATH_H |
| 3 | #define __API_FS_TRACING_PATH_H |
| 4 | |
Jiri Olsa | 988bdb3 | 2015-09-02 09:56:35 +0200 | [diff] [blame] | 5 | #include <linux/types.h> |
Arnaldo Carvalho de Melo | 7014e0e | 2018-05-17 14:42:39 -0300 | [diff] [blame] | 6 | #include <dirent.h> |
Jiri Olsa | 988bdb3 | 2015-09-02 09:56:35 +0200 | [diff] [blame] | 7 | |
Arnaldo Carvalho de Melo | 7014e0e | 2018-05-17 14:42:39 -0300 | [diff] [blame] | 8 | DIR *tracing_events__opendir(void); |
| 9 | |
Jiri Olsa | 592d5a6 | 2015-09-02 09:56:34 +0200 | [diff] [blame] | 10 | void tracing_path_set(const char *mountpoint); |
| 11 | const char *tracing_path_mount(void); |
| 12 | |
| 13 | char *get_tracing_file(const char *name); |
| 14 | void put_tracing_file(char *file); |
| 15 | |
Arnaldo Carvalho de Melo | 40c3c0c | 2018-05-16 16:42:26 -0300 | [diff] [blame] | 16 | char *get_events_file(const char *name); |
| 17 | void put_events_file(char *file); |
| 18 | |
| 19 | #define zput_events_file(ptr) ({ free(*ptr); *ptr = NULL; }) |
| 20 | |
Jiri Olsa | 988bdb3 | 2015-09-02 09:56:35 +0200 | [diff] [blame] | 21 | int tracing_path__strerror_open_tp(int err, char *buf, size_t size, const char *sys, const char *name); |
Jiri Olsa | 592d5a6 | 2015-09-02 09:56:34 +0200 | [diff] [blame] | 22 | #endif /* __API_FS_TRACING_PATH_H */ |