| .. | .. |
|---|
| 1 | 1 | #!/bin/sh |
|---|
| 2 | 2 | # SPDX-License-Identifier: GPL-2.0 |
|---|
| 3 | 3 | # description: Kretprobe dynamic event with maxactive |
|---|
| 4 | | - |
|---|
| 5 | | -[ -f kprobe_events ] || exit_unsupported # this is configurable |
|---|
| 6 | | -grep -q 'r\[maxactive\]' README || exit_unsupported # this is older version |
|---|
| 7 | | - |
|---|
| 8 | | -echo > kprobe_events |
|---|
| 4 | +# requires: kprobe_events 'r[maxactive]':README |
|---|
| 9 | 5 | |
|---|
| 10 | 6 | # Test if we successfully reject unknown messages |
|---|
| 11 | 7 | if echo 'a:myprobeaccept inet_csk_accept' > kprobe_events; then false; else true; fi |
|---|
| .. | .. |
|---|
| 37 | 33 | echo 'r10 inet_csk_accept' > kprobe_events |
|---|
| 38 | 34 | grep inet_csk_accept kprobe_events |
|---|
| 39 | 35 | echo > kprobe_events |
|---|
| 40 | | - |
|---|
| 41 | | -clear_trace |
|---|