https://github.com/fadhil-riyanto/cat-io-uring
cat using syscall io_uring, and some linux kernel stuff, my repository learning io_uring
https://github.com/fadhil-riyanto/cat-io-uring
io-uring
Last synced: over 1 year ago
JSON representation
cat using syscall io_uring, and some linux kernel stuff, my repository learning io_uring
- Host: GitHub
- URL: https://github.com/fadhil-riyanto/cat-io-uring
- Owner: fadhil-riyanto
- License: mit
- Created: 2024-07-11T07:38:07.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-15T13:17:53.000Z (almost 2 years ago)
- Last Synced: 2025-02-05T21:59:24.954Z (over 1 year ago)
- Topics: io-uring
- Language: C
- Homepage:
- Size: 60.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
cat but using io_uring
--
warn: experimental package, use at your own risk
---
introduction
-
this repository is a clone of the cat *nix command but made it myself.
used to know how io_uring works, and some posix function
compile instruction:
```sh
make cat_io_uring
```
if you see something unexpected:
```sh
make clean && make cat_io_uring
```
debug
-
- using default Address Sanitizer (ASan)
append this on CFLAGS
```sh
-fsanitize=address
```
- using valgrind
```sh
valgrind --leak-check=full \
--show-leak-kinds=all \
--track-origins=yes \
--verbose \
./cat_io_uring something.txt
```
- gdb
if you found something crash, run program with gdb, example
```sh
gdb ./cat_io_uring
> r something.txt
> bt
```
its will tell you where the program crash
tested operating system:
Arch Linux
uname -a:
```Linux integral2 6.9.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 21 Jun 2024 19:49:19 +0000 x86_64 GNU/Linux```
license: MIT