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