File tree Expand file tree Collapse file tree
tools/testing/selftests/livepatch Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,7 +75,8 @@ function set_dynamic_debug() {
7575}
7676
7777function set_ftrace_enabled() {
78- result=$( sysctl kernel.ftrace_enabled=" $1 " 2>&1 | paste --serial --delimiters=' ' )
78+ result=$( sysctl -q kernel.ftrace_enabled=" $1 " 2>&1 && \
79+ sysctl kernel.ftrace_enabled 2>&1 )
7980 echo " livepatch: $result " > /dev/kmsg
8081}
8182
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ livepatch: '$MOD_LIVEPATCH': initializing patching transition
5151livepatch: '$MOD_LIVEPATCH ': starting patching transition
5252livepatch: '$MOD_LIVEPATCH ': completing patching transition
5353livepatch: '$MOD_LIVEPATCH ': patching complete
54- livepatch: sysctl: setting key \" kernel.ftrace_enabled\" : Device or resource busy kernel.ftrace_enabled = 0
54+ livepatch: sysctl: setting key \" kernel.ftrace_enabled\" : Device or resource busy
5555% echo 0 > /sys/kernel/livepatch/$MOD_LIVEPATCH /enabled
5656livepatch: '$MOD_LIVEPATCH ': initializing unpatching transition
5757livepatch: '$MOD_LIVEPATCH ': starting unpatching transition
You can’t perform that action at this time.
0 commit comments