Module ImportFrom alias Import alias identifier Import alias Import alias ImportFrom alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Assign NameStore SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Assign NameStore SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr Num For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad SubscriptLoad NameLoad Index Num attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad TupleLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num decorator_list Assign NameStore Str Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A bcc BPF N/A ctypes ct N/A random N/A time unittest main TestCase TestArray N/A TestCase N/A test_simple N/A N/A self N/A N/A N/A b N/A BPF text BPF_TABLE("array", int, u64, table1, 128); N/A t1 N/A b N/A table1 N/A N/A t1 N/A N/A N/A ct c_int 0 N/A N/A ct c_ulonglong 100 N/A N/A t1 N/A N/A N/A ct c_int 127 N/A N/A ct c_ulonglong 1000 N/A N/A i v N/A N/A t1 items N/A N/A N/A N/A i value 0 N/A N/A N/A N/A self assertEqual N/A v value 100 N/A N/A N/A i value 127 N/A N/A N/A N/A self assertEqual N/A v value 1000 N/A N/A N/A self assertEqual N/A len t1 128 N/A test_native_type N/A N/A self N/A N/A N/A b N/A BPF text BPF_TABLE("array", int, u64, table1, 128); N/A t1 N/A b N/A table1 N/A N/A t1 N/A 0 N/A N/A ct c_ulonglong 100 N/A N/A t1 N/A -2 N/A N/A ct c_ulonglong 37 N/A N/A t1 N/A 127 N/A N/A ct c_ulonglong 1000 N/A N/A i v N/A N/A t1 items N/A N/A N/A N/A i value 0 N/A N/A N/A N/A self assertEqual N/A v value 100 N/A N/A N/A i value 127 N/A N/A N/A N/A self assertEqual N/A v value 1000 N/A N/A N/A self assertEqual N/A len t1 128 N/A N/A N/A self assertEqual N/A N/A t1 N/A -2 value 37 N/A N/A N/A self assertEqual N/A N/A t1 N/A -1 value N/A N/A t1 N/A 127 value N/A test_perf_buffer N/A N/A self N/A N/A N/A N/A self counter 0 Data N/A N/A ct Structure N/A N/A _fields_ N/A N/A ts N/A ct c_ulonglong N/A cb N/A N/A cpu data size N/A N/A N/A N/A N/A self assertGreater size N/A N/A ct sizeof Data N/A event N/A N/A N/A ct cast data N/A N/A ct POINTER Data contents N/A N/A self counter 1 N/A N/A text 
BPF_PERF_OUTPUT(events);
int kprobe__sys_nanosleep(void *ctx) {
    struct {
        u64 ts;
    } data = {bpf_ktime_get_ns()};
    events.perf_submit(ctx, &data, sizeof(data));
    return 0;
}
 N/A b N/A BPF text text N/A N/A N/A N/A b N/A events open_perf_buffer cb N/A N/A N/A time sleep 0.1 N/A N/A N/A b kprobe_poll N/A N/A N/A self assertGreater N/A self counter 0 N/A N/A N/A N/A __name__ __main__ N/A N/A N/A main