X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng-abi.c;h=381a73904dfe60e6e6d0a8bc66a0cecf5fd65bf8;hb=7c92789f2e3f8b1d17e92ec9ade72fdab159c0f2;hp=b83ed3d211defb747447469fc40bba06d816242b;hpb=af991434d1e5fd073968feae6befdb240942def5;p=lttng-modules.git diff --git a/lttng-abi.c b/lttng-abi.c index b83ed3d2..381a7390 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -143,43 +143,6 @@ fd_error: return ret; } -static -int lttng_abi_syscall_list(void) -{ - struct file *syscall_list_file; - int file_fd, ret; - - file_fd = get_unused_fd(); - if (file_fd < 0) { - ret = file_fd; - goto fd_error; - } - - syscall_list_file = anon_inode_getfile("[lttng_syscall_list]", - <tng_syscall_list_fops, - NULL, O_RDWR); - if (IS_ERR(syscall_list_file)) { - ret = PTR_ERR(syscall_list_file); - goto file_error; - } - ret = lttng_syscall_list_fops.open(NULL, syscall_list_file); - if (ret < 0) - goto open_error; - fd_install(file_fd, syscall_list_file); - if (file_fd < 0) { - ret = file_fd; - goto fd_error; - } - return file_fd; - -open_error: - fput(syscall_list_file); -file_error: - put_unused_fd(file_fd); -fd_error: - return ret; -} - static void lttng_abi_tracer_version(struct lttng_kernel_tracer_version *v) {