- if (last_syscall && (strncmp(bt_ctf_event_name(call_data),
- "exit_syscall", 12)) != 0) {
+ if (((strncmp(bt_ctf_event_name(call_data),
+ "exit_syscall", 12)) == 0) ||
+ ((strncmp(bt_ctf_event_name(call_data),
+ "syscall_exit", 12)) == 0)) {
+ syscall_exit = 1;
+ }
+
+ if (last_syscall && !syscall_exit) {