Lines Matching refs:key
56 __type(key, u32);
64 __type(key, u32);
72 __type(key, u32);
107 u32 key, cpu, pstate_idx; in bpf_prog1() local
115 key = cpu * MAP_OFF_NUM + MAP_OFF_CSTATE_TIME; in bpf_prog1()
116 cts = bpf_map_lookup_elem(&my_map, &key); in bpf_prog1()
120 key = cpu * MAP_OFF_NUM + MAP_OFF_CSTATE_IDX; in bpf_prog1()
121 cstate = bpf_map_lookup_elem(&my_map, &key); in bpf_prog1()
125 key = cpu * MAP_OFF_NUM + MAP_OFF_PSTATE_TIME; in bpf_prog1()
126 pts = bpf_map_lookup_elem(&my_map, &key); in bpf_prog1()
130 key = cpu * MAP_OFF_NUM + MAP_OFF_PSTATE_IDX; in bpf_prog1()
131 pstate = bpf_map_lookup_elem(&my_map, &key); in bpf_prog1()
175 key = cpu * MAX_PSTATE_ENTRIES + pstate_idx; in bpf_prog1()
176 val = bpf_map_lookup_elem(&pstate_duration, &key); in bpf_prog1()
198 key = cpu * MAX_CSTATE_ENTRIES + prev_state; in bpf_prog1()
199 val = bpf_map_lookup_elem(&cstate_duration, &key); in bpf_prog1()
215 u32 key, cpu, pstate_idx; in bpf_prog2() local
220 key = cpu * MAP_OFF_NUM + MAP_OFF_PSTATE_TIME; in bpf_prog2()
221 pts = bpf_map_lookup_elem(&my_map, &key); in bpf_prog2()
225 key = cpu * MAP_OFF_NUM + MAP_OFF_PSTATE_IDX; in bpf_prog2()
226 pstate = bpf_map_lookup_elem(&my_map, &key); in bpf_prog2()
230 key = cpu * MAP_OFF_NUM + MAP_OFF_CSTATE_IDX; in bpf_prog2()
231 cstate = bpf_map_lookup_elem(&my_map, &key); in bpf_prog2()
272 key = cpu * MAX_PSTATE_ENTRIES + pstate_idx; in bpf_prog2()
273 val = bpf_map_lookup_elem(&pstate_duration, &key); in bpf_prog2()