diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2024-11-15 17:15:27 +0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2024-12-12 16:08:36 -0300 |
commit | 9ba3462c1ce5f1596c8f065540628cec7bdad005 (patch) | |
tree | 56de36125aa7bd320de024ef9d9d41aacab8bd59 /tools/perf/scripts/python/syscall-counts.py | |
parent | 8791a78fb70ebcc46170025b3ac76f7fb33770f7 (diff) | |
download | linux-9ba3462c1ce5f1596c8f065540628cec7bdad005.tar.gz linux-9ba3462c1ce5f1596c8f065540628cec7bdad005.tar.bz2 linux-9ba3462c1ce5f1596c8f065540628cec7bdad005.zip |
perf tests: Fix an incorrect type in append_script()
The return value from the call to readlink() is ssize_t. However, the
return value is being assigned to an size_t variable 'len', so making
'len' an ssize_t.
./tools/perf/tests/tests-scripts.c:182:5-8: WARNING: Unsigned expression compared with zero: len < 0.
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=11909
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20241115091527.128923-1-jiapeng.chong@linux.alibaba.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions