mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
tracing: Use seq_buf for building dynevent_cmd string
The dynevent_cmd commands that build up the command string don't need to do that themselves - there's a seq_buf facility that does pretty much the same thing those command are doing manually, so use it instead. Link: http://lkml.kernel.org/r/eb8a6e835c964d0ab8a38cbf5ffa60746b54a465.1580506712.git.zanussi@kernel.org Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Tom Zanussi <zanussi@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:
parent
e9260f6257
commit
2b90927c77
4 changed files with 16 additions and 40 deletions
|
@ -367,10 +367,8 @@ struct dynevent_cmd;
|
|||
typedef int (*dynevent_create_fn_t)(struct dynevent_cmd *cmd);
|
||||
|
||||
struct dynevent_cmd {
|
||||
char *buf;
|
||||
struct seq_buf seq;
|
||||
const char *event_name;
|
||||
int maxlen;
|
||||
int remaining;
|
||||
unsigned int n_fields;
|
||||
enum dynevent_type type;
|
||||
dynevent_create_fn_t run_command;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue