Skip to content

Commit

Permalink
Add blkzone syscall support
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiwayzhang authored and rocallahan committed May 24, 2024
1 parent f540c25 commit 357cc52
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/record_syscall.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <fcntl.h>
#include <limits.h>
#include <linux/auxvec.h>
#include <linux/blkzoned.h>
#include <linux/capability.h>
#include <linux/cdrom.h>
#include <linux/elf.h>
Expand Down Expand Up @@ -1802,6 +1803,16 @@ static Switchable prepare_ioctl(RecordTask* t,
syscall_state.reg_parameter<typename Arch::unsigned_short>(3);
return PREVENT_SWITCH;

case BLKGETNRZONES:
case BLKGETZONESZ:
case BLKREPORTZONE:
case BLKCLOSEZONE:
case BLKOPENZONE:
case BLKRESETZONE:
case BLKFINISHZONE:
syscall_state.reg_parameter<typename Arch::signed_long>(3);
return PREVENT_SWITCH;

case TIOCGWINSZ:
syscall_state.reg_parameter<typename Arch::winsize>(3);
return PREVENT_SWITCH;
Expand Down

0 comments on commit 357cc52

Please sign in to comment.