• Yonghong Song's avatar
    add an example of accessing an externally created map in C++ · 914a78f6
    Yonghong Song authored
    Some application may need to access a pinned map which is not
    created by bcc. This example shows how to incorporate such
    maps with C++ APIs.
    
    Basically, the application needs to create a TableStorage and
    pre-populate it with pinned map before calling BPF constructor.
    The bpf program defines this pinned map as an "extern" map.
    Signed-off-by: default avatarYonghong Song <yhs@fb.com>
    914a78f6
UseExternalMap.cc 3.84 KB