Skip to content

Commit

Permalink
Add a trace for unsupported pinning type (#2889)
Browse files Browse the repository at this point in the history
  • Loading branch information
shpalani committed Sep 26, 2023
1 parent 73bdbc7 commit 67d7c3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libs/execution_context/ebpf_native.c
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,11 @@ _ebpf_native_initialize_maps(

for (uint32_t i = 0; i < map_count; i++) {
if (maps[i].definition.pinning != PIN_NONE && maps[i].definition.pinning != PIN_GLOBAL_NS) {
EBPF_LOG_MESSAGE_UINT64(
EBPF_TRACELOG_LEVEL_ERROR,
EBPF_TRACELOG_KEYWORD_NATIVE,
"_ebpf_native_initialize_maps: Unsupported pinning type",
maps[i].definition.pinning);
result = EBPF_INVALID_ARGUMENT;
goto Done;
}
Expand Down

0 comments on commit 67d7c3c

Please sign in to comment.