Files
hakmem/core/hakmem_sys.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

33 lines
867 B
C

// hakmem_sys.h - Syscall Wrappers (Box理論: OS呼出箱)
// Purpose: Centralized syscall interface with timing measurement
//
// License: MIT
// Date: 2025-10-21
#pragma once
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
// ============================================================================
// Syscall Wrappers (OS呼出集約)
// ============================================================================
// mmap wrapper with timing measurement
void* hkm_sys_mmap(size_t size);
// munmap wrapper with timing measurement
void hkm_sys_munmap(void* ptr, size_t size);
// madvise(MADV_DONTNEED) wrapper with timing measurement
void hkm_sys_madvise_dontneed(void* ptr, size_t size);
// madvise(MADV_WILLNEED) wrapper with timing measurement (optional)
void hkm_sys_madvise_willneed(void* ptr, size_t size);
#ifdef __cplusplus
}
#endif