- def __init__(self, trace, pid):
- super().__init__(trace, pid)
- self.expect["select_in_fd0"] = 0
- self.expect["select_in_fd1023"] = 0
- self.expect["select_out_fd0"] = 0
- self.expect["select_out_fd1023"] = 0
- self.expect["poll_in_nfds1"] = 0
- self.expect["poll_out_nfds1"] = 0
- self.expect["epoll_ctl_in_add"] = 0
- self.expect["epoll_ctl_out_ok"] = 0
- self.expect["epoll_wait_in_ok"] = 0
- self.expect["epoll_wait_out_fd0"] = 0
+ def __init__(self, trace, validation_args):
+ super().__init__(trace, validation_args['pid'])
+
+ # Values expected in the trace
+ self.epoll_wait_fd = validation_args['epoll_wait_fd']
+ self.epoll_pwait_fd = validation_args['epoll_pwait_fd']
+
+ self.expect["select_entry"]["select_in_fd0"] = 0
+ self.expect["select_entry"]["select_in_fd1023"] = 0
+ self.expect["select_exit"]["select_out_fd0"] = 0
+ self.expect["select_exit"]["select_out_fd1023"] = 0
+ self.expect["poll_entry"]["poll_in_nfds1"] = 0
+ self.expect["poll_exit"]["poll_out_nfds1"] = 0
+ self.expect["epoll_ctl_entry"]["epoll_ctl_in_add"] = 0
+ self.expect["epoll_ctl_exit"]["epoll_ctl_out_ok"] = 0
+ self.expect["epoll_wait_entry"]["epoll_wait_in_ok"] = 0
+ self.expect["epoll_wait_exit"]["epoll_wait_out_fd0"] = 0
+ self.expect["epoll_pwait_entry"]["epoll_pwait_in_ok"] = 0
+ self.expect["epoll_pwait_exit"]["epoll_pwait_out_fd0"] = 0