kernel/trace/trace_syscalls.c:779:7: error: '__NR_mq_timedsend' undeclared
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace for-next head: 7281582a91c6549e6c302a47718a8aa33e27e2df commit: b4f7624cfc9422209b844793521c60edb289fb69 [5/15] tracing: Have system call events record user array data config: riscv-randconfig-002-20251103 (https://download.01.org/0day-ci/archive/20251103/[email protected]/config) compiler: riscv32-linux-gcc (GCC) 10.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251103/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
kernel/trace/trace_syscalls.c: In function 'check_faultable_syscall':
>> kernel/trace/trace_syscalls.c:779:7: error: '__NR_mq_timedsend' undeclared (first use in this function)
779 | case __NR_mq_timedsend:
| ^~~~~~~~~~~~~~~~~
kernel/trace/trace_syscalls.c:779:7: note: each undeclared identifier is reported only once for each function it appears in
kernel/trace/trace_syscalls.c:910:7: error: '__NR_utimensat' undeclared (first use in this function)
910 | case __NR_utimensat:
| ^~~~~~~~~~~~~~vim +/__NR_mq_timedsend +779 kernel/trace/trace_syscalls.c
760
761 /*
762 * For system calls that reference user space memory that can
763 * be recorded into the event, set the system call meta data's user_mask
764 * to the "args" index that points to the user space memory to retrieve.
765 */
766 static void check_faultable_syscall(struct trace_event_call *call, int nr)
767 {
768 struct syscall_metadata *sys_data = call->data;
769
770 /* Only work on entry */
771 if (sys_data->enter_event != call)
772 return;
773
774 sys_data->user_arg_size = -1;
775
776 switch (nr) {
777 /* user arg 1 with size arg at 2 */
778 case __NR_write:
> 779 case __NR_mq_timedsend:
780 case __NR_pwrite64:
781 sys_data->user_mask = BIT(1);
782 sys_data->user_arg_size = 2;
783 break;
784 /* user arg at position 0 */
785 #ifdef __NR_access
786 case __NR_access:
787 #endif
788 case __NR_acct:
789 case __NR_add_key: /* Just _type. TODO add _description */
790 case __NR_chdir:
791 #ifdef __NR_chown
792 case __NR_chown:
793 #endif
794 #ifdef __NR_chmod
795 case __NR_chmod:
796 #endif
797 case __NR_chroot:
798 #ifdef __NR_creat
799 case __NR_creat:
800 #endif
801 case __NR_delete_module:
802 case __NR_execve:
803 case __NR_fsopen:
804 case __NR_getxattr: /* Just pathname, TODO add name */
805 #ifdef __NR_lchown
806 case __NR_lchown:
807 #endif
808 case __NR_lgetxattr: /* Just pathname, TODO add name */
809 case __NR_lremovexattr: /* Just pathname, TODO add name */
810 #ifdef __NR_link
811 case __NR_link: /* Just oldname. TODO add newname */
812 #endif
813 case __NR_listxattr: /* Just pathname, TODO add list */
814 case __NR_llistxattr: /* Just pathname, TODO add list */
815 case __NR_lsetxattr: /* Just pathname, TODO add list */
816 #ifdef __NR_open
817 case __NR_open:
818 #endif
819 case __NR_memfd_create:
820 case __NR_mount: /* Just dev_name, TODO add dir_name and type */
821 #ifdef __NR_mkdir
822 case __NR_mkdir:
823 #endif
824 #ifdef __NR_mknod
825 case __NR_mknod:
826 #endif
827 case __NR_mq_open:
828 case __NR_mq_unlink:
829 case __NR_pivot_root: /* Just new_root, TODO add old_root */
830 #ifdef __NR_readlink
831 case __NR_readlink:
832 #endif
833 case __NR_removexattr: /* Just pathname, TODO add name */
834 #ifdef __NR_rename
835 case __NR_rename: /* Just oldname. TODO add newname */
836 #endif
837 case __NR_request_key: /* Just _type. TODO add _description */
838 #ifdef __NR_rmdir
839 case __NR_rmdir:
840 #endif
841 case __NR_setxattr: /* Just pathname, TODO add list */
842 case __NR_shmdt:
843 #ifdef __NR_statfs
844 case __NR_statfs:
845 #endif
846 case __NR_swapon:
847 case __NR_swapoff:
848 #ifdef __NR_symlink
849 case __NR_symlink: /* Just oldname. TODO add newname */
850 #endif
851 #ifdef __NR_truncate
852 case __NR_truncate:
853 #endif
854 #ifdef __NR_unlink
855 case __NR_unlink:
856 #endif
857 case __NR_umount2:
858 #ifdef __NR_utime
859 case __NR_utime:
860 #endif
861 #ifdef __NR_utimes
862 case __NR_utimes:
863 #endif
864 sys_data->user_mask = BIT(0);
865 break;
866 /* user arg at position 1 */
867 case __NR_execveat:
868 case __NR_faccessat:
869 case __NR_faccessat2:
870 case __NR_finit_module:
871 case __NR_fchmodat:
872 case __NR_fchmodat2:
873 case __NR_fchownat:
874 case __NR_fgetxattr:
875 case __NR_flistxattr:
876 case __NR_fsetxattr:
877 case __NR_fspick:
878 case __NR_fremovexattr:
879 #ifdef __NR_futimesat
880 case __NR_futimesat:
881 #endif
882 case __NR_getxattrat: /* Just pathname, TODO add name */
883 case __NR_inotify_add_watch:
884 case __NR_linkat: /* Just oldname. TODO add newname */
885 case __NR_listxattrat: /* Just pathname, TODO add list */
886 case __NR_mkdirat:
887 case __NR_mknodat:
888 case __NR_mount_setattr:
889 case __NR_move_mount: /* Just from_pathname, TODO add to_pathname */
890 case __NR_name_to_handle_at:
891 #ifdef __NR_newfstatat
892 case __NR_newfstatat:
893 #endif
894 case __NR_openat:
895 case __NR_openat2:
896 case __NR_open_tree:
897 case __NR_open_tree_attr:
898 case __NR_readlinkat:
899 #ifdef __NR_renameat
900 case __NR_renameat: /* Just oldname. TODO add newname */
901 #endif
902 case __NR_renameat2: /* Just oldname. TODO add newname */
903 case __NR_removexattrat: /* Just pathname, TODO add name */
904 case __NR_quotactl:
905 case __NR_setxattrat: /* Just pathname, TODO add list */
906 case __NR_syslog:
907 case __NR_symlinkat: /* Just oldname. TODO add newname */
908 case __NR_statx:
909 case __NR_unlinkat:
910 case __NR_utimensat:
911 sys_data->user_mask = BIT(1);
912 break;
913 /* user arg at position 2 */
914 case __NR_init_module:
915 case __NR_fsconfig:
916 sys_data->user_mask = BIT(2);
917 break;
918 /* user arg at position 4 */
919 case __NR_fanotify_mark:
920 sys_data->user_mask = BIT(4);
921 break;
922 default:
923 sys_data->user_mask = 0;
924 }
925 }
926
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki