[LTTng-tools] Change name of file /proc/lttng-test-event-filter

Message ID 1473766874-25324-1-git-send-email-mohamad.gebai@gmail.com
State New
Delegated to: Jérémie Galarneau
Headers show

Commit Message

Mohamad Gebai Sept. 13, 2016, 11:41 a.m. UTC
Testing-related files will go under /proc/lttng-test/

Signed-off-by: Mohamad Gebai <mohamad.gebai at gmail.com>
---
 tests/destructive/metadata-regeneration             | 4 ++--
 tests/regression/kernel/test_clock_override         | 2 +-
 tests/regression/kernel/test_rotation_destroy_flush | 2 +-
 tests/regression/tools/filtering/test_valid_filter  | 2 +-
 tests/regression/tools/regen-metadata/test_kernel   | 4 ++--
 tests/regression/tools/regen-statedump/test_kernel  | 2 +-
 tests/regression/tools/wildcard/test_event_wildcard | 2 +-
 7 files changed, 9 insertions(+), 9 deletions(-)

Patch

diff --git a/tests/destructive/metadata-regeneration b/tests/destructive/metadata-regeneration
index d4e632a..eae3829 100755
--- a/tests/destructive/metadata-regeneration
+++ b/tests/destructive/metadata-regeneration
@@ -84,7 +84,7 @@  function test_kernel_local ()
 	create_lttng_session_ok $SESSION_NAME $TRACE_PATH
 	lttng_enable_kernel_event $SESSION_NAME $KERNEL_EVENT_NAME
 	start_lttng_tracing_ok $SESSION_NAME
-	echo -n "100" > /proc/lttng-test-filter-event
+	echo -n "100" > /proc/lttng-test/filter-event
 	stop_lttng_tracing_ok $SESSION_NAME
 	validate_trace_date $DATE1 $TRACE_PATH
 	start_lttng_tracing_ok $SESSION_NAME
@@ -106,7 +106,7 @@  function test_kernel_streaming ()
 	lttng_create_session_uri
 	lttng_enable_kernel_event $SESSION_NAME $KERNEL_EVENT_NAME
 	start_lttng_tracing_ok $SESSION_NAME
-	echo -n "100" > /proc/lttng-test-filter-event
+	echo -n "100" > /proc/lttng-test/filter-event
 	stop_lttng_tracing_ok $SESSION_NAME
 	validate_trace_date $DATE1 $TRACE_PATH/$HOSTNAME/$SESSION_NAME*
 	start_lttng_tracing_ok $SESSION_NAME
diff --git a/tests/regression/kernel/test_clock_override b/tests/regression/kernel/test_clock_override
index c52ddf1..ae71d38 100755
--- a/tests/regression/kernel/test_clock_override
+++ b/tests/regression/kernel/test_clock_override
@@ -25,7 +25,7 @@  SESSION_NAME="clock_override"
 NUM_TESTS=30
 EVENT_NAME="lttng_test_filter_event"
 
-TESTCMD="echo -n 10 > /proc/lttng-test-filter-event"
+TESTCMD="echo -n 10 > /proc/lttng-test/filter-event"
 
 METADATA_CLOCK_START_TOKEN="clock {"
 METADATA_CLOCK_END_TOKEN="};"
diff --git a/tests/regression/kernel/test_rotation_destroy_flush b/tests/regression/kernel/test_rotation_destroy_flush
index 0b0b0ca..7f064e7 100755
--- a/tests/regression/kernel/test_rotation_destroy_flush
+++ b/tests/regression/kernel/test_rotation_destroy_flush
@@ -29,7 +29,7 @@  CHANNEL_NAME="testchan"
 PAGE_SIZE=$(getconf PAGE_SIZE)
 SIZE_LIMIT=$PAGE_SIZE
 
-TESTCMD="echo -n 10000 > /proc/lttng-test-filter-event"
+TESTCMD="echo -n 10000 > /proc/lttng-test/filter-event"
 
 # Ensure the daemons invoke abort on error.
 export LTTNG_ABORT_ON_ERROR=1
diff --git a/tests/regression/tools/filtering/test_valid_filter b/tests/regression/tools/filtering/test_valid_filter
index fe854a7..c140dbe 100755
--- a/tests/regression/tools/filtering/test_valid_filter
+++ b/tests/regression/tools/filtering/test_valid_filter
@@ -53,7 +53,7 @@  function run_ust
 function run_kernel
 {
 	# Trigger the event for 100 iterations
-	echo -n "100" > /proc/lttng-test-filter-event
+	echo -n "100" > /proc/lttng-test/filter-event
 }
 
 function test_valid_filter
diff --git a/tests/regression/tools/regen-metadata/test_kernel b/tests/regression/tools/regen-metadata/test_kernel
index fd139ae..5a3c20e 100755
--- a/tests/regression/tools/regen-metadata/test_kernel
+++ b/tests/regression/tools/regen-metadata/test_kernel
@@ -48,7 +48,7 @@  function test_kernel_streaming ()
 	lttng_create_session_uri
 	lttng_enable_kernel_event $SESSION_NAME $EVENT_NAME
 	start_lttng_tracing_ok $SESSION_NAME
-	echo -n "100" > /proc/lttng-test-filter-event
+	echo -n "100" > /proc/lttng-test/filter-event
 	regenerate_metadata_ok $SESSION_NAME
 	stop_lttng_tracing_ok $SESSION_NAME
 	# Validate test
@@ -68,7 +68,7 @@  function test_kernel_local ()
 	create_lttng_session_ok $SESSION_NAME $TRACE_PATH
 	lttng_enable_kernel_event $SESSION_NAME $EVENT_NAME
 	start_lttng_tracing_ok $SESSION_NAME
-	echo -n "100" > /proc/lttng-test-filter-event
+	echo -n "100" > /proc/lttng-test/filter-event
 	regenerate_metadata_ok $SESSION_NAME
 	stop_lttng_tracing_ok $SESSION_NAME
 	validate_trace $EVENT_NAME $TRACE_PATH
diff --git a/tests/regression/tools/regen-statedump/test_kernel b/tests/regression/tools/regen-statedump/test_kernel
index 85afe76..e23ff3a 100755
--- a/tests/regression/tools/regen-statedump/test_kernel
+++ b/tests/regression/tools/regen-statedump/test_kernel
@@ -41,7 +41,7 @@  function test_kernel_local ()
 	create_lttng_session_ok $SESSION_NAME $TRACE_PATH
 	lttng_enable_kernel_event $SESSION_NAME $EVENT_NAME
 	start_lttng_tracing_ok $SESSION_NAME
-	echo -n "100" > /proc/lttng-test-filter-event
+	echo -n "100" > /proc/lttng-test/filter-event
 	regenerate_statedump_ok $SESSION_NAME
 	stop_lttng_tracing_ok $SESSION_NAME
 	validate_trace_count $EVENT_NAME $TRACE_PATH 4
diff --git a/tests/regression/tools/wildcard/test_event_wildcard b/tests/regression/tools/wildcard/test_event_wildcard
index 51d7321..3a3b240 100755
--- a/tests/regression/tools/wildcard/test_event_wildcard
+++ b/tests/regression/tools/wildcard/test_event_wildcard
@@ -41,7 +41,7 @@  function run_ust
 function run_kernel
 {
 	# Trigger the event for 100 iterations
-	echo -n "100" > /proc/lttng-test-filter-event
+	echo -n "100" > /proc/lttng-test/filter-event
 }
 
 function test_event_wildcard()