forked from pcolby/pcp-pmda-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…rted PMNS data for compatibility with some PCP utilities, when the PMDA is not yet installed.
- Loading branch information
Showing
8 changed files
with
57 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
|
||
#ifndef SIMPLE | ||
#define SIMPLE 253 | ||
#endif | ||
|
||
simple { | ||
numfetch SIMPLE:0:0 | ||
color SIMPLE:0:1 | ||
|
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
|
||
#ifndef SIMPLECPU | ||
#define SIMPLECPU 129 | ||
#endif | ||
|
||
simplecpu { | ||
ticks | ||
} | ||
|
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_simplecpu_help_text-XXXXXXXXXX` | ||
./pmdasimplecpu --export-all "$TEMP_DIR" | ||
if [ $? -ne 0 ]; then exit; fi | ||
dbpmda -e -n "$TEMP_DIR/root" <<EOF | ||
open pipe pmdasimplecpu | ||
text simplecpu.ticks.total | ||
text simplecpu.ticks.cpu0 | ||
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 pipe pmdasimplecpu | ||
Start pmdasimplecpu PMDA: ./pmdasimplecpu | ||
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 |
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
|
||
#ifndef TRIVIAL | ||
#define TRIVIAL 250 | ||
#endif | ||
|
||
trivial { | ||
time TRIVIAL:0:0 | ||
} | ||
|
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_trivial_text-XXXXXXXXXX` | ||
./pmdatrivial --export-all "$TEMP_DIR" | ||
if [ $? -ne 0 ]; then exit; fi | ||
dbpmda -e -n "$TEMP_DIR/root" <<EOF | ||
open pipe pmdatrivial | ||
text trivial.time | ||
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 pipe pmdatrivial | ||
Start pmdatrivial PMDA: ./pmdatrivial | ||
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. |