summaryrefslogtreecommitdiffstats
path: root/demo/posix/cyclictest/rt-utils.h
blob: a7c7640b3b9e198c746546b68d69666772f7e3bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef __RT_UTILS_H
#define __RT_UTILS_H

#include <stdint.h>
#include <linux/sched.h>

#ifndef SCHED_NORMAL
#define SCHED_NORMAL SCHED_OTHER
#endif

#define _STR(x) #x
#define STR(x) _STR(x)
#define MAX_PATH 256

int check_privs(void);
char *get_debugfileprefix(void);
int mount_debugfs(char *);
int get_tracers(char ***);
int valid_tracer(char *);

int setevent(char *event, char *val);
int event_enable(char *event);
int event_disable(char *event);
int event_enable_all(void);
int event_disable_all(void);

const char *policy_to_string(int policy);
uint32_t string_to_policy(const char *str);

pid_t gettid(void);

#endif	/* __RT_UTILS.H */
Mirror
http://xenomai.org/mirroring-xenomai-git-repositories-with-grokmirror/