Thread (5 messages) flat view 5 messages, 2 authors, 2020-07-07

Re: [PATCH 2/2] selftest/cpuidle: Add support for cpuidle latency measurement

From: Pratik Sampat <hidden>
Date: 2020-07-07 15:54:20
Also in: linux-kselftest, linux-pm, lkml

[..snip..]
quoted
+
+ins_mod()
+{
+    if [ ! -f "$MODULE" ]; then
+        printf "$MODULE module does not exist. Exitting\n"
+        exit 2
Please use ksft_skip code to indicate the test is being skipped.
Sure thing I'll use ksft_skip exit code instead.
quoted
+    fi
+    printf "Inserting $MODULE module\n\n"
+    insmod $MODULE
+    if [ $? != 0 ]; then
+        printf "Insmod $MODULE failed\n"
+        exit 2
This is fine since you expect to be able to load the module.
Thanks for the review.
Pratik

[..snip..]
quoted
thanks,
-- Shuah
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help