diff options
Diffstat (limited to 'samples/bpf/lathist_user.c')
-rw-r--r-- | samples/bpf/lathist_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/lathist_user.c b/samples/bpf/lathist_user.c index 65da8c1..6477bad 100644 --- a/samples/bpf/lathist_user.c +++ b/samples/bpf/lathist_user.c @@ -73,7 +73,7 @@ static void get_data(int fd) for (c = 0; c < MAX_CPU; c++) { for (i = 0; i < MAX_ENTRIES; i++) { key = c * MAX_ENTRIES + i; - bpf_lookup_elem(fd, &key, &value); + bpf_map_lookup_elem(fd, &key, &value); cpu_hist[c].data[i] = value; if (value > cpu_hist[c].max) |