repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Linux 4.8-rc8
[linux/fpc-iii.git]
/
tools
/
testing
/
selftests
/
ftrace
/
test.d
/
kprobe
/
add_and_remove.tc
blob
c3843ed49bf6dfe268971e7d013b795ae30e7b4f
1
#!/bin/sh
2
# description: Kprobe dynamic event - adding and removing
3
4
[
-f
kprobe_events
]
|| exit_unsupported
# this is configurable
5
6
echo
0
>
events
/
enable
7
echo
>
kprobe_events
8
echo
p
:
myevent _do_fork
>
kprobe_events
9
grep
myevent kprobe_events
10
test -d
events
/
kprobes
/
myevent
11
echo
>
kprobe_events
12
clear_trace