Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
syscalls: Make clone()'s
flags
field a 2 enum struct.
The clone system call has a flags field, whose values are defined in uapi/linux/sched.h file. This field is now a struct made of 2 enumerations to make the values more readable/meaningful. The `flags` field has two parts: 1. exit signal: the least significant byte of the `unsigned long` is the signal the kernel need to send to the parent process on child exit, 2. clone options: the remaining bytes of the `unsigned long` is used a bitwise flag for the clone options. Those 2-in-1 fields should be printed using two different CTF fields. Here's an example babeltrace output of the clone system call: syscall_entry_clone: { cpu_id = 2 }, { flags = { exit_signal = ( "SIGCHLD" : container = 0x11 ), options = ( "CLONE_CHILD_CLEARTID" | "CLONE_CHILD_SETTID" : container = 0x12000 ) } Change-Id: Ic375b59fb3b6564f036e1af24d66c0c7069b47d6 Signed-off-by: Geneviève Bastien <gbastien@versatic.net> Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- Loading branch information
Showing
1 changed file
with
167 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters