-
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pmdabpftrace: deduplicate tracepoint names
- Loading branch information
1 parent
f5fe105
commit 9448695
Showing
4 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/sh | ||
# PCP QA Test No. 1725 | ||
# Exercise the bpftrace PMDA - list tracepoints | ||
# | ||
|
||
seq=`basename $0` | ||
echo "QA output created by $seq" | ||
|
||
. ./common.bpftrace | ||
|
||
_pmdabpftrace_check | ||
|
||
status=1 # failure is the default! | ||
$sudo rm -rf $tmp.* $seq.full | ||
|
||
_prepare_pmda bpftrace | ||
trap "_pmdabpftrace_cleanup; exit \$status" 0 1 2 3 15 | ||
_stop_auto_restart pmcd | ||
|
||
|
||
# real QA test starts here | ||
_pmdabpftrace_clean_autostart_scripts | ||
cat <<EOF | _pmdabpftrace_install | ||
# Installed by PCP QA test $seq on `date` | ||
EOF | ||
|
||
echo "=== check tracepoint metric ===" | ||
pminfo -dmtT bpftrace.info.tracepoints | ||
|
||
echo | ||
echo "=== check example tracepoint metric value ===" | ||
pminfo -f bpftrace.info.tracepoints | tr ',' '\n' \ | ||
| grep kprobe:version_show | ||
|
||
|
||
_pmdabpftrace_remove | ||
status=0 | ||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
QA output created by 1725 | ||
|
||
=== bpftrace agent installation === | ||
Updating the Performance Metrics Name Space (PMNS) ... | ||
Terminate PMDA if already installed ... | ||
[...install files, make output...] | ||
Updating the PMCD control file, and notifying PMCD ... | ||
Check bpftrace metrics have appeared ... 7 metrics and X values | ||
|
||
=== check tracepoint metric === | ||
|
||
bpftrace.info.tracepoints PMID: 151.1.2 [list all available tracepoints] | ||
Data Type: string InDom: PM_INDOM_NULL 0xffffffff | ||
Semantics: instant Units: none | ||
Help: | ||
list all available tracepoints | ||
|
||
=== check example tracepoint metric value === | ||
kprobe:version_show | ||
|
||
=== remove bpftrace agent === | ||
Culling the Performance Metrics Name Space ... | ||
bpftrace ... done | ||
Updating the PMCD control file, and notifying PMCD ... | ||
[...removing files...] | ||
Check bpftrace metrics have gone away ... OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters