Fix for 1156867: pt-stalk doesn't print the function name being used

This commit is contained in:
Brian Fraser
2013-04-08 10:13:56 -03:00
parent f8999689b5
commit 59cd002335
2 changed files with 5 additions and 5 deletions

View File

@@ -1255,7 +1255,7 @@ stalk() {
cycles_true=0 cycles_true=0
fi fi
local msg="Check results: $OPT_VARIABLE=$value, matched=${matched:-no}, cycles_true=$cycles_true" local msg="Check results: $OPT_FUNCTION($OPT_VARIABLE)=$value, matched=${matched:-no}, cycles_true=$cycles_true"
if [ "$matched" ]; then if [ "$matched" ]; then
log "$msg" log "$msg"
else else

View File

@@ -120,7 +120,7 @@ PerconaTest::kill_program(pid_file => $pid_file);
$output = `cat $log_file 2>/dev/null`; $output = `cat $log_file 2>/dev/null`;
unlike( unlike(
$output, $output,
qr/Check results: Threads_running=\d+, matched=no, cycles_true=0/, qr/Check results: status\(Threads_running\)=\d+, matched=no, cycles_true=0/,
"Non-matching results not logged because --verbose=2" "Non-matching results not logged because --verbose=2"
) or diag(`cat $log_file 2>/dev/null`, `cat $dest/*-output 2>/dev/null`); ) or diag(`cat $log_file 2>/dev/null`, `cat $dest/*-output 2>/dev/null`);
@@ -153,7 +153,7 @@ PerconaTest::kill_program(pid_file => $pid_file);
$output = `cat $log_file 2>/dev/null`; $output = `cat $log_file 2>/dev/null`;
like( like(
$output, $output,
qr/Check results: Threads_running=\d+, matched=no, cycles_true=0/, qr/Check results: status\(Threads_running\)=\d+, matched=no, cycles_true=0/,
"Matching results logged with --verbose 3" "Matching results logged with --verbose 3"
) or diag(`cat $dest/*-output 2>/dev/null`); ) or diag(`cat $dest/*-output 2>/dev/null`);
@@ -201,7 +201,7 @@ PerconaTest::wait_until(sub { !-f $pid_file });
$output = `cat $dest/*-trigger 2>/dev/null`; $output = `cat $dest/*-trigger 2>/dev/null`;
like( like(
$output, $output,
qr/Check results: Uptime=\d+, matched=yes, cycles_true=2/, qr/Check results: status\(Uptime\)=\d+, matched=yes, cycles_true=2/,
"Collect triggered" "Collect triggered"
) )
or diag( or diag(
@@ -304,7 +304,7 @@ is(
$output = `cat $log_file 2>/dev/null`; $output = `cat $log_file 2>/dev/null`;
like( like(
$output, $output,
qr/Check results: Aborted_connects=|variable=Aborted_connects/, qr/Check results: status\(Aborted_connects\)=|variable=Aborted_connects/,
"Read default config file" "Read default config file"
); );