Files
hakmem/core/hakmem_trace.h
Moe Charm (CI) 52386401b3 Debug Counters Implementation - Clean History
Major Features:
- Debug counter infrastructure for Refill Stage tracking
- Free Pipeline counters (ss_local, ss_remote, tls_sll)
- Diagnostic counters for early return analysis
- Unified larson.sh benchmark runner with profiles
- Phase 6-3 regression analysis documentation

Bug Fixes:
- Fix SuperSlab disabled by default (HAKMEM_TINY_USE_SUPERSLAB)
- Fix profile variable naming consistency
- Add .gitignore patterns for large files

Performance:
- Phase 6-3: 4.79 M ops/s (has OOM risk)
- With SuperSlab: 3.13 M ops/s (+19% improvement)

This is a clean repository without large log files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 12:31:14 +09:00

23 lines
952 B
C

// hakmem_trace.h - Optional USDT tracepoints for perf (user-space static probes)
// Enable by building with: CFLAGS+=-DHAKMEM_USDT=1 and having <sys/sdt.h> available
// When disabled, all macros compile to no-ops (zero overhead).
#ifndef HAKMEM_TRACE_H
#define HAKMEM_TRACE_H
#if HAKMEM_USDT
# include <sys/sdt.h>
# define HAK_TP0(name) DTRACE_PROBE(hakmem, name)
# define HAK_TP1(name,a1) DTRACE_PROBE1(hakmem, name, (a1))
# define HAK_TP2(name,a1,a2) DTRACE_PROBE2(hakmem, name, (a1), (a2))
# define HAK_TP3(name,a1,a2,a3) DTRACE_PROBE3(hakmem, name, (a1), (a2), (a3))
#else
# define HAK_TP0(name) do{}while(0)
# define HAK_TP1(name,a1) do{ (void)(a1); }while(0)
# define HAK_TP2(name,a1,a2) do{ (void)(a1); (void)(a2); }while(0)
# define HAK_TP3(name,a1,a2,a3) do{ (void)(a1); (void)(a2); (void)(a3); }while(0)
#endif
#endif // HAKMEM_TRACE_H