[DTrace-devel] [PATCH] test: ensure tst.exitcore.sh works on all systems

Eugene Loh eugene.loh at oracle.com
Tue Feb 28 01:21:03 UTC 2023


Reviewed-by: Eugene Loh <eugene.loh at oracle.com>

On 2/27/23 20:10, Kris Van Hees via DTrace-devel wrote:
>   	$dtrace $dt_flags -s /dev/stdin <<EOF
> +	uintptr_t	*argv;
> +
>   	syscall::execve:entry
> -	/copyinstr((uintptr_t)args[1][0]) == "sleep" && args[1][1] &&
> -	 copyinstr((uintptr_t)args[1][1]) == "10000"/
> +	/args[1] && (argv = copyin((uintptr_t)args[1], 2 * sizeof(char *))) &&
> +	 copyinstr(argv[0]) == "sleep" && argv[1] &&
> +	 copyinstr(argv[1]) == "10000"/
>   	{
>   		core_pid = pid;
>   	}
> -- 2.39.1



More information about the DTrace-devel mailing list