aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Gondois <pierre.gondois@arm.com>2024-01-22 17:43:30 +0100
committerSteven Rostedt (Google) <rostedt@goodmis.org>2024-01-22 18:45:45 -0500
commit39f57e7abd4784eea3111de38843453fb3448625 (patch)
tree4102d8985d90130805119f6e2f11ca083f4916bc
parent64b4a7c0570d64fd93e7a25fc63d2b1219fba0cc (diff)
downloadtrace-cmd-39f57e7abd4784eea3111de38843453fb3448625.tar.gz
trace-cmd split: Small fixes
Small fixes: - Remove a useless assignment to 'current' variable. - Fix returned type of parse_file() Link: https://lore.kernel.org/linux-trace-devel/20240122164336.167256-2-pierre.gondois@arm.com Signed-off-by: Pierre Gondois <pierre.gondois@arm.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
-rw-r--r--tracecmd/trace-split.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tracecmd/trace-split.c b/tracecmd/trace-split.c
index 4fda7813..6ccda2fc 100644
--- a/tracecmd/trace-split.c
+++ b/tracecmd/trace-split.c
@@ -347,11 +347,12 @@ static int parse_cpu(struct tracecmd_input *handle,
return 0;
}
-static double parse_file(struct tracecmd_input *handle,
- const char *output_file,
- unsigned long long start,
- unsigned long long end, int percpu, int only_cpu,
- int count, enum split_types type)
+static unsigned long long parse_file(struct tracecmd_input *handle,
+ const char *output_file,
+ unsigned long long start,
+ unsigned long long end, int percpu,
+ int only_cpu, int count,
+ enum split_types type)
{
unsigned long long current;
struct tracecmd_output *ohandle;
@@ -551,7 +552,6 @@ void trace_split (int argc, char **argv)
strcat(output, ".1");
}
- current = start_ns;
output_file = malloc(strlen(output) + 50);
if (!output_file)
die("Failed to allocate for %s", output);