Sindbad~EG File Manager

Current Path : /proc/2470164/root/usr/share/systemtap/examples/memory/
Upload File :
Current File : //proc/2470164/root/usr/share/systemtap/examples/memory/vm.tracepoints.stp

#!/usr/bin/stap

global slabs

probe vm.kmem_cache_alloc {
	slabs [execname(), bytes_req]<<<1
}

probe timer.ms(10000)
{
	dummy = "";
	foreach ([name, bytes] in slabs) {
		if (dummy != name)
			printf("\nProcess:%s\n", name);
        	printf("Slab_size:%d\tCount:%d\n", bytes, @count(slabs[name, bytes]));
		dummy = name;
	}
	delete slabs
	printf("\n-------------------------------------------------------\n\n")
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists