projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
114339e
)
perf test: Name the noploop process
author
Ian Rogers
<irogers@google.com>
Sat, 28 Jun 2025 01:23:01 +0000
(18:23 -0700)
committer
Namhyung Kim
<namhyung@kernel.org>
Tue, 1 Jul 2025 22:37:22 +0000
(15:37 -0700)
Name the noploop process "perf-noploop" so that tests can easily check
for its existence.
Signed-off-by: Ian Rogers <irogers@google.com>
Link:
https://lore.kernel.org/r/20250628012302.1242532-1-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/workloads/noploop.c
patch
|
blob
|
blame
|
history
diff --git
a/tools/perf/tests/workloads/noploop.c
b/tools/perf/tests/workloads/noploop.c
index 940ea5910a84ca5127594e00f631ad0c76d539c7..656e472e618822a3505507fad656a4b4948b4192 100644
(file)
--- a/
tools/perf/tests/workloads/noploop.c
+++ b/
tools/perf/tests/workloads/noploop.c
@@
-1,4
+1,5
@@
/* SPDX-License-Identifier: GPL-2.0 */
+#include <pthread.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
@@
-16,6
+17,7
@@
static int noploop(int argc, const char **argv)
{
int sec = 1;
+ pthread_setname_np(pthread_self(), "perf-noploop");
if (argc > 0)
sec = atoi(argv[0]);