Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/kallsyms_expand_symbol.exp

raw
1 # Alternate "pointer array" test that works on all systems.
2 # See also PR13467.
3 set test "kallsyms_expand_symbol"
4
5 # Test that the script can decode the kallsyms table to produce
6 # the first ten elements.
7 set plain_head [exec head /proc/kallsyms]
8 set syms_head [exec head /proc/kallsyms | cut -f3 -d\ ]
9 set ::result_string ${plain_head}\n${syms_head}
10 verbose -log "Expecting:\n$::result_string"
11
12 stap_run2 $srcdir/$subdir/$test.stp -c {head /proc/kallsyms}