From: David Goulet Date: Mon, 29 Sep 2014 19:06:56 +0000 (-0400) Subject: Test: add diag to each syscall test X-Git-Tag: v2.6.0-rc1~29 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=031f232e5ab64ce2ba35938db794490d9c924689;p=lttng-tools.git Test: add diag to each syscall test Signed-off-by: David Goulet --- diff --git a/tests/regression/kernel/test_syscall b/tests/regression/kernel/test_syscall index 55baab877..e3b29e819 100755 --- a/tests/regression/kernel/test_syscall +++ b/tests/regression/kernel/test_syscall @@ -32,6 +32,8 @@ function test_syscall_single() TRACE_PATH=$(mktemp -d) SESSION_NAME="kernel_syscall_single" + diag "Syscall trace single" + create_lttng_session $SESSION_NAME $TRACE_PATH lttng_enable_kernel_syscall_ok $SESSION_NAME "open" @@ -57,6 +59,8 @@ function test_syscall_two() TRACE_PATH=$(mktemp -d) SESSION_NAME="kernel_syscall_two" + diag "Syscall trace two events" + create_lttng_session $SESSION_NAME $TRACE_PATH lttng_enable_kernel_syscall_ok $SESSION_NAME "open" @@ -85,6 +89,8 @@ function test_syscall_all() TRACE_PATH=$(mktemp -d) SESSION_NAME="kernel_syscall_all" + diag "Syscall trace all events" + create_lttng_session $SESSION_NAME $TRACE_PATH # enable all syscalls @@ -111,6 +117,8 @@ function test_syscall_all_disable_one() TRACE_PATH=$(mktemp -d) SESSION_NAME="kernel_syscall_all_disable_one" + diag "Syscall trace all events and disable one" + create_lttng_session $SESSION_NAME $TRACE_PATH # enable all syscalls @@ -139,6 +147,8 @@ function test_syscall_all_disable_two() TRACE_PATH=$(mktemp -d) SESSION_NAME="kernel_syscall_all_disable_two" + diag "Syscall trace all events and disable two" + create_lttng_session $SESSION_NAME $TRACE_PATH # enable all syscalls @@ -169,6 +179,8 @@ function test_syscall_enable_all_disable_all() TRACE_PATH=$(mktemp -d) SESSION_NAME="kernel_syscall_enable_all_disable_all" + diag "Syscall trace all events and disable all" + create_lttng_session $SESSION_NAME $TRACE_PATH # enable all system calls @@ -194,6 +206,8 @@ function test_syscall_enable_all_disable_all_enable_all() TRACE_PATH=$(mktemp -d) SESSION_NAME="kernel_syscall_enable_all_disable_all_enable_all" + diag "Syscall trace all events and enable/disable all" + create_lttng_session $SESSION_NAME $TRACE_PATH # enable all system calls @@ -225,6 +239,8 @@ function test_syscall_enable_all_disable_all_twice() TRACE_PATH=$(mktemp -d) SESSION_NAME="kernel_syscall_enable_all_disable_all_twice" + diag "Syscall trace all events and enable/disable all twice" + create_lttng_session $SESSION_NAME $TRACE_PATH # enable all system calls @@ -254,6 +270,8 @@ function test_syscall_enable_one_disable_one() TRACE_PATH=$(mktemp -d) SESSION_NAME="kernel_syscall_enable_one_disable_one" + diag "Syscall trace one event and disable one" + create_lttng_session $SESSION_NAME $TRACE_PATH # enable open system call @@ -279,6 +297,8 @@ function test_syscall_enable_two_disable_two() TRACE_PATH=$(mktemp -d) SESSION_NAME="kernel_syscall_enable_two_disable_two" + diag "Syscall trace two events and disable two" + create_lttng_session $SESSION_NAME $TRACE_PATH # enable open and close system calls @@ -306,6 +326,8 @@ function test_syscall_enable_two_disable_one() TRACE_PATH=$(mktemp -d) SESSION_NAME="kernel_syscall_enable_two_disable_one" + diag "Syscall trace two events and disable one" + create_lttng_session $SESSION_NAME $TRACE_PATH # enable open and close system calls @@ -336,6 +358,8 @@ function test_syscall_disable_twice() TRACE_PATH=$(mktemp -d) SESSION_NAME="kernel_syscall_disable_twice" + diag "Syscall trace one event and disable twice" + create_lttng_session $SESSION_NAME $TRACE_PATH lttng_enable_kernel_syscall_ok $SESSION_NAME "open" @@ -354,6 +378,8 @@ function test_syscall_disable_all_twice() TRACE_PATH=$(mktemp -d) SESSION_NAME="kernel_syscall_disable_all_twice" + diag "Syscall trace all events and disable all twice" + create_lttng_session $SESSION_NAME $TRACE_PATH lttng_enable_kernel_syscall_ok $SESSION_NAME @@ -373,6 +399,8 @@ function test_syscall_enable_unknown() TRACE_PATH=$(mktemp -d) SESSION_NAME="kernel_syscall_enable_unknown" + diag "Syscall enable an unknown event" + create_lttng_session $SESSION_NAME $TRACE_PATH lttng_enable_kernel_syscall_fail $SESSION_NAME "thissyscallcannotexist" @@ -387,6 +415,8 @@ function test_syscall_enable_all_enable_one() TRACE_PATH=$(mktemp -d) SESSION_NAME="kernel_syscall_enable_all_enable_one" + diag "Syscall enable all and enable one" + create_lttng_session $SESSION_NAME $TRACE_PATH lttng_enable_kernel_syscall_ok $SESSION_NAME @@ -403,6 +433,8 @@ function test_syscall_disable_all_disable_one() TRACE_PATH=$(mktemp -d) SESSION_NAME="kernel_syscall_enable_all_enable_one" + diag "Syscall disable all and disable one" + create_lttng_session $SESSION_NAME $TRACE_PATH lttng_enable_kernel_syscall_ok $SESSION_NAME @@ -421,6 +453,8 @@ function test_syscall_enable_channel_disable_all() SESSION_NAME="kernel_syscall_enable_channel_disable_all" CHANNEL_NAME="channel" + diag "Syscall enable channel and disable all" + create_lttng_session $SESSION_NAME $TRACE_PATH lttng_enable_kernel_channel_ok $SESSION_NAME $CHANNEL_NAME @@ -437,6 +471,8 @@ function test_syscall_enable_channel_disable_one() SESSION_NAME="kernel_syscall_enable_channel_disable_all" CHANNEL_NAME="channel" + diag "Syscall enable channel and disable one" + create_lttng_session $SESSION_NAME $TRACE_PATH lttng_enable_kernel_channel_ok $SESSION_NAME $CHANNEL_NAME