mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
perf test: Name the noploop process
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>
This commit is contained in:
parent
114339ee4d
commit
b6cea9b4f8
|
|
@ -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]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user