[RFC PATCH v2 2/4] Add eventfd option to --decode-fds

Sahil icegambit91 at gmail.com
Sat May 4 18:09:00 UTC 2024


Hi,

On Saturday, May 4, 2024 6:21:19 PM IST Dmitry V. Levin wrote:
> [...]
> Now that I think of it, this could be printed in a more structured way
> by using a struct, e.g.
> 
> 	tprint_associated_info_begin();
> 	tprint_struct_begin();
> 	tprints_field_name("eventfd-count");
> 	PRINT_VAL_U(efd_counter);
> 	tprint_struct_next();
> 	tprints_field_name("eventfd-id");
> 	PRINT_VAL_U(efd_id);
> 	tprint_struct_end();
> 	tprint_associated_info_end();

I agree. I'll use this in the "if" conditions.

Thanks,
Sahil




More information about the Strace-devel mailing list