linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 1/2] perf test workload noploop: Name the noploop process
@ 2025-06-28  1:23 Ian Rogers
  2025-06-28  1:23 ` [PATCH v3 2/2] perf test: Add sched latency and script shell tests Ian Rogers
  2025-07-02 16:43 ` [PATCH v3 1/2] perf test workload noploop: Name the noploop process Namhyung Kim
  0 siblings, 2 replies; 4+ messages in thread
From: Ian Rogers @ 2025-06-28  1:23 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Namhyung Kim, Mark Rutland, Alexander Shishkin, Jiri Olsa,
	Ian Rogers, Adrian Hunter, Kan Liang, James Clark, linux-kernel,
	linux-perf-users

Name the noploop process "perf-noploop" so that tests can easily check
for its existence.

Signed-off-by: Ian Rogers <irogers@google.com>
---
v3: Switch to using pthread_setname_np rather than prctl as glibc and
    musl having conflicting and mutually broken definitions of which
    header files to #include for prctl. Suggested by Namhyung Kim
    <namhyung@kernel.org>.
---
 tools/perf/tests/workloads/noploop.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/perf/tests/workloads/noploop.c b/tools/perf/tests/workloads/noploop.c
index 940ea5910a84..656e472e6188 100644
--- 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]);
 
-- 
2.50.0.727.gbf7dc18ff4-goog


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-07-20  8:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-28  1:23 [PATCH v3 1/2] perf test workload noploop: Name the noploop process Ian Rogers
2025-06-28  1:23 ` [PATCH v3 2/2] perf test: Add sched latency and script shell tests Ian Rogers
2025-07-20  8:35   ` kernel test robot
2025-07-02 16:43 ` [PATCH v3 1/2] perf test workload noploop: Name the noploop process Namhyung Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).