return SYSCALL_EXIT_PREFIX;
}
+ /** @since 2.0 */
+ @Override
+ public String eventCompatSyscallExitPrefix() {
+ return SYSCALL_EXIT_PREFIX;
+ }
+
// ------------------------------------------------------------------------
// Event field names
// ------------------------------------------------------------------------
*/
String eventSyscallExitPrefix();
+ /**
+ * System call compatibility layer exit prefix, something like
+ * "compat_syscall_exit".
+ *
+ * @return the event name
+ * @since 2.0
+ */
+ String eventCompatSyscallExitPrefix();
+
/**
* The scheduler replaced the current process image with a new one. The
* process should also be renamed at this point. In windows, this is part of
* Version number of this state provider. Please bump this if you modify the
* contents of the generated state history in some way.
*/
- private static final int VERSION = 10;
+ private static final int VERSION = 11;
// ------------------------------------------------------------------------
// Fields
}
private boolean isSyscallExit(String eventName) {
- return (eventName.startsWith(fLayout.eventSyscallExitPrefix()));
+ return (eventName.startsWith(fLayout.eventSyscallExitPrefix()) ||
+ eventName.startsWith(fLayout.eventCompatSyscallExitPrefix()));
}
}
public String eventSyscallExitPrefix() {
return "syscall_exit_"; //$NON-NLS-1$
}
+
+ @Override
+ public String eventCompatSyscallExitPrefix() {
+ return "compat_syscall_exit_"; //$NON-NLS-1$
+ }
}
return SYSCALL_EXIT_PREFIX;
}
+ @Override
+ public String eventCompatSyscallExitPrefix() {
+ /*
+ * In LTTng < 2.6, the same generic event name is used for both standard
+ * and compat syscalls.
+ */
+ return SYSCALL_EXIT_PREFIX;
+ }
+
// ------------------------------------------------------------------------
// Event field names
// ------------------------------------------------------------------------
return "raw_syscalls:sys_exit"; //$NON-NLS-1$
}
+ @Override
+ public String eventCompatSyscallExitPrefix() {
+ return eventSyscallExitPrefix();
+ }
+
@Override
public String eventSchedProcessExec() {
return "sched:sched_process_exec"; //$NON-NLS-1$