From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752472AbdK3NUf (ORCPT ); Thu, 30 Nov 2017 08:20:35 -0500 Received: from mail-wr0-f177.google.com ([209.85.128.177]:36011 "EHLO mail-wr0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751125AbdK3NUe (ORCPT ); Thu, 30 Nov 2017 08:20:34 -0500 X-Google-Smtp-Source: AGs4zMZwfI+K8FN6iPKBhReM4YwN+kWX/5N7XBqpQKbxHsFQ4SZoKRRqPjR/pdPs1uwKgztdvzjMTA== From: "Vladislav Valtchev (VMware)" To: rostedt@goodmis.org Cc: linux-kernel@vger.kernel.org, y.karadz@gmail.com, "Vladislav Valtchev (VMware)" Subject: [PATCH v2 00/10] trace-cmd: Refactoring trace_record() Date: Thu, 30 Nov 2017 15:19:47 +0200 Message-Id: <20171130131957.21617-1-vladislav.valtchev@gmail.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following series of patches is a refactoring of trace_record() trying to reduce as much as possible its complexity but, at the same time, without making risky changes. All the patches are relatively small and potentially no-brainer steps towards the final shape of the code. The rationale for this effort is to make the code much easier to maintain. Vladislav Valtchev (VMware) (10): trace-cmd: Extract parse_record_options() from trace_record() trace-cmd: Replacing cmd flags w/ a trace_cmd enum trace-cmd: Extracting record_trace() trace-cmd: Rename trace_profile() to do_trace_profile() trace-cmd: Making start,extract,stream,profile separate funcs trace-cmd: Extr. profile-specific code from record_trace trace-cmd: Mov init_common_record_context in parse_record_options trace-cmd: Introducing get_trace_cmd_type() trace-cmd: Extract finalize_record_trace() trace-cmd: Fork record_trace() for the extract case trace-cmd.c | 8 +- trace-local.h | 10 +- trace-profile.c | 2 +- trace-read.c | 2 +- trace-record.c | 640 +++++++++++++++++++++++++++++++++----------------------- 5 files changed, 390 insertions(+), 272 deletions(-) -- 2.14.1