]> sourceware.org Git - systemtap.git/commit
testsuite/systemtap.base: add new testcase uprobes_filtering.exp
authorJonathan Lebon <jlebon@redhat.com>
Wed, 19 Jun 2013 14:12:48 +0000 (10:12 -0400)
committerJonathan Lebon <jlebon@redhat.com>
Wed, 19 Jun 2013 18:12:38 +0000 (14:12 -0400)
commitfe00839a4de7eb68d6d206447c709ecce83c60e3
treecc8eb3011d7350e243018042cf115725607bd4ac
parent68561b3dd78f148420a4fc678c120f26d6cd9350
testsuite/systemtap.base: add new testcase uprobes_filtering.exp

This new testcase uses the newly implemented define UPROBES_HITCOUNT
(see previous commit) to verify that uprobes filtering work as it
should.

If prefiltering is supported by the kernel (from 3.9), then it verifies
that UPROBE_HANDLER_REMOVE is obeyed and that the prehandler() is not
called over and over for unwanted processes, allowing the stap script
to run at full speed.

In both cases (whether or not prefiltering is supported), it also
verifies that the probe handlers are called only for the processes of
interest and no other (i.e. it makes sure that the filtering in
stapiu_probe_prehandler() works).
testsuite/systemtap.base/uprobes_filtering.exp [new file with mode: 0644]
This page took 0.204185 seconds and 5 git commands to generate.