svn commit: r358117 - head/usr.bin/kdump

Kyle Evans kevans at FreeBSD.org
Wed Feb 19 14:56:00 UTC 2020


Author: kevans
Date: Wed Feb 19 14:55:59 2020
New Revision: 358117
URL: https://svnweb.freebsd.org/changeset/base/358117

Log:
  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

Modified:
  head/usr.bin/kdump/kdump.c

Modified: head/usr.bin/kdump/kdump.c
==============================================================================
--- head/usr.bin/kdump/kdump.c	Wed Feb 19 14:54:33 2020	(r358116)
+++ head/usr.bin/kdump/kdump.c	Wed Feb 19 14:55:59 2020	(r358117)
@@ -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);


More information about the svn-src-all mailing list