[RFC PATCH v3 2/5] Refactor scan_fdinfo and decode-fd functions

Sahil icegambit91 at gmail.com
Thu May 16 03:10:01 UTC 2024


Hi,

On Tuesday, May 14, 2024 12:45:14 PM GMT+5:30 Dmitry V. Levin wrote:
> On Tue, May 14, 2024 at 10:31:36AM +0530, Sahil wrote:
> > [...]
> > I am confused about the situation in which the "scan_fdinfo_lines" array
> > will have more than one element. I am not sure if I am missing something
> > here. In the case of eventfd, for example, an array of strings (char**)
> > will have to be passed to scan_fdinfo instead of a single string. In this
> > case, the signature of the inline function "scan_fdinfo" will have to be
> > changed, right? Similarly, an array of pointer functions will have to be
> > passed to the inline function.
> 
> The idea is to continue using scan_fdinfo() for the case of single search
> prefix, and use scan_fdinfo_array() for other cases.

Thank you for the clarification. This makes sense now.

Thanks,
Sahil




More information about the Strace-devel mailing list