MINOR: trace: support -dt optional format

Add an optional argument for "-dt". This argument is interpreted as a
list of several trace statement separated by comma. For each statement,
a specific trace name can be specifed, or none to act on all sources.
Using double-colon separator, it is possible to add specifications on
the wanted level and verbosity.
This commit is contained in:
Amaury Denoyelle
2023-11-22 17:27:57 +01:00
parent 670520cff8
commit e97489a526
4 changed files with 117 additions and 12 deletions

View File

@@ -190,7 +190,7 @@ void trace_no_cb(enum trace_level level, uint64_t mask, const struct trace_sourc
void trace_register_source(struct trace_source *source);
int trace_parse_cmd();
int trace_parse_cmd(char *arg, char **errmsg);
/* return a single char to describe a trace state */
static inline char trace_state_char(enum trace_state st)