Home
last modified time | relevance | path

Searched refs:bitmask (Results 1 – 8 of 8) sorted by relevance

/tools/power/cpupower/utils/helpers/
Dbitmask.h10 struct bitmask { struct
15 struct bitmask *bitmask_alloc(unsigned int n); argument
16 void bitmask_free(struct bitmask *bmp);
18 struct bitmask *bitmask_setbit(struct bitmask *bmp, unsigned int i);
19 struct bitmask *bitmask_setall(struct bitmask *bmp);
20 struct bitmask *bitmask_clearall(struct bitmask *bmp);
22 unsigned int bitmask_first(const struct bitmask *bmp);
23 unsigned int bitmask_next(const struct bitmask *bmp, unsigned int i);
24 unsigned int bitmask_last(const struct bitmask *bmp);
25 int bitmask_isallclear(const struct bitmask *bmp);
[all …]
Dbitmask.c23 struct bitmask *bitmask_alloc(unsigned int n) in bitmask_alloc()
25 struct bitmask *bmp; in bitmask_alloc()
40 void bitmask_free(struct bitmask *bmp) in bitmask_free()
61 static unsigned int _getbit(const struct bitmask *bmp, unsigned int n) in _getbit()
70 static void _setbit(struct bitmask *bmp, unsigned int n, unsigned int v) in _setbit()
114 struct bitmask *bitmask_setbit(struct bitmask *bmp, unsigned int i) in bitmask_setbit()
121 struct bitmask *bitmask_setall(struct bitmask *bmp) in bitmask_setall()
130 struct bitmask *bitmask_clearall(struct bitmask *bmp) in bitmask_clearall()
139 int bitmask_isallclear(const struct bitmask *bmp) in bitmask_isallclear()
149 int bitmask_isbitset(const struct bitmask *bmp, unsigned int i) in bitmask_isbitset()
[all …]
Dhelpers.h36 extern struct bitmask *cpus_chosen;
/tools/power/cpupower/
DToDo3 - Use bitmask functions to parse CPU topology more robust
/tools/power/cpupower/utils/
Dcpupower.c35 struct bitmask *cpus_chosen;
/tools/lib/traceevent/
Devent-parse.h219 char *bitmask; member
313 struct print_arg_bitmask bitmask; member
Devent-parse.c847 free(arg->bitmask.bitmask); in free_arg()
2871 arg->bitmask.bitmask = token; in process_bitmask()
2872 arg->bitmask.offset = -1; in process_bitmask()
4045 if (arg->bitmask.offset == -1) { in print_str_arg()
4048 f = pevent_find_any_field(event, arg->bitmask.bitmask); in print_str_arg()
4049 arg->bitmask.offset = f->offset; in print_str_arg()
4051 bitmask_offset = data2host4(pevent, data + arg->bitmask.offset); in print_str_arg()
5621 printf("__get_bitmask(%s)", args->bitmask.bitmask); in print_args()
/tools/perf/bench/
Dnuma.c243 struct bitmask *cpu = numa_allocate_cpumask(); in node_has_cpus()