syscalls: Make the flags and mode fields of open[at] enumerations
authorGeneviève Bastien <gbastien@versatic.net>
Wed, 11 Mar 2020 16:33:04 +0000 (12:33 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 23 Mar 2020 20:00:53 +0000 (16:00 -0400)
commitc8dfb72431505d5f01a6f090f3f7427d9ca6fe94
tree3e5840c4b7a9de769b8b000c1744f02fc2f29c91
parent9b364f49f196c116deafc43e824751084310070c
syscalls: Make the flags and mode fields of open[at] enumerations

The open and openat system call have a flags and mode fields, whose values
are defined in the linux/fcntl.h file. These fields are now
enumerations that can be read as a bit field enum, to make the values more
readable / meaningful.

Here's an example babeltrace output of the open system call:

[...] syscall_entry_openat: { cpu_id = 0 }, { dfd = -100,
filename = "/tmp/edg0_383407",
flags = ( "O_RDWR" | "O_CREAT" | "O_TRUNC" : container = 578 ),
mode = ( "S_IWOTH" | "S_IROTH" | "S_IWGRP" | "S_IRGRP" |
   "S_IWUSR" | "S_IRUSR" : container = 438 ) }

Change-Id: Id7a516670b03e52fc75f9ff3c6ba8114c61a3865
Signed-off-by: Geneviève Bastien <gbastien@versatic.net>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/syscalls/headers/syscalls_pointers_override.h
lttng-syscalls.c
This page took 0.025418 seconds and 4 git commands to generate.