projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Generalize disable_ust_event to support multiple types of ust object
[lttng-tools.git]
/
tests
/
utils
/
utils.sh
diff --git
a/tests/utils/utils.sh
b/tests/utils/utils.sh
index 1a6ea3c424016e4ecca9fa76f1726a168d39839d..31087877d1639767086f88ed0821613f342c79f8 100644
(file)
--- a/
tests/utils/utils.sh
+++ b/
tests/utils/utils.sh
@@
-100,7
+100,7
@@
function lttng_pgrep ()
while IFS= read -r pid ; do
# /proc/pid/cmdline is null separated.
while IFS= read -r pid ; do
# /proc/pid/cmdline is null separated.
- if full_command_no_argument=$(cut -d '' -f 1 < /proc/"$pid"/cmdline); then
+ if full_command_no_argument=$(cut -d '' -f 1
2>/dev/null
< /proc/"$pid"/cmdline); then
command_basename=$(basename "$full_command_no_argument")
if grep -q "$pattern" <<< "$command_basename"; then
echo "$pid"
command_basename=$(basename "$full_command_no_argument")
if grep -q "$pattern" <<< "$command_basename"; then
echo "$pid"
@@
-700,7
+700,7
@@
function stop_lttng_sessiond_opt()
if [ -n "$modules" ]; then
diag "Unloading all LTTng modules"
if [ -n "$modules" ]; then
diag "Unloading all LTTng modules"
- modprobe -
r
"$modules"
+ modprobe -
-remove
"$modules"
fi
fi
fi
fi
fi
fi
This page took
0.052317 seconds
and
4
git commands to generate.