summaryrefslogtreecommitdiff
path: root/tools/tracing/rtla/src/timerlat_u.h
blob: 6615119089574760fbcaf6413df2acfb77dfaad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (C) 2023 Red Hat Inc, Daniel Bristot de Oliveira <bristot@kernel.org>
 */

struct timerlat_u_params {
	/* timerlat -> timerlat_u: user-space threads can keep running */
	int should_run;
	/* timerlat_u -> timerlat: all timerlat_u threads left, no reason to continue */
	int stopped_running;

	/* threads config */
	cpu_set_t *set;
	char *cgroup_name;
	struct sched_attr *sched_param;
};

void *timerlat_u_dispatcher(void *data);