File: complex_types

package info (click to toggle)
bpftrace 0.24.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,496 kB
  • sloc: cpp: 60,982; ansic: 10,952; python: 953; yacc: 665; sh: 536; lex: 295; makefile: 22
file content (15 lines) | stat: -rw-r--r-- 695 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
NAME struct-array
RUN {{BPFTRACE}} runtime/scripts/struct_array.bt -c ./testprogs/struct_array
EXPECT 100 102 104 106 108 -- 1 3 5 7 9 -- 100 98 96 94 92

NAME struct-array with variables
RUN {{BPFTRACE}} runtime/scripts/struct_array_vars.bt -c ./testprogs/struct_array
EXPECT 100 102 104 106 108 -- 1 3 5 7 9 -- 100 98 96 94 92 -- 42

NAME struct-array with declared variables
RUN {{BPFTRACE}} runtime/scripts/struct_let.bt -c ./testprogs/struct_array
EXPECT 100 102 104 106 108

NAME pointer_to_pointer
RUN {{BPFTRACE}} -e 'struct Foo { int a; char b[10]; } uprobe:./testprogs/ptr_to_ptr:function { $pp = (struct Foo **)arg0; printf("%d\n", (*$pp)->a); }' -c ./testprogs/ptr_to_ptr
EXPECT 123