#! stap -p2

# On kernels with kretprobe data-pouch, we have a tricky situation
# with data types.  Make sure a few different cases will work...
probe kernel.function("kern_path_create").return !,
      kernel.function("do_path_lookup").return !,
      kernel.function("path_lookup").return
{
    if (@defined($path)) {
        println($path)
	println($path$)
    }
    else {
        println($nd)
	println($nd$)
    }
    println($$parms)
}
