perf tests coresight: Remove unused variables
authorzhujun2 <zhujun2@cmss.chinamobile.com>
Wed, 15 Nov 2023 06:42:55 +0000 (22:42 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 27 Nov 2023 14:35:43 +0000 (11:35 -0300)
These variables are never referenced in the code, just remove them.

Reviewed-by: James Clark <james.clark@arm.com>
Signed-off-by: zhujun2 <zhujun2@cmss.chinamobile.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
Cc: coresight@lists.linaro.org
Link: https://lore.kernel.org/r/20231115064255.11057-1-zhujun2@cmss.chinamobile.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/coresight/memcpy_thread/memcpy_thread.c
tools/perf/tests/shell/coresight/thread_loop/thread_loop.c
tools/perf/tests/shell/coresight/unroll_loop_thread/unroll_loop_thread.c

index a7e169d1bf645e302af1c9e3a10544ffcd0af76f..5f886cd09e6b3a62b5690dade94f1f8cae3279d2 100644 (file)
@@ -42,7 +42,6 @@ static pthread_t new_thr(void *(*fn) (void *arg), void *arg)
 int main(int argc, char **argv)
 {
        unsigned long i, len, size, thr;
-       pthread_t threads[256];
        struct args args[256];
        long long v;
 
index c0158fac7d0b0b47ebfc5dac1a8e3aa72d781981..e05a559253ca9d9366ad321d520349042fb07fca 100644 (file)
@@ -57,7 +57,6 @@ static pthread_t new_thr(void *(*fn) (void *arg), void *arg)
 int main(int argc, char **argv)
 {
        unsigned int i, len, thr;
-       pthread_t threads[256];
        struct args args[256];
 
        if (argc < 3) {
index 8f6d384208ed971debc09d296006e7408a790b2b..0fc7bf1a25af3607b40f091f62176134ddb7f9f6 100644 (file)
@@ -51,7 +51,6 @@ static pthread_t new_thr(void *(*fn) (void *arg), void *arg)
 int main(int argc, char **argv)
 {
        unsigned int i, thr;
-       pthread_t threads[256];
        struct args args[256];
 
        if (argc < 2) {