create_lttng_session_ok $SESSION_NAME $trace_path
# Enable filter
- enable_lttng_event_filter $domain $SESSION_NAME $event_name $filter
+ enable_lttng_event_filter $domain $SESSION_NAME "$event_name" "$filter"
# Trace apps
start_lttng_tracing_ok $SESSION_NAME
print_test_banner "$TEST_DESC"
-IFS=$'\n'
-
issue_356_filter="intfield > 0 && intfield > 1 && "
issue_356_filter+="intfield > 2 && intfield > 3 && "
issue_356_filter+="intfield > 4 && intfield > 5 && "
# One to one mapping between filters and validators
+# Set IFS to newline to facilitate array declaration
+OLDIFS="$IFS"
+IFS=$'\n'
UST_FILTERS=("intfield" #1
"intfield > 1" #2
"intfield >= 1" #3
"validator_has_events" #48
)
+IFS="$OLDIFS"
+
diag "Test UST valid filters"
KERNEL_CHECK=0
BIN_NAME="test_valid_filt" # Current script name truncated by kernel
# One to one mapping between filters and validators
-
+# Set IFS to newline to facilitate array declaration
+OLDIFS="$IFS"
+IFS=$'\n'
KERNEL_FILTERS=("intfield" #1
"intfield > 1" #2
"intfield >= 1" #3
"validator_has_events" #48
)
+IFS=$OLDIFS
+
if [ "$(id -u)" == "0" ]; then
isroot=1
else