dtrace-utils icon indicating copy to clipboard operation
dtrace-utils copied to clipboard

Optimize arg retrieval from stack

Open kvanhees opened this issue 8 months ago • 0 comments

Right now we have a loop over the argN values that need to be retrieved from the stack, and retrieve them one by one, using the bpf_probe_read_kernel helper. But, since the values will be in consecutive stack slots and we are going to store them in consecutive slots in the mstate, we can simply do a larger read using a single helper call.

kvanhees avatar Jun 04 '25 04:06 kvanhees