From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753168AbdK3NXt (ORCPT ); Thu, 30 Nov 2017 08:23:49 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:38972 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752690AbdK3NUj (ORCPT ); Thu, 30 Nov 2017 08:20:39 -0500 X-Google-Smtp-Source: AGs4zMYAhY1KHC5T/9PyNAW2d7qL2WD2JEqfBRzoMm5d+csyaYDswMwwHFp4cSZPIqnI4MS1L6d2WQ== From: "Vladislav Valtchev (VMware)" To: rostedt@goodmis.org Cc: linux-kernel@vger.kernel.org, y.karadz@gmail.com, "Vladislav Valtchev (VMware)" Subject: [PATCH v2 04/10] trace-cmd: Rename trace_profile() to do_trace_profile() Date: Thu, 30 Nov 2017 15:19:51 +0200 Message-Id: <20171130131957.21617-5-vladislav.valtchev@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171130131957.21617-1-vladislav.valtchev@gmail.com> References: <20171130131957.21617-1-vladislav.valtchev@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The purpose of this renaming is to make room for a new trace_profile() function, that will handle directly the 'profile' command, following the internal convention COMMAND_NAME -> trace_{COMMAND_NAME}. Clearly, in the next steps the top-level trace_profile() function will be made to call do_trace_profile() after some initialization. Signed-off-by: Vladislav Valtchev (VMware) --- trace-local.h | 2 +- trace-profile.c | 2 +- trace-read.c | 2 +- trace-record.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/trace-local.h b/trace-local.h index c01ef72..fa5232b 100644 --- a/trace-local.h +++ b/trace-local.h @@ -96,7 +96,7 @@ struct hook_list; void trace_init_profile(struct tracecmd_input *handle, struct hook_list *hooks, int global); -int trace_profile(void); +int do_trace_profile(void); void trace_profile_set_merge_like_comms(void); struct tracecmd_input * diff --git a/trace-profile.c b/trace-profile.c index 0af27cd..a2bb3fc 100644 --- a/trace-profile.c +++ b/trace-profile.c @@ -2452,7 +2452,7 @@ static void merge_tasks(struct handle_data *h) } } -int trace_profile(void) +int do_trace_profile(void) { struct handle_data *h; diff --git a/trace-read.c b/trace-read.c index 350a843..af5548a 100644 --- a/trace-read.c +++ b/trace-read.c @@ -1227,7 +1227,7 @@ static void read_data_info(struct list_head *handle_list, enum output_type otype } while (last_record); if (profile) - trace_profile(); + do_trace_profile(); list_for_each_entry(handles, handle_list, list) { free_filters(handles->event_filters); diff --git a/trace-record.c b/trace-record.c index b37e073..827189d 100644 --- a/trace-record.c +++ b/trace-record.c @@ -4923,7 +4923,7 @@ static void record_trace(int argc, char **argv, tracecmd_output_close(network_handle); if (IS_PROFILE(ctx)) - trace_profile(); + do_trace_profile(); exit(0); } -- 2.14.1