Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Fix: check tid and cpu filters on upate_fd callback #74

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lttnganalyses/core/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,14 @@ def _process_close_fd(self, **kwargs):
def _process_update_fd(self, **kwargs):
parent_proc = kwargs['parent_proc']
tid = parent_proc.tid
cpu = kwargs['cpu_id']
fd = kwargs['fd']

if not self._filter_process(parent_proc):
return
if not self._filter_cpu(cpu):
return

new_filename = parent_proc.fds[fd].filename
fd_list = self.tids[tid].fds[fd]
fd_list[-1].filename = new_filename
Expand Down