Home
last modified time | relevance | path

Searched refs:cpu (Results 1 – 3 of 3) sorted by relevance

/samples/bpf/
Dlathist_kern.c31 int cpu = bpf_get_smp_processor_id(); in bpf_prog1() local
32 u64 *ts = bpf_map_lookup_elem(&my_map, &cpu); in bpf_prog1()
75 int key, cpu; in bpf_prog2() local
78 cpu = bpf_get_smp_processor_id(); in bpf_prog2()
79 ts = bpf_map_lookup_elem(&my_map, &cpu); in bpf_prog2()
89 key = cpu * MAX_ENTRIES + delta; in bpf_prog2()
Dlibbpf.c149 int perf_event_open(struct perf_event_attr *attr, int pid, int cpu, in perf_event_open() argument
152 return syscall(__NR_perf_event_open, attr, pid, cpu, in perf_event_open()
Dlibbpf.h199 int perf_event_open(struct perf_event_attr *attr, int pid, int cpu,