kernel: profiling infrastructure

This commit is contained in:
Matheus
2025-12-05 18:19:42 -03:00
parent d10295dcdf
commit 40bbf217ee
19 changed files with 595 additions and 3 deletions
+14
View File
@@ -0,0 +1,14 @@
.phony: all install
CC=x86_64-astral-gcc
LD=x86_64-astral-gcc
all: astral-prof
install:
mkdir -p "$(DESTDIR)/$(PREFIX)/bin/"
cp astral-prof "$(DESTDIR)/$(PREFIX)/bin/astral-prof"
astral-prof: main.o
$(LD) $(LDFLAGS) -g -o $@ $^
main.o: main.c
$(CC) -c $(CFLAGS) -g -o $@ $<