Re: [PATCH v2 39/39] util/log: Support per-thread log files

2022-04-14 Thread Richard Henderson
On 4/14/22 08:35, Alex Bennée wrote: +/** + * valid_filename_template: + * + * Validate the filename template. Require %d if per_thread, allow it + * otherwise; require no other % within the template. + * Return 0 if invalid, 1 if stderr, 2 if strdup, 3 if pid printf. From a neatness point of

Re: [PATCH v2 39/39] util/log: Support per-thread log files

2022-04-14 Thread Alex Bennée
Richard Henderson writes: > Add a new log flag, tid, to turn this feature on. > Require the log filename to be set, and to contain %d. > > Do not allow tid to be turned off once it is on, nor let > the filename be change thereafter. This avoids the need > for signalling each thread to re-open

[PATCH v2 39/39] util/log: Support per-thread log files

2022-03-26 Thread Richard Henderson
Add a new log flag, tid, to turn this feature on. Require the log filename to be set, and to contain %d. Do not allow tid to be turned off once it is on, nor let the filename be change thereafter. This avoids the need for signalling each thread to re-open on a name change. Signed-off-by: Richard