Skip to content

cat using syscall io_uring, and some linux kernel stuff, my repository learning io_uring

License

Notifications You must be signed in to change notification settings

fadhil-riyanto/cat-io-uring

Repository files navigation

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:

make cat_io_uring

if you see something unexpected:

make clean && make cat_io_uring

debug

  • using default Address Sanitizer (ASan)
    append this on CFLAGS

    -fsanitize=address
  • using valgrind

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
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

About

cat using syscall io_uring, and some linux kernel stuff, my repository learning io_uring

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published