Commit Graph

2 Commits

Author SHA1 Message Date
yunwei37
4f08c25f36 fix: Resolve BPF stack overflow by using per-CPU array for key storage
The key_t structure was too large for the BPF stack (512 bytes limit),
causing verification failures. Fixed by:
- Adding BPF_MAP_TYPE_PERCPU_ARRAY for key storage
- Moving key allocation from stack to per-CPU map
- Replacing __builtin_memset with manual initialization loop
  (memset not supported in eBPF)

Test results: Successfully profiled Python process, captured 31 unique
native stack traces over 3 seconds at 49 Hz sampling frequency.

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-13 09:19:46 -07:00
yunwei37
2ca0e4023a feat: Add Python stack profiler using eBPF for enhanced performance analysis 2025-10-13 08:57:34 -07:00