X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=libcfs%2Flibcfs%2Ftracefile.h;h=6eed697af95ae9d6e50617d179decd61ca1481f3;hb=c64a87cede3b070573ed0062d98fc33be34111b8;hp=9ba2ff737482fb4bfdf2c5e178a864197ebd752b;hpb=ed2430bd5a8b1b61ce9ae5c4a321598dee728199;p=fs%2Flustre-release.git diff --git a/libcfs/libcfs/tracefile.h b/libcfs/libcfs/tracefile.h index 9ba2ff7..6eed697 100644 --- a/libcfs/libcfs/tracefile.h +++ b/libcfs/libcfs/tracefile.h @@ -40,14 +40,10 @@ #include #ifdef __KERNEL__ -#if defined(__linux__) -#include "linux/linux-tracefile.h" -#else -#error Unsupported operating system. -#endif -#else -#include "posix/posix-tracefile.h" -#endif +# include "linux/linux-tracefile.h" +#else /* __KERNEL__ */ +# include "posix/posix-tracefile.h" +#endif /* !__KERNEL__ */ /* trace file lock routines */ #define TRACEFILE_NAME_SIZE 1024 @@ -75,16 +71,16 @@ void cfs_tracefile_exit(void); int cfs_trace_copyin_string(char *knl_buffer, int knl_buffer_nob, - const char *usr_buffer, int usr_buffer_nob); -int cfs_trace_copyout_string(char *usr_buffer, int usr_buffer_nob, + const char __user *usr_buffer, int usr_buffer_nob); +int cfs_trace_copyout_string(char __user *usr_buffer, int usr_buffer_nob, const char *knl_str, char *append); int cfs_trace_allocate_string_buffer(char **str, int nob); void cfs_trace_free_string_buffer(char *str, int nob); -int cfs_trace_dump_debug_buffer_usrstr(void *usr_str, int usr_str_nob); +int cfs_trace_dump_debug_buffer_usrstr(void __user *usr_str, int usr_str_nob); int cfs_trace_daemon_command(char *str); -int cfs_trace_daemon_command_usrstr(void *usr_str, int usr_str_nob); +int cfs_trace_daemon_command_usrstr(void __user *usr_str, int usr_str_nob); int cfs_trace_set_debug_mb(int mb); -int cfs_trace_set_debug_mb_usrstr(void *usr_str, int usr_str_nob); +int cfs_trace_set_debug_mb_usrstr(void __user *usr_str, int usr_str_nob); int cfs_trace_get_debug_mb(void); extern void libcfs_debug_dumplog_internal(void *arg);