Decode arguments passed to kldsym() and kldunloadf().
This does not currently decode the kld_sym_lookup structure passed to kldsym().
This commit is contained in:
parent
6c23d3cf76
commit
94e854c517
@ -45,7 +45,8 @@ enum Argtype { None = 1, Hex, Octal, Int, UInt, LongHex, Name, Ptr, Stat, Ioctl,
|
||||
Pathconf, Rforkflags, ExitStatus, Waitoptions, Idtype, Procctl,
|
||||
LinuxSockArgs, Umtxop, Atfd, Atflags, Timespec2, Accessmode, Long,
|
||||
Sysarch, ExecArgs, ExecEnv, PipeFds, QuadHex, Utrace, IntArray, Pipe2,
|
||||
CapFcntlRights, Fadvice, FileFlags, Flockop, Getfsstatmode,
|
||||
CapFcntlRights, Fadvice, FileFlags, Flockop, Getfsstatmode, Kldsymcmd,
|
||||
Kldunloadflags,
|
||||
|
||||
CloudABIAdvice, CloudABIClockID, ClouduABIFDSFlags,
|
||||
CloudABIFDStat, CloudABIFileStat, CloudABIFileType,
|
||||
|
@ -193,8 +193,12 @@ static struct syscall decoded_syscalls[] = {
|
||||
.args = { { Int, 0 } } },
|
||||
{ .name = "kldstat", .ret_type = 1, .nargs = 2,
|
||||
.args = { { Int, 0 }, { Ptr, 1 } } },
|
||||
{ .name = "kldsym", .ret_type = 1, .nargs = 3,
|
||||
.args = { { Int, 0 }, { Kldsymcmd, 1 }, { Ptr, 2 } } },
|
||||
{ .name = "kldunload", .ret_type = 1, .nargs = 1,
|
||||
.args = { { Int, 0 } } },
|
||||
{ .name = "kldunloadf", .ret_type = 1, .nargs = 2,
|
||||
.args = { { Int, 0 }, { Kldunloadflags, 1 } } },
|
||||
{ .name = "kse_release", .ret_type = 0, .nargs = 1,
|
||||
.args = { { Timespec, 0 } } },
|
||||
{ .name = "lchflags", .ret_type = 1, .nargs = 2,
|
||||
@ -1893,6 +1897,13 @@ print_arg(struct syscall_args *sc, unsigned long *args, long *retval,
|
||||
print_integer_arg(sysdecode_getfsstat_mode, fp,
|
||||
args[sc->offset]);
|
||||
break;
|
||||
case Kldsymcmd:
|
||||
print_integer_arg(sysdecode_kldsym_cmd, fp, args[sc->offset]);
|
||||
break;
|
||||
case Kldunloadflags:
|
||||
print_integer_arg(sysdecode_kldunload_flags, fp,
|
||||
args[sc->offset]);
|
||||
break;
|
||||
|
||||
case CloudABIAdvice:
|
||||
fputs(xlookup(cloudabi_advice, args[sc->offset]), fp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user