kdump: decode shm_open2

This is the kdump counterpart of the truss support added in r358116, and
also a part of D23733. shm_open2 is the successor to shm_open.

Reviewed by:	kaktus
This commit is contained in:
Kyle Evans 2020-02-19 14:55:59 +00:00
parent bcca34259c
commit c1b0c84747

View File

@ -1263,6 +1263,22 @@ ktrsyscall(struct ktr_syscall *ktr, u_int sv_flags)
narg -= 2; narg -= 2;
break; break;
#endif #endif
case SYS_shm_open2:
if (ip[0] == (uintptr_t)SHM_ANON) {
printf("(SHM_ANON");
ip++;
} else {
print_number(ip, narg, c);
}
putchar(',');
print_mask_arg(sysdecode_open_flags, ip[0]);
putchar(',');
decode_filemode(ip[1]);
putchar(',');
print_mask_arg(sysdecode_shmflags, ip[2]);
ip += 3;
narg -= 3;
break;
case SYS_minherit: case SYS_minherit:
print_number(ip, narg, c); print_number(ip, narg, c);
print_number(ip, narg, c); print_number(ip, narg, c);