 dd6dda27a8
			
		
	
	
	dd6dda27a8
	
	
	
		
			
			Add tracefs_configured() to return true if tracefs is configured in the kernel (succeeds to find tracefs), and debugfs_configured() if debugfs is configured in the kernel (succeeds to find debugfs). Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Namhyung Kim <namhyung@kernel.org> Link: http://lkml.kernel.org/r/20150202193553.190606690@goodmis.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			497 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			497 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef __API_FINDFS_H__
 | |
| #define __API_FINDFS_H__
 | |
| 
 | |
| #include <stdbool.h>
 | |
| 
 | |
| #define _STR(x) #x
 | |
| #define STR(x) _STR(x)
 | |
| 
 | |
| /*
 | |
|  * On most systems <limits.h> would have given us this, but  not on some systems
 | |
|  * (e.g. GNU/Hurd).
 | |
|  */
 | |
| #ifndef PATH_MAX
 | |
| #define PATH_MAX 4096
 | |
| #endif
 | |
| 
 | |
| const char *find_mountpoint(const char *fstype, long magic,
 | |
| 			    char *mountpoint, int len,
 | |
| 			    const char * const *known_mountpoints);
 | |
| 
 | |
| int valid_mountpoint(const char *mount, long magic);
 | |
| 
 | |
| #endif /* __API_FINDFS_H__ */
 |