Commit [e21569]  Maximize  Restore  History

OProfile testsuite, add operf support to the testsuite

This patch adds support for the basic testing of the new
operf user interface. It leverages the existing event
tables for the various processors. OProfile has its own
kernel support for the names of the processors. This
information is only available when the OProfile kernel
module is loaded. The operf support gets the CPU name from
the ophelp command instead.

The patch also fixes an error in the existing opcontol testsuite.
Specifically, the test for the string "opcontrol error:" will always
fail because the output from the command does not include the word
"opcontrol". Removed "opcontrol" from the test string.

Added commands to the opcontrol testsuite to make sure the
daemonrc file is removed. This is necessary to ensure there are no
extraneous settings, for example filter settings, that will cause errors.

Trailing blanks on five lines in the existing files were removed.

The testsuit for testing OProfile using the opcontrol interface
has been renamed to oprofile-opcontrol. The new testsuite to
test OProfile using operf is called oprofile-operf. To run both
testsuites, use the testsuite oprofile. Specifically the commands
to run the testsuites are:

runtest --tool oprofile-opcontrol // test opcontrol interface

runtest --tool oprofile-operf // test operf interface

runtest --tool oprofile // test both interfaces

Signed-off-by: Carl Love <>

Carl Love Carl Love 2012-09-26

Maynard Johnson Maynard Johnson 2012-09-26

changed testsuite/README
changed testsuite/config/unix.exp
changed testsuite/lib/op_events.exp
changed testsuite/lib/op_util.exp
added testsuite/lib/operf_util.exp
added testsuite/oprofile-operf/oprofile-operf-run.exp
renamed (with changes) testsuite/oprofile/oprofile-run.exp -> testsuite/oprofile-opcontrol/oprofile-opcontrol-run.exp
testsuite/README Diff Switch to side-by-side view
testsuite/config/unix.exp Diff Switch to side-by-side view
testsuite/lib/op_events.exp Diff Switch to side-by-side view
testsuite/lib/op_util.exp Diff Switch to side-by-side view
testsuite/lib/operf_util.exp Diff Switch to side-by-side view
testsuite/oprofile-operf/oprofile-operf-run.exp Diff Switch to side-by-side view
testsuite/oprofile/oprofile-run.exp to testsuite/oprofile-opcontrol/oprofile-opcontrol-run.exp Diff Switch to side-by-side view

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks