-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed an omission in the pcp::pmda::init_dso function - needed to be …
…calling pdmaDSO; also updated the examples to build DSO shared objects in addition to the daemons they already build, and add some functional tests to prove it all.
- Loading branch information
Showing
13 changed files
with
61 additions
and
3 deletions.
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
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
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
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
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,8 @@ | ||
TEMP_DIR=`mktemp -d -t test_simple_open_dso-XXXXXXXXXX` | ||
./pmdasimple --export-all "$TEMP_DIR" | ||
if [ $? -ne 0 ]; then exit; fi | ||
dbpmda -e -n "$TEMP_DIR/root" <<EOF | ||
open dso libpmda_simple.so simple_init | ||
close | ||
EOF | ||
rm -rf "$TEMP_DIR" |
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,2 @@ | ||
open dso libpmda_simple.so simple_init | ||
close |
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,10 @@ | ||
TEMP_DIR=`mktemp -d -t test_simplecpu_open_dso-XXXXXXXXXX` | ||
./pmdasimplecpu --export-all "$TEMP_DIR" | ||
if [ $? -ne 0 ]; then exit; fi | ||
dbpmda -e -n "$TEMP_DIR/root" <<EOF | ||
open dso libpmda_simplecpu.so simplecpu_init | ||
text simplecpu.ticks.total | ||
text simplecpu.ticks.cpu0 | ||
close | ||
EOF | ||
rm -rf "$TEMP_DIR" |
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,10 @@ | ||
open dso libpmda_simplecpu.so simplecpu_init | ||
text simplecpu.ticks.total | ||
PMID: 129.0.0 | ||
[The amount of time spent in various states] | ||
The amount of time spent in various states | ||
text simplecpu.ticks.cpu0 | ||
PMID: 129.0.1 | ||
[The amount of time spent in various states] | ||
The amount of time spent in various states | ||
close |
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,9 @@ | ||
TEMP_DIR=`mktemp -d -t test_trivial_open_dso-XXXXXXXXXX` | ||
./pmdatrivial --export-all "$TEMP_DIR" | ||
if [ $? -ne 0 ]; then exit; fi | ||
dbpmda -e -n "$TEMP_DIR/root" <<EOF | ||
open dso libpmda_trivial.so trivial_init | ||
text trivial.time | ||
close | ||
EOF | ||
rm -rf "$TEMP_DIR" |
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,6 @@ | ||
open dso libpmda_trivial.so trivial_init | ||
text trivial.time | ||
PMID: 250.0.0 | ||
[The time in seconds since 1 Jan 1970] | ||
The time in seconds since the 1st of January, 1970. | ||
close |