Skip to content

Commit

Permalink
Linux: ptrace: improve header names and variables
Browse files Browse the repository at this point in the history
  • Loading branch information
gcmoreira committed Oct 8, 2024
1 parent 3c4b999 commit aa95913
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions volatility3/framework/plugins/linux/ptrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ def _generator(self, vmlinux_module_name):
]
flags = task.get_ptrace_tracee_flags() or renderers.NotAvailableValue()

for tree, tracing_tid in enumerate(tracee_tids):
for level, tracee_tid in enumerate(tracee_tids):
fields = [
task_comm,
user_pid,
user_tid,
tracer_tid,
tracing_tid,
tracee_tid,
flags,
]
yield (tree, fields)
yield (level, fields)

def run(self):
vmlinux_module_name = self.config["kernel"]
Expand All @@ -90,8 +90,8 @@ def run(self):
("Process", str),
("PID", int),
("TID", int),
("Traced by TID", int),
("Tracing TID", int),
("Tracer TID", int),
("Tracee TID", int),
("Flags", str),
]
return renderers.TreeGrid(headers, self._generator(vmlinux_module_name))

0 comments on commit aa95913

Please sign in to comment.