SC_TRACE_EVENT(sys_unlink,
TP_PROTO(const char * pathname),
TP_ARGS(pathname),
- TP_STRUCT__entry(__string(pathname, pathname)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname)),
TP_printk()
)
SC_TRACE_EVENT(sys_chdir,
TP_PROTO(const char * filename),
TP_ARGS(filename),
- TP_STRUCT__entry(__string(filename, filename)),
+ TP_STRUCT__entry(__string_from_user(filename, filename)),
TP_fast_assign(tp_copy_string_from_user(filename, filename)),
TP_printk()
)
SC_TRACE_EVENT(sys_oldumount,
TP_PROTO(char * name),
TP_ARGS(name),
- TP_STRUCT__entry(__string(name, name)),
+ TP_STRUCT__entry(__string_from_user(name, name)),
TP_fast_assign(tp_copy_string_from_user(name, name)),
TP_printk()
)
SC_TRACE_EVENT(sys_rmdir,
TP_PROTO(const char * pathname),
TP_ARGS(pathname),
- TP_STRUCT__entry(__string(pathname, pathname)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname)),
TP_printk()
)
SC_TRACE_EVENT(sys_acct,
TP_PROTO(const char * name),
TP_ARGS(name),
- TP_STRUCT__entry(__string(name, name)),
+ TP_STRUCT__entry(__string_from_user(name, name)),
TP_fast_assign(tp_copy_string_from_user(name, name)),
TP_printk()
)
SC_TRACE_EVENT(sys_chroot,
TP_PROTO(const char * filename),
TP_ARGS(filename),
- TP_STRUCT__entry(__string(filename, filename)),
+ TP_STRUCT__entry(__string_from_user(filename, filename)),
TP_fast_assign(tp_copy_string_from_user(filename, filename)),
TP_printk()
)
SC_TRACE_EVENT(sys_swapoff,
TP_PROTO(const char * specialfile),
TP_ARGS(specialfile),
- TP_STRUCT__entry(__string(specialfile, specialfile)),
+ TP_STRUCT__entry(__string_from_user(specialfile, specialfile)),
TP_fast_assign(tp_copy_string_from_user(specialfile, specialfile)),
TP_printk()
)
SC_TRACE_EVENT(sys_mq_unlink,
TP_PROTO(const char * u_name),
TP_ARGS(u_name),
- TP_STRUCT__entry(__string(u_name, u_name)),
+ TP_STRUCT__entry(__string_from_user(u_name, u_name)),
TP_fast_assign(tp_copy_string_from_user(u_name, u_name)),
TP_printk()
)
SC_TRACE_EVENT(sys_creat,
TP_PROTO(const char * pathname, int mode),
TP_ARGS(pathname, mode),
- TP_STRUCT__entry(__string(pathname, pathname) __field(int, mode)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __field(int, mode)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_assign(mode, mode)),
TP_printk()
)
SC_TRACE_EVENT(sys_link,
TP_PROTO(const char * oldname, const char * newname),
TP_ARGS(oldname, newname),
- TP_STRUCT__entry(__string(oldname, oldname) __string(newname, newname)),
+ TP_STRUCT__entry(__string_from_user(oldname, oldname) __string_from_user(newname, newname)),
TP_fast_assign(tp_copy_string_from_user(oldname, oldname) tp_copy_string_from_user(newname, newname)),
TP_printk()
)
SC_TRACE_EVENT(sys_chmod,
TP_PROTO(const char * filename, mode_t mode),
TP_ARGS(filename, mode),
- TP_STRUCT__entry(__string(filename, filename) __field(mode_t, mode)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field(mode_t, mode)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(mode, mode)),
TP_printk()
)
SC_TRACE_EVENT(sys_stat,
TP_PROTO(const char * filename, struct __old_kernel_stat * statbuf),
TP_ARGS(filename, statbuf),
- TP_STRUCT__entry(__string(filename, filename) __field_hex(struct __old_kernel_stat *, statbuf)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field_hex(struct __old_kernel_stat *, statbuf)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(statbuf, statbuf)),
TP_printk()
)
SC_TRACE_EVENT(sys_utime,
TP_PROTO(char * filename, struct utimbuf * times),
TP_ARGS(filename, times),
- TP_STRUCT__entry(__string(filename, filename) __field_hex(struct utimbuf *, times)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field_hex(struct utimbuf *, times)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(times, times)),
TP_printk()
)
SC_TRACE_EVENT(sys_access,
TP_PROTO(const char * filename, int mode),
TP_ARGS(filename, mode),
- TP_STRUCT__entry(__string(filename, filename) __field(int, mode)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field(int, mode)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(mode, mode)),
TP_printk()
)
SC_TRACE_EVENT(sys_rename,
TP_PROTO(const char * oldname, const char * newname),
TP_ARGS(oldname, newname),
- TP_STRUCT__entry(__string(oldname, oldname) __string(newname, newname)),
+ TP_STRUCT__entry(__string_from_user(oldname, oldname) __string_from_user(newname, newname)),
TP_fast_assign(tp_copy_string_from_user(oldname, oldname) tp_copy_string_from_user(newname, newname)),
TP_printk()
)
SC_TRACE_EVENT(sys_mkdir,
TP_PROTO(const char * pathname, int mode),
TP_ARGS(pathname, mode),
- TP_STRUCT__entry(__string(pathname, pathname) __field(int, mode)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __field(int, mode)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_assign(mode, mode)),
TP_printk()
)
SC_TRACE_EVENT(sys_umount,
TP_PROTO(char * name, int flags),
TP_ARGS(name, flags),
- TP_STRUCT__entry(__string(name, name) __field(int, flags)),
+ TP_STRUCT__entry(__string_from_user(name, name) __field(int, flags)),
TP_fast_assign(tp_copy_string_from_user(name, name) tp_assign(flags, flags)),
TP_printk()
)
SC_TRACE_EVENT(sys_sethostname,
TP_PROTO(char * name, int len),
TP_ARGS(name, len),
- TP_STRUCT__entry(__string(name, name) __field(int, len)),
+ TP_STRUCT__entry(__string_from_user(name, name) __field(int, len)),
TP_fast_assign(tp_copy_string_from_user(name, name) tp_assign(len, len)),
TP_printk()
)
SC_TRACE_EVENT(sys_symlink,
TP_PROTO(const char * oldname, const char * newname),
TP_ARGS(oldname, newname),
- TP_STRUCT__entry(__string(oldname, oldname) __string(newname, newname)),
+ TP_STRUCT__entry(__string_from_user(oldname, oldname) __string_from_user(newname, newname)),
TP_fast_assign(tp_copy_string_from_user(oldname, oldname) tp_copy_string_from_user(newname, newname)),
TP_printk()
)
SC_TRACE_EVENT(sys_lstat,
TP_PROTO(const char * filename, struct __old_kernel_stat * statbuf),
TP_ARGS(filename, statbuf),
- TP_STRUCT__entry(__string(filename, filename) __field_hex(struct __old_kernel_stat *, statbuf)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field_hex(struct __old_kernel_stat *, statbuf)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(statbuf, statbuf)),
TP_printk()
)
SC_TRACE_EVENT(sys_swapon,
TP_PROTO(const char * specialfile, int swap_flags),
TP_ARGS(specialfile, swap_flags),
- TP_STRUCT__entry(__string(specialfile, specialfile) __field(int, swap_flags)),
+ TP_STRUCT__entry(__string_from_user(specialfile, specialfile) __field(int, swap_flags)),
TP_fast_assign(tp_copy_string_from_user(specialfile, specialfile) tp_assign(swap_flags, swap_flags)),
TP_printk()
)
SC_TRACE_EVENT(sys_truncate,
TP_PROTO(const char * path, long length),
TP_ARGS(path, length),
- TP_STRUCT__entry(__string(path, path) __field(long, length)),
+ TP_STRUCT__entry(__string_from_user(path, path) __field(long, length)),
TP_fast_assign(tp_copy_string_from_user(path, path) tp_assign(length, length)),
TP_printk()
)
SC_TRACE_EVENT(sys_statfs,
TP_PROTO(const char * pathname, struct statfs * buf),
TP_ARGS(pathname, buf),
- TP_STRUCT__entry(__string(pathname, pathname) __field_hex(struct statfs *, buf)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __field_hex(struct statfs *, buf)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_assign(buf, buf)),
TP_printk()
)
SC_TRACE_EVENT(sys_newstat,
TP_PROTO(const char * filename, struct stat * statbuf),
TP_ARGS(filename, statbuf),
- TP_STRUCT__entry(__string(filename, filename) __field_hex(struct stat *, statbuf)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field_hex(struct stat *, statbuf)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(statbuf, statbuf)),
TP_printk()
)
SC_TRACE_EVENT(sys_newlstat,
TP_PROTO(const char * filename, struct stat * statbuf),
TP_ARGS(filename, statbuf),
- TP_STRUCT__entry(__string(filename, filename) __field_hex(struct stat *, statbuf)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field_hex(struct stat *, statbuf)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(statbuf, statbuf)),
TP_printk()
)
SC_TRACE_EVENT(sys_setdomainname,
TP_PROTO(char * name, int len),
TP_ARGS(name, len),
- TP_STRUCT__entry(__string(name, name) __field(int, len)),
+ TP_STRUCT__entry(__string_from_user(name, name) __field(int, len)),
TP_fast_assign(tp_copy_string_from_user(name, name) tp_assign(len, len)),
TP_printk()
)
SC_TRACE_EVENT(sys_delete_module,
TP_PROTO(const char * name_user, unsigned int flags),
TP_ARGS(name_user, flags),
- TP_STRUCT__entry(__string(name_user, name_user) __field(unsigned int, flags)),
+ TP_STRUCT__entry(__string_from_user(name_user, name_user) __field(unsigned int, flags)),
TP_fast_assign(tp_copy_string_from_user(name_user, name_user) tp_assign(flags, flags)),
TP_printk()
)
SC_TRACE_EVENT(sys_stat64,
TP_PROTO(const char * filename, struct stat64 * statbuf),
TP_ARGS(filename, statbuf),
- TP_STRUCT__entry(__string(filename, filename) __field_hex(struct stat64 *, statbuf)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field_hex(struct stat64 *, statbuf)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(statbuf, statbuf)),
TP_printk()
)
SC_TRACE_EVENT(sys_lstat64,
TP_PROTO(const char * filename, struct stat64 * statbuf),
TP_ARGS(filename, statbuf),
- TP_STRUCT__entry(__string(filename, filename) __field_hex(struct stat64 *, statbuf)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field_hex(struct stat64 *, statbuf)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(statbuf, statbuf)),
TP_printk()
)
SC_TRACE_EVENT(sys_pivot_root,
TP_PROTO(const char * new_root, const char * put_old),
TP_ARGS(new_root, put_old),
- TP_STRUCT__entry(__string(new_root, new_root) __string(put_old, put_old)),
+ TP_STRUCT__entry(__string_from_user(new_root, new_root) __string_from_user(put_old, put_old)),
TP_fast_assign(tp_copy_string_from_user(new_root, new_root) tp_copy_string_from_user(put_old, put_old)),
TP_printk()
)
SC_TRACE_EVENT(sys_removexattr,
TP_PROTO(const char * pathname, const char * name),
TP_ARGS(pathname, name),
- TP_STRUCT__entry(__string(pathname, pathname) __string(name, name)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __string_from_user(name, name)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_copy_string_from_user(name, name)),
TP_printk()
)
SC_TRACE_EVENT(sys_lremovexattr,
TP_PROTO(const char * pathname, const char * name),
TP_ARGS(pathname, name),
- TP_STRUCT__entry(__string(pathname, pathname) __string(name, name)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __string_from_user(name, name)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_copy_string_from_user(name, name)),
TP_printk()
)
SC_TRACE_EVENT(sys_fremovexattr,
TP_PROTO(int fd, const char * name),
TP_ARGS(fd, name),
- TP_STRUCT__entry(__field(int, fd) __string(name, name)),
+ TP_STRUCT__entry(__field(int, fd) __string_from_user(name, name)),
TP_fast_assign(tp_assign(fd, fd) tp_copy_string_from_user(name, name)),
TP_printk()
)
SC_TRACE_EVENT(sys_utimes,
TP_PROTO(char * filename, struct timeval * utimes),
TP_ARGS(filename, utimes),
- TP_STRUCT__entry(__string(filename, filename) __field_hex(struct timeval *, utimes)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field_hex(struct timeval *, utimes)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(utimes, utimes)),
TP_printk()
)
SC_TRACE_EVENT(sys_open,
TP_PROTO(const char * filename, int flags, int mode),
TP_ARGS(filename, flags, mode),
- TP_STRUCT__entry(__string(filename, filename) __field(int, flags) __field(int, mode)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field(int, flags) __field(int, mode)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(flags, flags) tp_assign(mode, mode)),
TP_printk()
)
SC_TRACE_EVENT(sys_mknod,
TP_PROTO(const char * filename, int mode, unsigned dev),
TP_ARGS(filename, mode, dev),
- TP_STRUCT__entry(__string(filename, filename) __field(int, mode) __field(unsigned, dev)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field(int, mode) __field(unsigned, dev)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(mode, mode) tp_assign(dev, dev)),
TP_printk()
)
SC_TRACE_EVENT(sys_lchown16,
TP_PROTO(const char * filename, old_uid_t user, old_gid_t group),
TP_ARGS(filename, user, group),
- TP_STRUCT__entry(__string(filename, filename) __field(old_uid_t, user) __field(old_gid_t, group)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field(old_uid_t, user) __field(old_gid_t, group)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(user, user) tp_assign(group, group)),
TP_printk()
)
SC_TRACE_EVENT(sys_readlink,
TP_PROTO(const char * path, char * buf, int bufsiz),
TP_ARGS(path, buf, bufsiz),
- TP_STRUCT__entry(__string(path, path) __field_hex(char *, buf) __field(int, bufsiz)),
+ TP_STRUCT__entry(__string_from_user(path, path) __field_hex(char *, buf) __field(int, bufsiz)),
TP_fast_assign(tp_copy_string_from_user(path, path) tp_assign(buf, buf) tp_assign(bufsiz, bufsiz)),
TP_printk()
)
SC_TRACE_EVENT(sys_chown16,
TP_PROTO(const char * filename, old_uid_t user, old_gid_t group),
TP_ARGS(filename, user, group),
- TP_STRUCT__entry(__string(filename, filename) __field(old_uid_t, user) __field(old_gid_t, group)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field(old_uid_t, user) __field(old_gid_t, group)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(user, user) tp_assign(group, group)),
TP_printk()
)
SC_TRACE_EVENT(sys_lchown,
TP_PROTO(const char * filename, uid_t user, gid_t group),
TP_ARGS(filename, user, group),
- TP_STRUCT__entry(__string(filename, filename) __field(uid_t, user) __field(gid_t, group)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field(uid_t, user) __field(gid_t, group)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(user, user) tp_assign(group, group)),
TP_printk()
)
SC_TRACE_EVENT(sys_chown,
TP_PROTO(const char * filename, uid_t user, gid_t group),
TP_ARGS(filename, user, group),
- TP_STRUCT__entry(__string(filename, filename) __field(uid_t, user) __field(gid_t, group)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field(uid_t, user) __field(gid_t, group)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(user, user) tp_assign(group, group)),
TP_printk()
)
SC_TRACE_EVENT(sys_listxattr,
TP_PROTO(const char * pathname, char * list, size_t size),
TP_ARGS(pathname, list, size),
- TP_STRUCT__entry(__string(pathname, pathname) __field_hex(char *, list) __field(size_t, size)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __field_hex(char *, list) __field(size_t, size)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_assign(list, list) tp_assign(size, size)),
TP_printk()
)
SC_TRACE_EVENT(sys_llistxattr,
TP_PROTO(const char * pathname, char * list, size_t size),
TP_ARGS(pathname, list, size),
- TP_STRUCT__entry(__string(pathname, pathname) __field_hex(char *, list) __field(size_t, size)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __field_hex(char *, list) __field(size_t, size)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_assign(list, list) tp_assign(size, size)),
TP_printk()
)
SC_TRACE_EVENT(sys_statfs64,
TP_PROTO(const char * pathname, size_t sz, struct statfs64 * buf),
TP_ARGS(pathname, sz, buf),
- TP_STRUCT__entry(__string(pathname, pathname) __field(size_t, sz) __field_hex(struct statfs64 *, buf)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __field(size_t, sz) __field_hex(struct statfs64 *, buf)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_assign(sz, sz) tp_assign(buf, buf)),
TP_printk()
)
SC_TRACE_EVENT(sys_inotify_add_watch,
TP_PROTO(int fd, const char * pathname, u32 mask),
TP_ARGS(fd, pathname, mask),
- TP_STRUCT__entry(__field(int, fd) __string(pathname, pathname) __field(u32, mask)),
+ TP_STRUCT__entry(__field(int, fd) __string_from_user(pathname, pathname) __field(u32, mask)),
TP_fast_assign(tp_assign(fd, fd) tp_copy_string_from_user(pathname, pathname) tp_assign(mask, mask)),
TP_printk()
)
SC_TRACE_EVENT(sys_mkdirat,
TP_PROTO(int dfd, const char * pathname, int mode),
TP_ARGS(dfd, pathname, mode),
- TP_STRUCT__entry(__field(int, dfd) __string(pathname, pathname) __field(int, mode)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(pathname, pathname) __field(int, mode)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(pathname, pathname) tp_assign(mode, mode)),
TP_printk()
)
SC_TRACE_EVENT(sys_futimesat,
TP_PROTO(int dfd, const char * filename, struct timeval * utimes),
TP_ARGS(dfd, filename, utimes),
- TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field_hex(struct timeval *, utimes)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(filename, filename) __field_hex(struct timeval *, utimes)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(filename, filename) tp_assign(utimes, utimes)),
TP_printk()
)
SC_TRACE_EVENT(sys_unlinkat,
TP_PROTO(int dfd, const char * pathname, int flag),
TP_ARGS(dfd, pathname, flag),
- TP_STRUCT__entry(__field(int, dfd) __string(pathname, pathname) __field(int, flag)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(pathname, pathname) __field(int, flag)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(pathname, pathname) tp_assign(flag, flag)),
TP_printk()
)
SC_TRACE_EVENT(sys_symlinkat,
TP_PROTO(const char * oldname, int newdfd, const char * newname),
TP_ARGS(oldname, newdfd, newname),
- TP_STRUCT__entry(__string(oldname, oldname) __field(int, newdfd) __string(newname, newname)),
+ TP_STRUCT__entry(__string_from_user(oldname, oldname) __field(int, newdfd) __string_from_user(newname, newname)),
TP_fast_assign(tp_copy_string_from_user(oldname, oldname) tp_assign(newdfd, newdfd) tp_copy_string_from_user(newname, newname)),
TP_printk()
)
SC_TRACE_EVENT(sys_fchmodat,
TP_PROTO(int dfd, const char * filename, mode_t mode),
TP_ARGS(dfd, filename, mode),
- TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field(mode_t, mode)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(filename, filename) __field(mode_t, mode)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(filename, filename) tp_assign(mode, mode)),
TP_printk()
)
SC_TRACE_EVENT(sys_faccessat,
TP_PROTO(int dfd, const char * filename, int mode),
TP_ARGS(dfd, filename, mode),
- TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field(int, mode)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(filename, filename) __field(int, mode)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(filename, filename) tp_assign(mode, mode)),
TP_printk()
)
SC_TRACE_EVENT(sys_getxattr,
TP_PROTO(const char * pathname, const char * name, void * value, size_t size),
TP_ARGS(pathname, name, value, size),
- TP_STRUCT__entry(__string(pathname, pathname) __string(name, name) __field_hex(void *, value) __field(size_t, size)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __string_from_user(name, name) __field_hex(void *, value) __field(size_t, size)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_copy_string_from_user(name, name) tp_assign(value, value) tp_assign(size, size)),
TP_printk()
)
SC_TRACE_EVENT(sys_lgetxattr,
TP_PROTO(const char * pathname, const char * name, void * value, size_t size),
TP_ARGS(pathname, name, value, size),
- TP_STRUCT__entry(__string(pathname, pathname) __string(name, name) __field_hex(void *, value) __field(size_t, size)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __string_from_user(name, name) __field_hex(void *, value) __field(size_t, size)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_copy_string_from_user(name, name) tp_assign(value, value) tp_assign(size, size)),
TP_printk()
)
SC_TRACE_EVENT(sys_fgetxattr,
TP_PROTO(int fd, const char * name, void * value, size_t size),
TP_ARGS(fd, name, value, size),
- TP_STRUCT__entry(__field(int, fd) __string(name, name) __field_hex(void *, value) __field(size_t, size)),
+ TP_STRUCT__entry(__field(int, fd) __string_from_user(name, name) __field_hex(void *, value) __field(size_t, size)),
TP_fast_assign(tp_assign(fd, fd) tp_copy_string_from_user(name, name) tp_assign(value, value) tp_assign(size, size)),
TP_printk()
)
SC_TRACE_EVENT(sys_mq_open,
TP_PROTO(const char * u_name, int oflag, mode_t mode, struct mq_attr * u_attr),
TP_ARGS(u_name, oflag, mode, u_attr),
- TP_STRUCT__entry(__string(u_name, u_name) __field(int, oflag) __field(mode_t, mode) __field_hex(struct mq_attr *, u_attr)),
+ TP_STRUCT__entry(__string_from_user(u_name, u_name) __field(int, oflag) __field(mode_t, mode) __field_hex(struct mq_attr *, u_attr)),
TP_fast_assign(tp_copy_string_from_user(u_name, u_name) tp_assign(oflag, oflag) tp_assign(mode, mode) tp_assign(u_attr, u_attr)),
TP_printk()
)
SC_TRACE_EVENT(sys_request_key,
TP_PROTO(const char * _type, const char * _description, const char * _callout_info, key_serial_t destringid),
TP_ARGS(_type, _description, _callout_info, destringid),
- TP_STRUCT__entry(__string(_type, _type) __field_hex(const char *, _description) __field_hex(const char *, _callout_info) __field(key_serial_t, destringid)),
+ TP_STRUCT__entry(__string_from_user(_type, _type) __field_hex(const char *, _description) __field_hex(const char *, _callout_info) __field(key_serial_t, destringid)),
TP_fast_assign(tp_copy_string_from_user(_type, _type) tp_assign(_description, _description) tp_assign(_callout_info, _callout_info) tp_assign(destringid, destringid)),
TP_printk()
)
SC_TRACE_EVENT(sys_openat,
TP_PROTO(int dfd, const char * filename, int flags, int mode),
TP_ARGS(dfd, filename, flags, mode),
- TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field(int, flags) __field(int, mode)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(filename, filename) __field(int, flags) __field(int, mode)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(filename, filename) tp_assign(flags, flags) tp_assign(mode, mode)),
TP_printk()
)
SC_TRACE_EVENT(sys_mknodat,
TP_PROTO(int dfd, const char * filename, int mode, unsigned dev),
TP_ARGS(dfd, filename, mode, dev),
- TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field(int, mode) __field(unsigned, dev)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(filename, filename) __field(int, mode) __field(unsigned, dev)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(filename, filename) tp_assign(mode, mode) tp_assign(dev, dev)),
TP_printk()
)
SC_TRACE_EVENT(sys_fstatat64,
TP_PROTO(int dfd, const char * filename, struct stat64 * statbuf, int flag),
TP_ARGS(dfd, filename, statbuf, flag),
- TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field_hex(struct stat64 *, statbuf) __field(int, flag)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(filename, filename) __field_hex(struct stat64 *, statbuf) __field(int, flag)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(filename, filename) tp_assign(statbuf, statbuf) tp_assign(flag, flag)),
TP_printk()
)
SC_TRACE_EVENT(sys_renameat,
TP_PROTO(int olddfd, const char * oldname, int newdfd, const char * newname),
TP_ARGS(olddfd, oldname, newdfd, newname),
- TP_STRUCT__entry(__field(int, olddfd) __string(oldname, oldname) __field(int, newdfd) __string(newname, newname)),
+ TP_STRUCT__entry(__field(int, olddfd) __string_from_user(oldname, oldname) __field(int, newdfd) __string_from_user(newname, newname)),
TP_fast_assign(tp_assign(olddfd, olddfd) tp_copy_string_from_user(oldname, oldname) tp_assign(newdfd, newdfd) tp_copy_string_from_user(newname, newname)),
TP_printk()
)
SC_TRACE_EVENT(sys_readlinkat,
TP_PROTO(int dfd, const char * pathname, char * buf, int bufsiz),
TP_ARGS(dfd, pathname, buf, bufsiz),
- TP_STRUCT__entry(__field(int, dfd) __string(pathname, pathname) __field_hex(char *, buf) __field(int, bufsiz)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(pathname, pathname) __field_hex(char *, buf) __field(int, bufsiz)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(pathname, pathname) tp_assign(buf, buf) tp_assign(bufsiz, bufsiz)),
TP_printk()
)
SC_TRACE_EVENT(sys_utimensat,
TP_PROTO(int dfd, const char * filename, struct timespec * utimes, int flags),
TP_ARGS(dfd, filename, utimes, flags),
- TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field_hex(struct timespec *, utimes) __field(int, flags)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(filename, filename) __field_hex(struct timespec *, utimes) __field(int, flags)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(filename, filename) tp_assign(utimes, utimes) tp_assign(flags, flags)),
TP_printk()
)
SC_TRACE_EVENT(sys_mount,
TP_PROTO(char * dev_name, char * dir_name, char * type, unsigned long flags, void * data),
TP_ARGS(dev_name, dir_name, type, flags, data),
- TP_STRUCT__entry(__string(dev_name, dev_name) __string(dir_name, dir_name) __string(type, type) __field(unsigned long, flags) __field_hex(void *, data)),
+ TP_STRUCT__entry(__string_from_user(dev_name, dev_name) __string_from_user(dir_name, dir_name) __string_from_user(type, type) __field(unsigned long, flags) __field_hex(void *, data)),
TP_fast_assign(tp_copy_string_from_user(dev_name, dev_name) tp_copy_string_from_user(dir_name, dir_name) tp_copy_string_from_user(type, type) tp_assign(flags, flags) tp_assign(data, data)),
TP_printk()
)
SC_TRACE_EVENT(sys_setxattr,
TP_PROTO(const char * pathname, const char * name, const void * value, size_t size, int flags),
TP_ARGS(pathname, name, value, size, flags),
- TP_STRUCT__entry(__string(pathname, pathname) __string(name, name) __field_hex(const void *, value) __field(size_t, size) __field(int, flags)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __string_from_user(name, name) __field_hex(const void *, value) __field(size_t, size) __field(int, flags)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_copy_string_from_user(name, name) tp_assign(value, value) tp_assign(size, size) tp_assign(flags, flags)),
TP_printk()
)
SC_TRACE_EVENT(sys_lsetxattr,
TP_PROTO(const char * pathname, const char * name, const void * value, size_t size, int flags),
TP_ARGS(pathname, name, value, size, flags),
- TP_STRUCT__entry(__string(pathname, pathname) __string(name, name) __field_hex(const void *, value) __field(size_t, size) __field(int, flags)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __string_from_user(name, name) __field_hex(const void *, value) __field(size_t, size) __field(int, flags)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_copy_string_from_user(name, name) tp_assign(value, value) tp_assign(size, size) tp_assign(flags, flags)),
TP_printk()
)
SC_TRACE_EVENT(sys_fsetxattr,
TP_PROTO(int fd, const char * name, const void * value, size_t size, int flags),
TP_ARGS(fd, name, value, size, flags),
- TP_STRUCT__entry(__field(int, fd) __string(name, name) __field_hex(const void *, value) __field(size_t, size) __field(int, flags)),
+ TP_STRUCT__entry(__field(int, fd) __string_from_user(name, name) __field_hex(const void *, value) __field(size_t, size) __field(int, flags)),
TP_fast_assign(tp_assign(fd, fd) tp_copy_string_from_user(name, name) tp_assign(value, value) tp_assign(size, size) tp_assign(flags, flags)),
TP_printk()
)
SC_TRACE_EVENT(sys_add_key,
TP_PROTO(const char * _type, const char * _description, const void * _payload, size_t plen, key_serial_t ringid),
TP_ARGS(_type, _description, _payload, plen, ringid),
- TP_STRUCT__entry(__string(_type, _type) __field_hex(const char *, _description) __field_hex(const void *, _payload) __field(size_t, plen) __field(key_serial_t, ringid)),
+ TP_STRUCT__entry(__string_from_user(_type, _type) __field_hex(const char *, _description) __field_hex(const void *, _payload) __field(size_t, plen) __field(key_serial_t, ringid)),
TP_fast_assign(tp_copy_string_from_user(_type, _type) tp_assign(_description, _description) tp_assign(_payload, _payload) tp_assign(plen, plen) tp_assign(ringid, ringid)),
TP_printk()
)
SC_TRACE_EVENT(sys_fchownat,
TP_PROTO(int dfd, const char * filename, uid_t user, gid_t group, int flag),
TP_ARGS(dfd, filename, user, group, flag),
- TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field(uid_t, user) __field(gid_t, group) __field(int, flag)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(filename, filename) __field(uid_t, user) __field(gid_t, group) __field(int, flag)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(filename, filename) tp_assign(user, user) tp_assign(group, group) tp_assign(flag, flag)),
TP_printk()
)
SC_TRACE_EVENT(sys_linkat,
TP_PROTO(int olddfd, const char * oldname, int newdfd, const char * newname, int flags),
TP_ARGS(olddfd, oldname, newdfd, newname, flags),
- TP_STRUCT__entry(__field(int, olddfd) __string(oldname, oldname) __field(int, newdfd) __string(newname, newname) __field(int, flags)),
+ TP_STRUCT__entry(__field(int, olddfd) __string_from_user(oldname, oldname) __field(int, newdfd) __string_from_user(newname, newname) __field(int, flags)),
TP_fast_assign(tp_assign(olddfd, olddfd) tp_copy_string_from_user(oldname, oldname) tp_assign(newdfd, newdfd) tp_copy_string_from_user(newname, newname) tp_assign(flags, flags)),
TP_printk()
)
SC_TRACE_EVENT(sys_chdir,
TP_PROTO(const char * filename),
TP_ARGS(filename),
- TP_STRUCT__entry(__string(filename, filename)),
+ TP_STRUCT__entry(__string_from_user(filename, filename)),
TP_fast_assign(tp_copy_string_from_user(filename, filename)),
TP_printk()
)
SC_TRACE_EVENT(sys_rmdir,
TP_PROTO(const char * pathname),
TP_ARGS(pathname),
- TP_STRUCT__entry(__string(pathname, pathname)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname)),
TP_printk()
)
SC_TRACE_EVENT(sys_unlink,
TP_PROTO(const char * pathname),
TP_ARGS(pathname),
- TP_STRUCT__entry(__string(pathname, pathname)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname)),
TP_printk()
)
SC_TRACE_EVENT(sys_chroot,
TP_PROTO(const char * filename),
TP_ARGS(filename),
- TP_STRUCT__entry(__string(filename, filename)),
+ TP_STRUCT__entry(__string_from_user(filename, filename)),
TP_fast_assign(tp_copy_string_from_user(filename, filename)),
TP_printk()
)
SC_TRACE_EVENT(sys_swapoff,
TP_PROTO(const char * specialfile),
TP_ARGS(specialfile),
- TP_STRUCT__entry(__string(specialfile, specialfile)),
+ TP_STRUCT__entry(__string_from_user(specialfile, specialfile)),
TP_fast_assign(tp_copy_string_from_user(specialfile, specialfile)),
TP_printk()
)
SC_TRACE_EVENT(sys_mq_unlink,
TP_PROTO(const char * u_name),
TP_ARGS(u_name),
- TP_STRUCT__entry(__string(u_name, u_name)),
+ TP_STRUCT__entry(__string_from_user(u_name, u_name)),
TP_fast_assign(tp_copy_string_from_user(u_name, u_name)),
TP_printk()
)
SC_TRACE_EVENT(sys_newstat,
TP_PROTO(const char * filename, struct stat * statbuf),
TP_ARGS(filename, statbuf),
- TP_STRUCT__entry(__string(filename, filename) __field_hex(struct stat *, statbuf)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field_hex(struct stat *, statbuf)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(statbuf, statbuf)),
TP_printk()
)
SC_TRACE_EVENT(sys_newlstat,
TP_PROTO(const char * filename, struct stat * statbuf),
TP_ARGS(filename, statbuf),
- TP_STRUCT__entry(__string(filename, filename) __field_hex(struct stat *, statbuf)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field_hex(struct stat *, statbuf)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(statbuf, statbuf)),
TP_printk()
)
SC_TRACE_EVENT(sys_access,
TP_PROTO(const char * filename, int mode),
TP_ARGS(filename, mode),
- TP_STRUCT__entry(__string(filename, filename) __field(int, mode)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field(int, mode)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(mode, mode)),
TP_printk()
)
SC_TRACE_EVENT(sys_truncate,
TP_PROTO(const char * path, long length),
TP_ARGS(path, length),
- TP_STRUCT__entry(__string(path, path) __field(long, length)),
+ TP_STRUCT__entry(__string_from_user(path, path) __field(long, length)),
TP_fast_assign(tp_copy_string_from_user(path, path) tp_assign(length, length)),
TP_printk()
)
SC_TRACE_EVENT(sys_rename,
TP_PROTO(const char * oldname, const char * newname),
TP_ARGS(oldname, newname),
- TP_STRUCT__entry(__string(oldname, oldname) __string(newname, newname)),
+ TP_STRUCT__entry(__string_from_user(oldname, oldname) __string_from_user(newname, newname)),
TP_fast_assign(tp_copy_string_from_user(oldname, oldname) tp_copy_string_from_user(newname, newname)),
TP_printk()
)
SC_TRACE_EVENT(sys_mkdir,
TP_PROTO(const char * pathname, int mode),
TP_ARGS(pathname, mode),
- TP_STRUCT__entry(__string(pathname, pathname) __field(int, mode)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __field(int, mode)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_assign(mode, mode)),
TP_printk()
)
SC_TRACE_EVENT(sys_creat,
TP_PROTO(const char * pathname, int mode),
TP_ARGS(pathname, mode),
- TP_STRUCT__entry(__string(pathname, pathname) __field(int, mode)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __field(int, mode)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_assign(mode, mode)),
TP_printk()
)
SC_TRACE_EVENT(sys_link,
TP_PROTO(const char * oldname, const char * newname),
TP_ARGS(oldname, newname),
- TP_STRUCT__entry(__string(oldname, oldname) __string(newname, newname)),
+ TP_STRUCT__entry(__string_from_user(oldname, oldname) __string_from_user(newname, newname)),
TP_fast_assign(tp_copy_string_from_user(oldname, oldname) tp_copy_string_from_user(newname, newname)),
TP_printk()
)
SC_TRACE_EVENT(sys_symlink,
TP_PROTO(const char * oldname, const char * newname),
TP_ARGS(oldname, newname),
- TP_STRUCT__entry(__string(oldname, oldname) __string(newname, newname)),
+ TP_STRUCT__entry(__string_from_user(oldname, oldname) __string_from_user(newname, newname)),
TP_fast_assign(tp_copy_string_from_user(oldname, oldname) tp_copy_string_from_user(newname, newname)),
TP_printk()
)
SC_TRACE_EVENT(sys_chmod,
TP_PROTO(const char * filename, mode_t mode),
TP_ARGS(filename, mode),
- TP_STRUCT__entry(__string(filename, filename) __field(mode_t, mode)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field(mode_t, mode)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(mode, mode)),
TP_printk()
)
SC_TRACE_EVENT(sys_utime,
TP_PROTO(char * filename, struct utimbuf * times),
TP_ARGS(filename, times),
- TP_STRUCT__entry(__string(filename, filename) __field_hex(struct utimbuf *, times)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field_hex(struct utimbuf *, times)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(times, times)),
TP_printk()
)
SC_TRACE_EVENT(sys_statfs,
TP_PROTO(const char * pathname, struct statfs * buf),
TP_ARGS(pathname, buf),
- TP_STRUCT__entry(__string(pathname, pathname) __field_hex(struct statfs *, buf)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __field_hex(struct statfs *, buf)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_assign(buf, buf)),
TP_printk()
)
SC_TRACE_EVENT(sys_pivot_root,
TP_PROTO(const char * new_root, const char * put_old),
TP_ARGS(new_root, put_old),
- TP_STRUCT__entry(__string(new_root, new_root) __string(put_old, put_old)),
+ TP_STRUCT__entry(__string_from_user(new_root, new_root) __string_from_user(put_old, put_old)),
TP_fast_assign(tp_copy_string_from_user(new_root, new_root) tp_copy_string_from_user(put_old, put_old)),
TP_printk()
)
SC_TRACE_EVENT(sys_umount,
TP_PROTO(char * name, int flags),
TP_ARGS(name, flags),
- TP_STRUCT__entry(__string(name, name) __field(int, flags)),
+ TP_STRUCT__entry(__string_from_user(name, name) __field(int, flags)),
TP_fast_assign(tp_copy_string_from_user(name, name) tp_assign(flags, flags)),
TP_printk()
)
SC_TRACE_EVENT(sys_swapon,
TP_PROTO(const char * specialfile, int swap_flags),
TP_ARGS(specialfile, swap_flags),
- TP_STRUCT__entry(__string(specialfile, specialfile) __field(int, swap_flags)),
+ TP_STRUCT__entry(__string_from_user(specialfile, specialfile) __field(int, swap_flags)),
TP_fast_assign(tp_copy_string_from_user(specialfile, specialfile) tp_assign(swap_flags, swap_flags)),
TP_printk()
)
SC_TRACE_EVENT(sys_sethostname,
TP_PROTO(char * name, int len),
TP_ARGS(name, len),
- TP_STRUCT__entry(__string(name, name) __field(int, len)),
+ TP_STRUCT__entry(__string_from_user(name, name) __field(int, len)),
TP_fast_assign(tp_copy_string_from_user(name, name) tp_assign(len, len)),
TP_printk()
)
SC_TRACE_EVENT(sys_setdomainname,
TP_PROTO(char * name, int len),
TP_ARGS(name, len),
- TP_STRUCT__entry(__string(name, name) __field(int, len)),
+ TP_STRUCT__entry(__string_from_user(name, name) __field(int, len)),
TP_fast_assign(tp_copy_string_from_user(name, name) tp_assign(len, len)),
TP_printk()
)
SC_TRACE_EVENT(sys_delete_module,
TP_PROTO(const char * name_user, unsigned int flags),
TP_ARGS(name_user, flags),
- TP_STRUCT__entry(__string(name_user, name_user) __field(unsigned int, flags)),
+ TP_STRUCT__entry(__string_from_user(name_user, name_user) __field(unsigned int, flags)),
TP_fast_assign(tp_copy_string_from_user(name_user, name_user) tp_assign(flags, flags)),
TP_printk()
)
SC_TRACE_EVENT(sys_removexattr,
TP_PROTO(const char * pathname, const char * name),
TP_ARGS(pathname, name),
- TP_STRUCT__entry(__string(pathname, pathname) __string(name, name)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __string_from_user(name, name)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_copy_string_from_user(name, name)),
TP_printk()
)
SC_TRACE_EVENT(sys_lremovexattr,
TP_PROTO(const char * pathname, const char * name),
TP_ARGS(pathname, name),
- TP_STRUCT__entry(__string(pathname, pathname) __string(name, name)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __string_from_user(name, name)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_copy_string_from_user(name, name)),
TP_printk()
)
SC_TRACE_EVENT(sys_fremovexattr,
TP_PROTO(int fd, const char * name),
TP_ARGS(fd, name),
- TP_STRUCT__entry(__field(int, fd) __string(name, name)),
+ TP_STRUCT__entry(__field(int, fd) __string_from_user(name, name)),
TP_fast_assign(tp_assign(fd, fd) tp_copy_string_from_user(name, name)),
TP_printk()
)
SC_TRACE_EVENT(sys_utimes,
TP_PROTO(char * filename, struct timeval * utimes),
TP_ARGS(filename, utimes),
- TP_STRUCT__entry(__string(filename, filename) __field_hex(struct timeval *, utimes)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field_hex(struct timeval *, utimes)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(utimes, utimes)),
TP_printk()
)
SC_TRACE_EVENT(sys_open,
TP_PROTO(const char * filename, int flags, int mode),
TP_ARGS(filename, flags, mode),
- TP_STRUCT__entry(__string(filename, filename) __field(int, flags) __field(int, mode)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field(int, flags) __field(int, mode)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(flags, flags) tp_assign(mode, mode)),
TP_printk()
)
SC_TRACE_EVENT(sys_readlink,
TP_PROTO(const char * path, char * buf, int bufsiz),
TP_ARGS(path, buf, bufsiz),
- TP_STRUCT__entry(__string(path, path) __field_hex(char *, buf) __field(int, bufsiz)),
+ TP_STRUCT__entry(__string_from_user(path, path) __field_hex(char *, buf) __field(int, bufsiz)),
TP_fast_assign(tp_copy_string_from_user(path, path) tp_assign(buf, buf) tp_assign(bufsiz, bufsiz)),
TP_printk()
)
SC_TRACE_EVENT(sys_chown,
TP_PROTO(const char * filename, uid_t user, gid_t group),
TP_ARGS(filename, user, group),
- TP_STRUCT__entry(__string(filename, filename) __field(uid_t, user) __field(gid_t, group)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field(uid_t, user) __field(gid_t, group)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(user, user) tp_assign(group, group)),
TP_printk()
)
SC_TRACE_EVENT(sys_lchown,
TP_PROTO(const char * filename, uid_t user, gid_t group),
TP_ARGS(filename, user, group),
- TP_STRUCT__entry(__string(filename, filename) __field(uid_t, user) __field(gid_t, group)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field(uid_t, user) __field(gid_t, group)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(user, user) tp_assign(group, group)),
TP_printk()
)
SC_TRACE_EVENT(sys_mknod,
TP_PROTO(const char * filename, int mode, unsigned dev),
TP_ARGS(filename, mode, dev),
- TP_STRUCT__entry(__string(filename, filename) __field(int, mode) __field(unsigned, dev)),
+ TP_STRUCT__entry(__string_from_user(filename, filename) __field(int, mode) __field(unsigned, dev)),
TP_fast_assign(tp_copy_string_from_user(filename, filename) tp_assign(mode, mode) tp_assign(dev, dev)),
TP_printk()
)
SC_TRACE_EVENT(sys_listxattr,
TP_PROTO(const char * pathname, char * list, size_t size),
TP_ARGS(pathname, list, size),
- TP_STRUCT__entry(__string(pathname, pathname) __field_hex(char *, list) __field(size_t, size)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __field_hex(char *, list) __field(size_t, size)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_assign(list, list) tp_assign(size, size)),
TP_printk()
)
SC_TRACE_EVENT(sys_llistxattr,
TP_PROTO(const char * pathname, char * list, size_t size),
TP_ARGS(pathname, list, size),
- TP_STRUCT__entry(__string(pathname, pathname) __field_hex(char *, list) __field(size_t, size)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __field_hex(char *, list) __field(size_t, size)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_assign(list, list) tp_assign(size, size)),
TP_printk()
)
SC_TRACE_EVENT(sys_inotify_add_watch,
TP_PROTO(int fd, const char * pathname, u32 mask),
TP_ARGS(fd, pathname, mask),
- TP_STRUCT__entry(__field(int, fd) __string(pathname, pathname) __field(u32, mask)),
+ TP_STRUCT__entry(__field(int, fd) __string_from_user(pathname, pathname) __field(u32, mask)),
TP_fast_assign(tp_assign(fd, fd) tp_copy_string_from_user(pathname, pathname) tp_assign(mask, mask)),
TP_printk()
)
SC_TRACE_EVENT(sys_mkdirat,
TP_PROTO(int dfd, const char * pathname, int mode),
TP_ARGS(dfd, pathname, mode),
- TP_STRUCT__entry(__field(int, dfd) __string(pathname, pathname) __field(int, mode)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(pathname, pathname) __field(int, mode)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(pathname, pathname) tp_assign(mode, mode)),
TP_printk()
)
SC_TRACE_EVENT(sys_futimesat,
TP_PROTO(int dfd, const char * filename, struct timeval * utimes),
TP_ARGS(dfd, filename, utimes),
- TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field_hex(struct timeval *, utimes)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(filename, filename) __field_hex(struct timeval *, utimes)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(filename, filename) tp_assign(utimes, utimes)),
TP_printk()
)
SC_TRACE_EVENT(sys_unlinkat,
TP_PROTO(int dfd, const char * pathname, int flag),
TP_ARGS(dfd, pathname, flag),
- TP_STRUCT__entry(__field(int, dfd) __string(pathname, pathname) __field(int, flag)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(pathname, pathname) __field(int, flag)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(pathname, pathname) tp_assign(flag, flag)),
TP_printk()
)
SC_TRACE_EVENT(sys_symlinkat,
TP_PROTO(const char * oldname, int newdfd, const char * newname),
TP_ARGS(oldname, newdfd, newname),
- TP_STRUCT__entry(__string(oldname, oldname) __field(int, newdfd) __string(newname, newname)),
+ TP_STRUCT__entry(__string_from_user(oldname, oldname) __field(int, newdfd) __string_from_user(newname, newname)),
TP_fast_assign(tp_copy_string_from_user(oldname, oldname) tp_assign(newdfd, newdfd) tp_copy_string_from_user(newname, newname)),
TP_printk()
)
SC_TRACE_EVENT(sys_fchmodat,
TP_PROTO(int dfd, const char * filename, mode_t mode),
TP_ARGS(dfd, filename, mode),
- TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field(mode_t, mode)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(filename, filename) __field(mode_t, mode)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(filename, filename) tp_assign(mode, mode)),
TP_printk()
)
SC_TRACE_EVENT(sys_faccessat,
TP_PROTO(int dfd, const char * filename, int mode),
TP_ARGS(dfd, filename, mode),
- TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field(int, mode)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(filename, filename) __field(int, mode)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(filename, filename) tp_assign(mode, mode)),
TP_printk()
)
SC_TRACE_EVENT(sys_getxattr,
TP_PROTO(const char * pathname, const char * name, void * value, size_t size),
TP_ARGS(pathname, name, value, size),
- TP_STRUCT__entry(__string(pathname, pathname) __string(name, name) __field_hex(void *, value) __field(size_t, size)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __string_from_user(name, name) __field_hex(void *, value) __field(size_t, size)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_copy_string_from_user(name, name) tp_assign(value, value) tp_assign(size, size)),
TP_printk()
)
SC_TRACE_EVENT(sys_lgetxattr,
TP_PROTO(const char * pathname, const char * name, void * value, size_t size),
TP_ARGS(pathname, name, value, size),
- TP_STRUCT__entry(__string(pathname, pathname) __string(name, name) __field_hex(void *, value) __field(size_t, size)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __string_from_user(name, name) __field_hex(void *, value) __field(size_t, size)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_copy_string_from_user(name, name) tp_assign(value, value) tp_assign(size, size)),
TP_printk()
)
SC_TRACE_EVENT(sys_fgetxattr,
TP_PROTO(int fd, const char * name, void * value, size_t size),
TP_ARGS(fd, name, value, size),
- TP_STRUCT__entry(__field(int, fd) __string(name, name) __field_hex(void *, value) __field(size_t, size)),
+ TP_STRUCT__entry(__field(int, fd) __string_from_user(name, name) __field_hex(void *, value) __field(size_t, size)),
TP_fast_assign(tp_assign(fd, fd) tp_copy_string_from_user(name, name) tp_assign(value, value) tp_assign(size, size)),
TP_printk()
)
SC_TRACE_EVENT(sys_mq_open,
TP_PROTO(const char * u_name, int oflag, mode_t mode, struct mq_attr * u_attr),
TP_ARGS(u_name, oflag, mode, u_attr),
- TP_STRUCT__entry(__string(u_name, u_name) __field(int, oflag) __field(mode_t, mode) __field_hex(struct mq_attr *, u_attr)),
+ TP_STRUCT__entry(__string_from_user(u_name, u_name) __field(int, oflag) __field(mode_t, mode) __field_hex(struct mq_attr *, u_attr)),
TP_fast_assign(tp_copy_string_from_user(u_name, u_name) tp_assign(oflag, oflag) tp_assign(mode, mode) tp_assign(u_attr, u_attr)),
TP_printk()
)
SC_TRACE_EVENT(sys_openat,
TP_PROTO(int dfd, const char * filename, int flags, int mode),
TP_ARGS(dfd, filename, flags, mode),
- TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field(int, flags) __field(int, mode)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(filename, filename) __field(int, flags) __field(int, mode)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(filename, filename) tp_assign(flags, flags) tp_assign(mode, mode)),
TP_printk()
)
SC_TRACE_EVENT(sys_mknodat,
TP_PROTO(int dfd, const char * filename, int mode, unsigned dev),
TP_ARGS(dfd, filename, mode, dev),
- TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field(int, mode) __field(unsigned, dev)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(filename, filename) __field(int, mode) __field(unsigned, dev)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(filename, filename) tp_assign(mode, mode) tp_assign(dev, dev)),
TP_printk()
)
SC_TRACE_EVENT(sys_newfstatat,
TP_PROTO(int dfd, const char * filename, struct stat * statbuf, int flag),
TP_ARGS(dfd, filename, statbuf, flag),
- TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field_hex(struct stat *, statbuf) __field(int, flag)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(filename, filename) __field_hex(struct stat *, statbuf) __field(int, flag)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(filename, filename) tp_assign(statbuf, statbuf) tp_assign(flag, flag)),
TP_printk()
)
SC_TRACE_EVENT(sys_renameat,
TP_PROTO(int olddfd, const char * oldname, int newdfd, const char * newname),
TP_ARGS(olddfd, oldname, newdfd, newname),
- TP_STRUCT__entry(__field(int, olddfd) __string(oldname, oldname) __field(int, newdfd) __string(newname, newname)),
+ TP_STRUCT__entry(__field(int, olddfd) __string_from_user(oldname, oldname) __field(int, newdfd) __string_from_user(newname, newname)),
TP_fast_assign(tp_assign(olddfd, olddfd) tp_copy_string_from_user(oldname, oldname) tp_assign(newdfd, newdfd) tp_copy_string_from_user(newname, newname)),
TP_printk()
)
SC_TRACE_EVENT(sys_readlinkat,
TP_PROTO(int dfd, const char * pathname, char * buf, int bufsiz),
TP_ARGS(dfd, pathname, buf, bufsiz),
- TP_STRUCT__entry(__field(int, dfd) __string(pathname, pathname) __field_hex(char *, buf) __field(int, bufsiz)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(pathname, pathname) __field_hex(char *, buf) __field(int, bufsiz)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(pathname, pathname) tp_assign(buf, buf) tp_assign(bufsiz, bufsiz)),
TP_printk()
)
SC_TRACE_EVENT(sys_utimensat,
TP_PROTO(int dfd, const char * filename, struct timespec * utimes, int flags),
TP_ARGS(dfd, filename, utimes, flags),
- TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field_hex(struct timespec *, utimes) __field(int, flags)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(filename, filename) __field_hex(struct timespec *, utimes) __field(int, flags)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(filename, filename) tp_assign(utimes, utimes) tp_assign(flags, flags)),
TP_printk()
)
SC_TRACE_EVENT(sys_mount,
TP_PROTO(char * dev_name, char * dir_name, char * type, unsigned long flags, void * data),
TP_ARGS(dev_name, dir_name, type, flags, data),
- TP_STRUCT__entry(__string(dev_name, dev_name) __string(dir_name, dir_name) __string(type, type) __field(unsigned long, flags) __field_hex(void *, data)),
+ TP_STRUCT__entry(__string_from_user(dev_name, dev_name) __string_from_user(dir_name, dir_name) __string_from_user(type, type) __field(unsigned long, flags) __field_hex(void *, data)),
TP_fast_assign(tp_copy_string_from_user(dev_name, dev_name) tp_copy_string_from_user(dir_name, dir_name) tp_copy_string_from_user(type, type) tp_assign(flags, flags) tp_assign(data, data)),
TP_printk()
)
SC_TRACE_EVENT(sys_setxattr,
TP_PROTO(const char * pathname, const char * name, const void * value, size_t size, int flags),
TP_ARGS(pathname, name, value, size, flags),
- TP_STRUCT__entry(__string(pathname, pathname) __string(name, name) __field_hex(const void *, value) __field(size_t, size) __field(int, flags)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __string_from_user(name, name) __field_hex(const void *, value) __field(size_t, size) __field(int, flags)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_copy_string_from_user(name, name) tp_assign(value, value) tp_assign(size, size) tp_assign(flags, flags)),
TP_printk()
)
SC_TRACE_EVENT(sys_lsetxattr,
TP_PROTO(const char * pathname, const char * name, const void * value, size_t size, int flags),
TP_ARGS(pathname, name, value, size, flags),
- TP_STRUCT__entry(__string(pathname, pathname) __string(name, name) __field_hex(const void *, value) __field(size_t, size) __field(int, flags)),
+ TP_STRUCT__entry(__string_from_user(pathname, pathname) __string_from_user(name, name) __field_hex(const void *, value) __field(size_t, size) __field(int, flags)),
TP_fast_assign(tp_copy_string_from_user(pathname, pathname) tp_copy_string_from_user(name, name) tp_assign(value, value) tp_assign(size, size) tp_assign(flags, flags)),
TP_printk()
)
SC_TRACE_EVENT(sys_fsetxattr,
TP_PROTO(int fd, const char * name, const void * value, size_t size, int flags),
TP_ARGS(fd, name, value, size, flags),
- TP_STRUCT__entry(__field(int, fd) __string(name, name) __field_hex(const void *, value) __field(size_t, size) __field(int, flags)),
+ TP_STRUCT__entry(__field(int, fd) __string_from_user(name, name) __field_hex(const void *, value) __field(size_t, size) __field(int, flags)),
TP_fast_assign(tp_assign(fd, fd) tp_copy_string_from_user(name, name) tp_assign(value, value) tp_assign(size, size) tp_assign(flags, flags)),
TP_printk()
)
SC_TRACE_EVENT(sys_fchownat,
TP_PROTO(int dfd, const char * filename, uid_t user, gid_t group, int flag),
TP_ARGS(dfd, filename, user, group, flag),
- TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field(uid_t, user) __field(gid_t, group) __field(int, flag)),
+ TP_STRUCT__entry(__field(int, dfd) __string_from_user(filename, filename) __field(uid_t, user) __field(gid_t, group) __field(int, flag)),
TP_fast_assign(tp_assign(dfd, dfd) tp_copy_string_from_user(filename, filename) tp_assign(user, user) tp_assign(group, group) tp_assign(flag, flag)),
TP_printk()
)
SC_TRACE_EVENT(sys_linkat,
TP_PROTO(int olddfd, const char * oldname, int newdfd, const char * newname, int flags),
TP_ARGS(olddfd, oldname, newdfd, newname, flags),
- TP_STRUCT__entry(__field(int, olddfd) __string(oldname, oldname) __field(int, newdfd) __string(newname, newname) __field(int, flags)),
+ TP_STRUCT__entry(__field(int, olddfd) __string_from_user(oldname, oldname) __field(int, newdfd) __string_from_user(newname, newname) __field(int, flags)),
TP_fast_assign(tp_assign(olddfd, olddfd) tp_copy_string_from_user(oldname, oldname) tp_assign(newdfd, newdfd) tp_copy_string_from_user(newname, newname) tp_assign(flags, flags)),
TP_printk()
)