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