Skip to content

Commit

Permalink
remove unnecessary object creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Abyss-W4tcher committed Feb 9, 2025
1 parent 83dde6a commit a9691fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions volatility3/framework/plugins/linux/tracing/tracepoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ def iterate_tracepoints_array(

tracepoints = []
tracepoints_start = kernel.object_from_symbol("__start___tracepoints_ptrs")
tracepoints_end = kernel.object_from_symbol("__stop___tracepoints_ptrs")
tracepoints_array_size = (
tracepoints_end.vol.offset - tracepoints_start.vol.offset
tracepoints_end = kernel.get_absolute_symbol_address(
"__stop___tracepoints_ptrs"
)
tracepoints_array_size = tracepoints_end - tracepoints_start.vol.offset
# kernel's tracepoint_ptr_deref() and tracepoint_ptr_t
# adjust depending on the use of PC-relative addressing
# or not.
Expand Down

0 comments on commit a9691fb

Please sign in to comment.