From: Steven Rostedt <rostedt@goodmis.org>
To: Linux Trace Devel <linux-trace-devel@vger.kernel.org>
Subject: [PATCH] trace-cmd split: Do not fail if cmdlines are not present
Date: Tue, 16 Jan 2024 21:14:15 -0500 [thread overview]
Message-ID: <20240116211415.41b530e5@gandalf.local.home> (raw)
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>
If the input file that is being split does not contain a 'cmdline'
section, do not fail. The section is optional.
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
---
lib/trace-cmd/trace-input.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/trace-cmd/trace-input.c b/lib/trace-cmd/trace-input.c
index dae5b90d7da9..ce4ecf43de74 100644
--- a/lib/trace-cmd/trace-input.c
+++ b/lib/trace-cmd/trace-input.c
@@ -5722,9 +5722,8 @@ int tracecmd_copy_headers(struct tracecmd_input *in_handle,
if (end_state <= in_handle->file_state)
return 0;
- ret = copy_command_lines(in_handle, out_handle);
- if (ret < 0)
- goto out;
+ /* Optional */
+ copy_command_lines(in_handle, out_handle);
/* fallthrough */
case TRACECMD_FILE_CPU_COUNT:
--
2.43.0
reply other threads:[~2024-01-17 2:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240116211415.41b530e5@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=linux-trace-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).