]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
lib/syscall-shim: Adapt to updated libposix-process config options
authorMichalis Pappas <michalis@unikraft.io>
Tue, 1 Apr 2025 15:32:59 +0000 (17:32 +0200)
committerUnikraft Bot <monkey@unikraft.io>
Wed, 30 Apr 2025 09:42:51 +0000 (09:42 +0000)
Following the consolidation of CONFIG_LIBPOSIX_PROCESS_PIDS and
CONFIG_LIBPOSIX_PROCESS_CLONE into LIBPOSIX_PROCESS_MULTITHREADING,
update to the new config.

Signed-off-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
GitHub-Closes: #1627

lib/syscall_shim/uk_prsyscall.c

index f98ae94c978a8d3717db3d756a00e7789942185a..47b7ec05ed67a94dbc48373612eece7ca9bc6b3c 100644 (file)
@@ -580,7 +580,7 @@ static inline void param_msgflags(struct uk_streambuf *sb, int fmtf, int flags)
 }
 #endif /* CONFIG_LIBPOSIX_SOCKET */
 
-#if CONFIG_LIBPOSIX_PROCESS_CLONE
+#if CONFIG_LIBPOSIX_PROCESS_MULTITHREADING
 #include <uk/process.h>
 
 static inline void param_cloneflags(struct uk_streambuf *sb, int fmtf,
@@ -615,7 +615,7 @@ static inline void param_cloneflags(struct uk_streambuf *sb, int fmtf,
        PR_FLAG(sb, fmtf, orig_seek, CLONE_, IO,             flags);
        PR_FLAG_END(sb, fmtf, orig_seek, flags);
 }
-#endif /* CONFIG_LIBPOSIX_PROCESS_CLONE */
+#endif /* CONFIG_LIBPOSIX_PROCESS_MULTITHREADING */
 
 /* Pretty print a single parameter */
 static void pr_param(struct uk_streambuf *sb, int fmtf,
@@ -786,11 +786,11 @@ static void pr_param(struct uk_streambuf *sb, int fmtf,
                param_msgflags(sb, fmtf, param);
                break;
 #endif /* CONFIG_LIBPOSIX_SOCKET */
-#if CONFIG_LIBPOSIX_PROCESS_CLONE
+#if CONFIG_LIBPOSIX_PROCESS_MULTITHREADING
        case PT_CLONEFLAGS:
                param_cloneflags(sb, fmtf, param);
                break;
-#endif /* CONFIG_LIBPOSIX_PROCESS_CLONE */
+#endif /* CONFIG_LIBPOSIX_PROCESS_MULTITHREADING */
        case PT_STRUCT(timespec):
                PR_STRUCT(sb, fmtf, timespec, flags, param, 0, succ,
                          PT_UDEC, tv_sec,