Skip to content

Tag: c++

Trying to create map with char array field invalid field error

I like to know how to create ebpf map with char array value I tried like this and this is full code for the ebpf program and this is my user function I assigned to perf_buffer_opts and this is the full code. so can anyone please tell what I am doing wrong why is saying invalid argument full userspace code

Can’t launch debug – C in VS code on Linux

Let me preface this, I am very new to linux and to working on a non-IDE based setup. I am trying to debug a very simple C program using vs code version 1.55 I unloaded all modules beforehand, so vs code can load appropriate default gcc & gdb versions (which it did, GCC 8.2) I am following the VS code

Find CFLAGS and LDFLAGS equivalent in linux

I’m trying to figure out what is the equivalent paths of these in Linux. I downloaded the openssl package sudo apt-get install libssl-dev Answer Assuming you want to find flags needed to build using that installed package, then pkg-config: So you don’t need any special -I nor -L flags, because the…