ebpf bpf_map_lookup_elem use const char* as key type, can’t get the value from bpf map
When I want to get a value from bpf map, the input key type is const char*
, it can’t get the map value; But when the key type is char name[192]
, it can get the correct value. What is the difference of above two key type? why it happend in this situation?