-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsemtest.h
51 lines (42 loc) · 1.69 KB
/
semtest.h
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* semtest.h
*
* Copyright (C) 2013 Cisco Systems, Henrik Austad <[email protected]>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License Version
* 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef _SEMTEST_H
#define _SEMTEST_H
#include <inttypes.h>
#include <pthread.h>
struct semtest;
struct sem_test * create_sem_test(uint32_t num_cpus);
void st_set_affinity(struct sem_test *st);
void st_clear_affinity(struct sem_test *st);
void st_enable_feather(struct sem_test *st);
void st_set_pri(struct sem_test *st, int pri);
void st_set_policy(struct sem_test *st, int policy);
void st_set_iters(struct sem_test *st, int iters);
void st_set_interval(struct sem_test *st, int interval);
void st_clear_cpu(struct sem_test *st, int cpu);
void st_set_max_cpus(struct sem_test *st, int max_cpus);
void st_set_quiet(struct sem_test *st);
void free_sem_test(struct sem_test *);
void enable_tracing(struct sem_test *st, signed long trace_limit_us);
void st_print_pids(struct sem_test *st);
void set_graph_output(struct sem_test *st);
void set_grouped_mode(struct sem_test *st);
void run_test(struct sem_test *st);
void print_summary(struct sem_test * st);
#endif /* _SEMTEST_H */