| .. | .. |
|---|
| 1 | 1 | #!/bin/sh |
|---|
| 2 | 2 | # SPDX-License-Identifier: GPL-2.0 |
|---|
| 3 | 3 | # description: Kprobe event argument syntax |
|---|
| 4 | | - |
|---|
| 5 | | -[ -f kprobe_events ] || exit_unsupported # this is configurable |
|---|
| 6 | | - |
|---|
| 7 | | -grep "x8/16/32/64" README > /dev/null || exit_unsupported # version issue |
|---|
| 8 | | - |
|---|
| 9 | | -echo 0 > events/enable |
|---|
| 10 | | -echo > kprobe_events |
|---|
| 4 | +# requires: kprobe_events "x8/16/32/64":README |
|---|
| 11 | 5 | |
|---|
| 12 | 6 | PROBEFUNC="vfs_read" |
|---|
| 13 | 7 | GOODREG= |
|---|
| .. | .. |
|---|
| 103 | 97 | |
|---|
| 104 | 98 | test_goodarg "\$comm:string" "+0(\$stack):string" |
|---|
| 105 | 99 | test_badarg "\$comm:x64" "\$stack:string" "${GOODREG}:string" |
|---|
| 106 | | - |
|---|
| 107 | | -echo > kprobe_events |
|---|