Skip to content

Commit

Permalink
tracepoint: Add runtime test for data_loc
Browse files Browse the repository at this point in the history
  • Loading branch information
danobi committed Sep 30, 2020
1 parent a61c79d commit 123afcc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/runtime/probe
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ RUN bpftrace -v -e 'tracepoint:syscalls:sys_*_nanosleep { printf("hit "); }' -c
EXPECT hit hit
TIMEOUT 5

# Test that we get at least two characters out
NAME tracepoint_data_loc
RUN bpftrace -v -e 'tracepoint:irq:irq_handler_entry { print(str(args->name)) }'
EXPECT ..+
TIMEOUT 5

NAME profile
RUN bpftrace -v -e 'profile:hz:599 { @[tid] = count(); exit();}'
EXPECT \@\[[0-9]*\]\:\s[0-9]
Expand Down

0 comments on commit 123afcc

Please sign in to comment.