global res
probe begin {
	printf("BEGIN\n")
}

probe kernel.function("vfs_read") {
	if ($file != 0 && $file->f_cred->usage->counter > 0 && $buf != 0)
		res = 1
}

probe kernel.function("vfs_read").return {
	if (res && $return != 0) 
		exit()
}

probe end {
	printf("END PASS\n")
}
