#! /bin/sh

stap -p4 -g - $@ <<'END'

%{
#include <linux/version.h>
%}

function get_release () %{
/* this is a type error, detected by gcc */
STAP_RETVALUE = 5;
%}

probe begin
{
	log("hello from systemtap, kernel version " . get_release())
}

END
