Skip to content

Commit b5de03a

Browse files
committed
fix compile and submodule
1 parent bb7542f commit b5de03a

File tree

4 files changed

+4
-36
lines changed

4 files changed

+4
-36
lines changed

bpftools/Makefile

Lines changed: 0 additions & 32 deletions
This file was deleted.

bpftools/profile_nginx_lua/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ VMLINUX := ../../vmlinux/$(ARCH)/vmlinux.h
1212
# libbpf to avoid dependency on system-wide headers, which could be missing or
1313
# outdated
1414
INCLUDES := -I$(OUTPUT) -I../../libbpf/include/uapi -I$(dir $(VMLINUX))
15-
CFLAGS := -g -Wall -fsanitize=address
15+
CFLAGS := -g -Wall # -fsanitize=address
16+
CXX := clang++
1617

1718
APPS = profile
1819

@@ -84,7 +85,7 @@ uprobe_helpers.o: uprobe_helpers.c uprobe_helpers.h
8485
$(Q)$(CC) $(CFLAGS) $(INCLUDES) -c $(filter %.c,$^) -o $@
8586

8687
lua_stacks_helper.o: lua_stacks_helper.cpp profile.h lua_stacks_helper.h
87-
$(CC) $(CFLAGS) $(INCLUDES) -c $(filter %.cpp,$^) -o $@
88+
$(CXX) $(CFLAGS) $(INCLUDES) -c $(filter %.cpp,$^) -o $@
8889

8990
# Build application binary
9091
$(APPS): %: $(OUTPUT)/%.o uprobe_helpers.o trace_helpers.o lua_stacks_helper.o $(LIBBPF_OBJ) | $(OUTPUT)

bpftools/profile_nginx_lua/profile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#define MAX_ENTRIES 10240
88
#define HOST_LEN 80
99

10-
struct key_t
10+
struct profile_key_t
1111
{
1212
unsigned int pid;
1313
unsigned long long kernel_ip;

tools/FlameGraph

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)