summaryrefslogtreecommitdiff
path: root/internal/eventloop.go
AgeCommit message (Collapse)Author
2026-02-22Implement mmap/msync syscall support with unit and integration coveragePaul Buetow
2026-02-22Implement sync_file_range coverage and document mage world bootstrapPaul Buetow
2026-02-21fix: close_range path resolution - lookup fd before deleting from mapPaul Buetow
Move e.files[fd] lookup before the close_range fd cleanup loop in the FdEvent handler so the file path is resolved while the fd still exists in the map. Previously, close_range events always fell through to file.NewFdWithPid() which couldn't resolve the path since the fd was already closed. Also add unit test assertion verifying ep.File resolves to the correct filename for close_range events. Task: 349 Amp-Thread-ID: https://ampcode.com/threads/T-019c8180-1da4-7048-9200-ae93bdd90cab Co-authored-by: Amp <amp@ampcode.com>
2026-02-21Add byte count tracking to event pairsPaul Buetow
Amp-Thread-ID: https://ampcode.com/threads/T-019c8012-eaeb-768d-a264-5a704f3939ef Co-authored-by: Amp <amp@ampcode.com>
2026-02-21Enable name_to_handle_at and io_uring fd attributionPaul Buetow
Amp-Thread-ID: https://ampcode.com/threads/T-019c7fec-eec9-706a-8338-3ce674802680 Co-authored-by: Amp <amp@ampcode.com>
2026-02-21Track io_uring setup fds in event loopPaul Buetow
Amp-Thread-ID: https://ampcode.com/threads/T-019c7fd9-5870-77b7-9909-3eb7550d17bb Co-authored-by: Amp <amp@ampcode.com>
2026-02-21Handle close_range cleanupPaul Buetow
Amp-Thread-ID: https://ampcode.com/threads/T-019c7faf-baaa-704f-af15-8aeba9df4628 Co-authored-by: Amp <amp@ampcode.com>
2026-02-21Handle open_by_handle_at without pathnamePaul Buetow
Amp-Thread-ID: https://ampcode.com/threads/T-019c7faf-baaa-704f-af15-8aeba9df4628 Co-authored-by: Amp <amp@ampcode.com>
2026-02-21rewrite from Raku to Golang initialPaul Buetow
2025-10-09fix unit tests, initial hard exclude of not working yet syscallsPaul Buetow
2025-10-09initial handle by open_at syscallsPaul Buetow
2025-10-08clarify, that some tests are there already for FCNTLPaul Buetow
2025-07-11fix the fctnl F_SET bugPaul Buetow
2025-07-10Update TODO.md and remove obsolete unit test commentsPaul Buetow
- Remove 5 obsolete "TODO: Unit test this" comments from eventloop.go for event types that already have comprehensive test coverage - Keep TODO comment for FcntlEvent which still needs tests - Reorganize TODO.md with prioritized task list based on all TODOs found across the codebase - Add priority levels: High (core functionality), Medium (additional syscalls), Low (less common features), and General improvements - Document completed tasks to acknowledge test coverage achievements 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-10Remove outdated dup3 TODO and add comprehensive testsPaul Buetow
- Remove misleading TODO comment about dup3 implementation (already implemented) - Add comprehensive test for dup3 with O_CLOEXEC flag verification - Add comprehensive test for dup2 without O_CLOEXEC flag - Both tests verify proper file descriptor lifecycle and flag handling The dup3 syscall was already fully implemented but lacked proper testing. These tests ensure correct behavior of both dup2 and dup3 syscalls, particularly the O_CLOEXEC flag handling which differentiates them. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-16add EqualsPaul Buetow
2025-04-16fix commPaul Buetow
2025-04-16eventloop initial test plus fixPaul Buetow
2025-04-15more on testingPaul Buetow
2025-04-11fixPaul Buetow
2025-04-11add dup3 syscallPaul Buetow
2025-04-10can serialize and deserialize to/from gobPaul Buetow
2025-04-09add mrproper.Paul Buetow
2025-04-06betterPaul Buetow
2025-04-06refactorPaul Buetow
2025-04-06same herePaul Buetow
2025-04-06no it is not really faster as shown in a benchmarkPaul Buetow
2025-04-01initial iordata_testPaul Buetow
2025-03-30add syslogPaul Buetow
2025-03-29flags is now a singletonPaul Buetow
2025-03-29fixPaul Buetow
2025-03-28creat opens a new filePaul Buetow
2025-03-28add readv family of I/O syscallsPaul Buetow
2025-03-27implement dup2Paul Buetow
2025-03-27implemented dupPaul Buetow
2025-03-26reformat outputPaul Buetow
2025-03-26implement syncPaul Buetow
2025-03-26initial io_ async tracepointsPaul Buetow
2025-03-26add more todosPaul Buetow
2025-03-25more on thisPaul Buetow
2025-03-24more on thisPaul Buetow
2025-03-24more on thisPaul Buetow
2025-03-24ignore ior process itselfPaul Buetow
2025-03-24more debuggingPaul Buetow
2025-03-24more on thisPaul Buetow
2025-03-24initial dupPaul Buetow
2025-03-24fix termination of the event loopPaul Buetow
2025-03-23add flags from fdinfo infoPaul Buetow
add other warning about vanished pid
2025-03-22catch syscall return code for fcntl success or errorPaul Buetow
2025-03-22fix nil pointer derefPaul Buetow