Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions support/ebpf/go_labels.ebpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
#include "tsd.h"
#include "types.h"

// go_labels_procs stores Go label specific offsets per Go process.
struct go_labels_procs_t {
__uint(type, BPF_MAP_TYPE_HASH);
__type(key, pid_t);
__type(value, GoLabelsOffsets);
__uint(max_entries, 1024);
} go_labels_procs SEC(".maps");

static EBPF_INLINE bool
get_go_custom_labels_from_slice(PerCPURecord *record, void *labels_slice_ptr)
{
Expand Down
7 changes: 0 additions & 7 deletions support/ebpf/interpreter_dispatcher.ebpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,6 @@ struct apm_int_procs_t {
__uint(max_entries, 128);
} apm_int_procs SEC(".maps");

struct go_labels_procs_t {
__uint(type, BPF_MAP_TYPE_HASH);
__type(key, pid_t);
__type(value, GoLabelsOffsets);
__uint(max_entries, 128);
} go_labels_procs SEC(".maps");

// filter_error_frames is set during load time.
BPF_RODATA_VAR(bool, filter_error_frames, false)

Expand Down
Binary file modified support/ebpf/tracer.ebpf.amd64
Binary file not shown.
Binary file modified support/ebpf/tracer.ebpf.arm64
Binary file not shown.