Skip to content

Commit

Permalink
bpf: replace __builtin_memcpy
Browse files Browse the repository at this point in the history
  • Loading branch information
hack3ric committed Oct 2, 2024
1 parent af0ba98 commit f2017d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bpf/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static void log_any(enum log_level level, enum log_type type, union log_info* in
if (unlikely(!item)) return;
item->type = RB_ITEM_LOG_EVENT;
item->log_event = (struct log_event){.level = level, .type = type};
__builtin_memcpy(&item->log_event.info, info, sizeof(*info));
item->log_event.info = *info;
bpf_ringbuf_submit(item, 0);
return;
}
Expand Down

0 comments on commit f2017d8

Please sign in to comment.