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:
parent
bcca34259c
commit
c1b0c84747
@ -1263,6 +1263,22 @@ ktrsyscall(struct ktr_syscall *ktr, u_int sv_flags)
|
||||
narg -= 2;
|
||||
break;
|
||||
#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:
|
||||
print_number(ip, narg, c);
|
||||
print_number(ip, narg, c);
|
||||
|
Loading…
Reference in New Issue
Block a user