On 5/27/2026 3:11 AM, Xinhui Yang wrote: > Following the addition of fsmount(2) series of syscalls in the syscall > handler, strace support is added, with a dedicated function to print the > parameters of fsconfig(2), which contains parameters that can be > interpreted as multiple types. > > Snippet of the strace dump when running `mount -t tmpfs tmpfs /media`: > > 18 fsopen(tmpfs,1) = 3 > 18 read(3,0x407fcf1c,8191) = -1 errno=61 (No data available) > 18 fsconfig(3,FSCONFIG_SET_STRING,"source","tmpfs",0) = 0 > 18 read(3,0x407fce3c,8191) = -1 errno=61 (No data available) > 18 fsconfig(3,FSCONFIG_CMD_CREATE,NULL,NULL,0) = 0 > 18 read(3,0x407fce3c,8191) = -1 errno=61 (No data available) > 18 fsmount(3,1,0) = 4 > 18 read(3,0x407fce3c,8191) = -1 errno=61 (No data available) > 18 statx(4,"",AT_EMPTY_PATH|AT_STATX_SYNC_AS_STAT,0x1000,0x407fee98) = 0 > 18 move_mount(4,,-100,/media,4) = 0 > 18 read(3,0x407fcfcc,8191) = -1 errno=61 (No data available) > 18 close(3) = 0 > 18 close(4) = 0 > > Signed-off-by: Xinhui Yang <[email protected]> > --- > linux-user/strace.c | 105 +++++++++++++++++++++++++++++++++++++++++ > linux-user/strace.list | 15 ++++++ > 2 files changed, 120 insertions(+) >
Reviewed-by: Pierrick Bouvier <[email protected]>
