Skip to content

Commit 317ff1a

Browse files
yinjipingclaude
andcommitted
feat: add ebpf crash monitor source files
Track the crash monitor implementation files and the remaining worker coverage source so the crash-capture changes are committed together. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 107ffcc commit 317ff1a

File tree

14 files changed

+2772
-8
lines changed

14 files changed

+2772
-8
lines changed

agent/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ harness = false
192192

193193
[profile.release]
194194
panic = 'abort'
195+
debug = 2
196+
split-debuginfo = "off"
195197

196198
[profile.dev]
197199
panic = 'abort'

agent/src/ebpf/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ OBJS := user/elf.o \
8585
user/log.o \
8686
user/probe.o \
8787
user/tracer.o \
88+
user/crash_monitor.o \
89+
user/crash_symbolize.o \
8890
user/table.o \
8991
user/socket.o \
9092
user/ctrl.o \
@@ -240,7 +242,7 @@ build: $(ELFFILES) $(JAVA_TOOL) $(LIBTRACE)
240242

241243
tools: $(LIBTRACE)
242244
$(call msg,TOOLS,deepflow-ebpfctl)
243-
$(Q)$(CC) $(CFLAGS) --static -g -O2 user/ctrl_tracer.c user/ctrl.c $(LIBTRACE) -o deepflow-ebpfctl -lelf -lz -lpthread
245+
$(Q)$(CC) $(CFLAGS) --static -g -O2 user/ctrl_tracer.c user/ctrl.c $(LIBTRACE) -o deepflow-ebpfctl -ldwarf -lelf -lz -lpthread
244246

245247
$(JAVA_TOOL): $(JAVA_AGENT_SO) user/log.c user/utils.c user/mem.c user/vec.c user/profile/java/jvm_symbol_collect.c libs/jattach/build/libjattach.a
246248
$(call msg,TOOLS,$@)

0 commit comments

Comments
 (0)