1 
2 #ifndef _HTUTILS_H_
3 #define _HTUTILS_H_
4 
5 #include <stdlib.h>
6 #include <sys/types.h>
7 
8 int is_cmdline_para(const char *para);
9 
10 // return 0 means Pass,
11 // return 1 means ht is not enabled,
12 // return 2 means CPU is not support ht,
13 // return 3 mean kernel is not support ht.
14 int check_ht_capability();
15 
16 extern char buf[];
17 
18 int get_cpu_count();
19 int get_current_cpu(pid_t pid);
20 
21 #endif
22