- Linux Kernel (dri-devel subsystem, coccicheck script):
- Coccinelle (these patches are yet to be integrated)
- Side projects (WIP)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd070] | |
| [ 0.000000] Linux version 5.4.176 (flo@t14.der-flo.net) (gcc version 12.1.1 20220507 (Red Hat Cross 12.1.1-1) (GCC)) #2 SMP PREEMPT Fri Jul 15 10:12:55 CEST 2022 | |
| [ 0.000000] Machine model: linux,dummy-virt | |
| [ 0.000000] efi: Getting EFI parameters from FDT: | |
| [ 0.000000] efi: UEFI not found. | |
| [ 0.000000] cma: Reserved 32 MiB at 0x00000000be000000 | |
| [ 0.000000] NUMA: No NUMA configuration found | |
| [ 0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x00000000bfffffff] | |
| [ 0.000000] NUMA: NODE_DATA [mem 0xbdbf3800-0xbdbf4fff] | |
| [ 0.000000] Zone ranges: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir -p pkg/profiler/cpu | |
| make -C bpf build | |
| make[1]: Entering directory '/home/larkin/Aimia/polar/parca-agent/bpf' | |
| make[1]: Nothing to be done for 'build'. | |
| make[1]: Leaving directory '/home/larkin/Aimia/polar/parca-agent/bpf' | |
| cp bpf/cpu/cpu.bpf.o pkg/profiler/cpu/cpu-profiler.bpf.o | |
| sudo CGO_ENABLED=1 GOOS=linux GOARCH=amd64 CC="clang" CGO_CFLAGS="-I/home/larkin/Aimia/polar/parca-agent/dist/libbpf/amd64/usr/include" CGO_LDFLAGS="-fuse-ld=ld -lzstd /home/larkin/Aimia/polar/parca-agent/dist/libbpf/amd64/libbpf.a" /usr/local/go/bin/go test -v ./test/integration/... -count=1 | |
| [sudo] password for larkin: | |
| === RUN TestCPUProfilerWorks | |
| --- FAIL: TestCPUProfilerWorks (1.85s) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdlib.h> | |
| void strcpy(char *dest, char *src) { | |
| while (*src != '\0') { | |
| *dest = *src; | |
| dest++, src++; | |
| } | |
| *dest = '\0'; | |
| } |
This report contains the work done during the first 3 weeks of the Community Bridge program for the project Refurbishing Make Coccicheck.
After the initial discussion with my mentor, the project work for the first phase was divided into 2 parts:
- Week 1-2: Identifying key areas where the
coccicheckscript can be improved- both in terms of usability and performance. - Week 3: Test coccinelle scripts, send patches as required, and eventually improve and incorporate them into the linux kernel.