On Thu, Jan 31, 2019 at 12:09 AM Raga lahari <[email protected]> wrote:
>
> Hi everyone,
>
>
> I am using BPF_MAP_TYPE_HASH in BPF map definition and my program is working
> as expected.
>
> I have read eBPF-map type BPF_MAP_TYPE_PERCPU_HASH allows for lock free uses
> of hash-tables in eBPF for high performance needs.
>
> I am trying to modify BPF map type from BPF_MAP_TYPE_HASH to
> BPF_MAP_TYPE_PERCPU_HASH. But, when I run the program, I am getting issues
> in BPF map iteration (using bpf_map_get_next_key)
>
>
> Can someone help me to know any points need to consider to use
> BPF_MAP_TYPE_PERCPU_HASH map type .
You can take a look at bcc/tests/cc/{test_array_table.cc,
test_hash_table.cc, test_bpf_table.cc}.
There are a few examples there testing percpu maps.
>
>
>
> Thanks,
>
> Ragalahari
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#1560): https://lists.iovisor.org/g/iovisor-dev/message/1560
Mute This Topic: https://lists.iovisor.org/mt/29604090/21656
Group Owner: [email protected]
Unsubscribe: https://lists.iovisor.org/g/iovisor-dev/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-