aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorIdo Schimmel <[email protected]>2020-05-21 11:46:17 +0000
committerDavid S. Miller <[email protected]>2020-05-22 23:05:42 +0000
commit4d59e59cf45046fe1263a935f8abc418bb61215c (patch)
tree53a3c68f7272cfb870d352a6f5b8897b528d90e9 /tools/perf/scripts/python/syscall-counts.py
parentnetdevsim: Ensure policer drop counter always increases (diff)
downloadkernel-4d59e59cf45046fe1263a935f8abc418bb61215c.tar.gz
kernel-4d59e59cf45046fe1263a935f8abc418bb61215c.zip
selftests: netdevsim: Always initialize 'RET' variable
The variable is used by log_test() to check if the test case completely successfully or not. In case it is not initialized at the start of a test case, it is possible for the test case to fail despite not encountering any errors. Example: ``` ... TEST: Trap group statistics [ OK ] TEST: Trap policer [FAIL] Policer drop counter was not incremented TEST: Trap policer binding [FAIL] Policer drop counter was not incremented ``` Failure of trap_policer_test() caused trap_policer_bind_test() to fail as well. Fix by adding missing initialization of the variable. Fixes: 5fbff58e27a1 ("selftests: netdevsim: Add test cases for devlink-trap policers") Signed-off-by: Ido Schimmel <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions