From b7f8567f89b9726c5d0803c44b64bce13d38431c Mon Sep 17 00:00:00 2001 From: William Cohen Date: Mon, 11 Oct 2021 16:52:24 -0400 Subject: [PATCH] Allow stopwatch example to run with bpf backend. --- testsuite/systemtap.examples/general/stopwatches.meta | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testsuite/systemtap.examples/general/stopwatches.meta b/testsuite/systemtap.examples/general/stopwatches.meta index 98a6ea276..1e58d0fd9 100644 --- a/testsuite/systemtap.examples/general/stopwatches.meta +++ b/testsuite/systemtap.examples/general/stopwatches.meta @@ -2,7 +2,7 @@ title: See the amount of wall clock time a process spends in various states name: stopwatches.stp version: 1.0 author: William Cohen -keywords: time +keywords: time bpf subsystem: process status: experimental exit: user-controlled @@ -11,3 +11,5 @@ scope: process description: The stopwatch.stp script illustrates how to use multiple stopwatches record how much wallclock time a process spends in kernel- and user-space. On exit the script prints out the time in seconds, milliseconds, microseconds, and nanoseconds. Note that this output of this script is not directly comparable to the time command because time records the time that the process is actually active in kernel- and user-space. test_check: stap -p4 stopwatches.stp test_installcheck: stap stopwatches.stp -T 1 +test_check_bpf: stap --bpf -p4 stopwatches.stp +test_installcheck_bpf: stap --bpf stopwatches.stp -T 1 -- 2.43.5