Name the noploop process "perf-noploop" so that tests can easily check
for its existence.
Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>
---
tools/perf/tests/workloads/noploop.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/perf/tests/workloads/noploop.c b/tools/perf/tests/workloads/noploop.c
index 940ea5910a84..8b954d466083 100644
--- a/tools/perf/tests/workloads/noploop.c
+++ b/tools/perf/tests/workloads/noploop.c
@@ -2,6 +2,8 @@
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
+#include <linux/prctl.h>
+#include <sys/prctl.h>
#include <linux/compiler.h>
#include "../tests.h"
@@ -16,6 +18,7 @@ static int noploop(int argc, const char **argv)
{
int sec = 1;
+ prctl(PR_SET_NAME, "perf-noploop");
if (argc > 0)
sec = atoi(argv[0]);