#!/bin/sh # description: Kprobe dynamic event with function tracer [ -f kprobe_events ] || exit_unsupported # this is configurable grep function available_tracers || exit_unsupported # this is configurable # prepare echo nop > current_tracer echo _do_fork > set_ftrace_filter echo 0 > events/enable echo > kprobe_events echo 'p:testprobe _do_fork' > kprobe_events # kprobe on / ftrace off echo 1 > events/kprobes/testprobe/enable echo > trace ( echo "forked") grep testprobe trace ! grep '_do_fork <-' trace # kprobe on / ftrace on echo function > current_tracer echo > trace ( echo "forked") grep testprobe trace grep '_do_fork <-' trace # kprobe off / ftrace on echo 0 > events/kprobes/testprobe/enable echo > trace ( echo "forked") ! grep testprobe trace grep '_do_fork <-' trace # kprobe on / ftrace on echo 1 > events/kprobes/testprobe/enable echo function > current_tracer echo > trace ( echo "forked") grep testprobe trace grep '_do_fork <-' trace # kprobe on / ftrace off echo nop > current_tracer echo > trace ( echo "forked") grep testprobe trace ! grep '_do_fork <-' trace # cleanup echo nop > current_tracer echo > set_ftrace_filter echo 0 > events/kprobes/testprobe/enable echo > kprobe_events echo > trace </option> <option value='packet-rx-pump-back'>packet-rx-pump-back</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table> <table class='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&id=39cb2c9a316e77f6dfba96c543e55b6672d5a37e'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/drivers/usb/renesas_usbhs/mod.c?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/drivers/usb/renesas_usbhs/mod.c?h=nds-private-remove&id=39cb2c9a316e77f6dfba96c543e55b6672d5a37e'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/drivers/usb/renesas_usbhs/mod.c?h=nds-private-remove&id=39cb2c9a316e77f6dfba96c543e55b6672d5a37e'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/drivers/usb/renesas_usbhs/mod.c?h=nds-private-remove&id=39cb2c9a316e77f6dfba96c543e55b6672d5a37e'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/drivers/usb/renesas_usbhs/mod.c'> <input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='39cb2c9a316e77f6dfba96c543e55b6672d5a37e'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&id=39cb2c9a316e77f6dfba96c543e55b6672d5a37e'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/drivers?h=nds-private-remove&id=39cb2c9a316e77f6dfba96c543e55b6672d5a37e'>drivers</a>/<a href='/cgit.cgi/linux/net-next.git/log/drivers/usb?h=nds-private-remove&id=39cb2c9a316e77f6dfba96c543e55b6672d5a37e'>usb</a>/<a href='/cgit.cgi/linux/net-next.git/log/drivers/usb/renesas_usbhs?h=nds-private-remove&id=39cb2c9a316e77f6dfba96c543e55b6672d5a37e'>renesas_usbhs</a>/<a href='/cgit.cgi/linux/net-next.git/log/drivers/usb/renesas_usbhs/mod.c?h=nds-private-remove&id=39cb2c9a316e77f6dfba96c543e55b6672d5a37e'>mod.c</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/drivers/usb/renesas_usbhs/mod.c?h=nds-private-remove&id=39cb2c9a316e77f6dfba96c543e55b6672d5a37e&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>