Debian Codegraph @

testsuite/runok/badregs.stp

raw
1 #! stap -gp5
2
3 // PR24408
4 global errors
5 probe oneshot {
6 try { printf("%lx", @kregister(0)) } catch { errors ++ }
7 try { printf("%lx", @uregister(0)) } catch { errors ++ }
8 // try { printf("%lx", @kregister(-1)) } catch { errors ++ } // but this -p4 fails on some arches with register_## fns
9 // try { printf("%lx", @uregister(-1)) } catch { errors ++ }
10 }
11 probe end { if (errors == 2) println ("PASS") else error ("FAIL: not enough errors") }