# # test_basic of perf_probe test # Author: Michael Petlan <mpetlan@redhat.com> # Author: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> # # Description: # # This test tests basic functionality of perf probe command. #
# include working environment
. ../common/init.sh
TEST_RESULT=0
if ! check_kprobes_available; then
print_overall_skipped
exit 2 fi
### help message
if [ "$PARAM_GENERAL_HELP_TEXT_CHECK" = "y" ]; then # test that a help message is shown and looks reasonable
$CMD_PERF probe --help > $LOGS_DIR/basic_helpmsg.log 2> $LOGS_DIR/basic_helpmsg.err
PERF_EXIT_CODE=$?
../common/check_all_patterns_found.pl "PERF-PROBE""NAME""SYNOPSIS""DESCRIPTION""OPTIONS""PROBE\s+SYNTAX""PROBE\s+ARGUMENT""LINE\s+SYNTAX" < $LOGS_DIR/basic_helpmsg.log
CHECK_EXIT_CODE=$?
.CHECK_EXIT_CODE?
(( CHECK_EXIT_CODE += $? ))
../common/check_all_patterns_found.pl "vmlinux"java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(( CHECK_EXIT_CODE += $? ))
../common/check_all_patterns_found.pl "no-inlines""funcs.*FILTER""filter=FILTER""force""dry-run""max-probes""exec=""demangle-kernel" < $LOGS_DIR/basic_helpmsg.log
(( CHECK_EXIT_CODE += $? ))
../common/check_no_patterns_found.pl "No manual entry for" < $LOGS_DIR/basic_helpmsg.err
(( CHECK_EXIT_CODE += $? ))
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.