xref: /xnu-8796.141.3/bsd/dev/dtrace/scripts/suspicious_task_vm_info_count.d (revision 1b191cb58250d0705d8a51287127505aa4bc0789)
1*1b191cb5SApple OSS Distributions #!/usr/sbin/dtrace -s
2*1b191cb5SApple OSS Distributions 
3*1b191cb5SApple OSS Distributions vminfo::suspicious_task_vm_info_count:
4*1b191cb5SApple OSS Distributions {
5*1b191cb5SApple OSS Distributions 	printf("%d[%s]: task_info() called with count=%d > TASK_VM_INFO_COUNT=%d",
6*1b191cb5SApple OSS Distributions 	       pid,
7*1b191cb5SApple OSS Distributions 	       execname,
8*1b191cb5SApple OSS Distributions 	       arg1,
9*1b191cb5SApple OSS Distributions 	       arg2);
10*1b191cb5SApple OSS Distributions 	stack();
11*1b191cb5SApple OSS Distributions 	ustack();
12*1b191cb5SApple OSS Distributions }
13