From patchwork Thu Jul 11 13:03:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Tzvetomir Stoyanov (VMware)" X-Patchwork-Id: 11039955 X-Patchwork-Delegate: rostedt@goodmis.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9A672138D for ; Thu, 11 Jul 2019 13:03:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89D2F2882D for ; Thu, 11 Jul 2019 13:03:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7CA9628A48; Thu, 11 Jul 2019 13:03:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 27FE32882D for ; Thu, 11 Jul 2019 13:03:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728180AbfGKNDP (ORCPT ); Thu, 11 Jul 2019 09:03:15 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:44926 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725971AbfGKNDO (ORCPT ); Thu, 11 Jul 2019 09:03:14 -0400 Received: by mail-wr1-f65.google.com with SMTP id p17so6193322wrf.11 for ; Thu, 11 Jul 2019 06:03:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=o1v5rDCF84XbeQVuw2S+05ZHRphrkE0pHuSTo2O2QWo=; b=j3ao1QnmP8VHKLUB/YXJ+atdTaGqsqcd/FG3Q+Ua+nbTocTwbrH/GvfpNmK/trAK14 axeR5ezGOuwXv8I41q20K/Ofmn/yH6hL5BOyQIzfO17l3+zGEIPTLPgj0QuupH9L3tsm TL/A2tzvlscaXruAih3uQDegWyfVXJpZWn02BG+bfu1LiEUZ6fCYRNX+tX+URXHaR89m WY7Z5FsVy/1cmwvU/gu6MsCiwaWpAY9XxFSHGHzwNY+8fyfr9wRGtMZxGfa81LXetgKD ykRiOD702QS+jje1aSUdhaH4RX/zJAZwVa664uyNCOPQIUnNdyuBTWR9w/pwuFpy79BE hVIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=o1v5rDCF84XbeQVuw2S+05ZHRphrkE0pHuSTo2O2QWo=; b=Gttd/zYuzwMpXyryKhsBuaLIiJb/H3z8Rec/fSbhMwIeJmxZTb0DNKYnMn6mAcokLl VagSLCNRWops0hZrzwMjFbweDx97P/1JUt4/zgE24kv9onTQeXz21oJPliF1qY3ZiM/3 VZjY+EN4WGenwMSolkvOs37b2LBdBu2zAoDGjmBB+ERPLrjQq/FJ23XdWQOWWmF3LyQi bfceVaZDzrFwLWF8AhneMLJ9FKmitcNdfg96qkQcrLFYJTg3AHjAREQVISEVJcoXTdxe kSI+0w+oFPZTX6L2QlBsB0u6wZPejjAzyvJjMJRMRTR23efjJNsIQ5s14BsZb23pnybL aoTA== X-Gm-Message-State: APjAAAWBtzOrK51Ib/gcK3fld7iBX8vj/E16tp84hMC5mHYScqBpaD2o vyN9en3dNik8hghs4UKJJK1tuqpX X-Google-Smtp-Source: APXvYqyjkcTMChV0dfLUQt5zQA4yq6IA5Y5NJs2tMYdawTPmn2juiSw7qoAMUDcj+S7I+sOerBtb+w== X-Received: by 2002:adf:f3cc:: with SMTP id g12mr5037830wrp.149.1562850192661; Thu, 11 Jul 2019 06:03:12 -0700 (PDT) Received: from oberon.eng.vmware.com ([146.247.46.5]) by smtp.gmail.com with ESMTPSA id h6sm4642590wre.82.2019.07.11.06.03.11 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 11 Jul 2019 06:03:12 -0700 (PDT) From: "Tzvetomir Stoyanov (VMware)" To: rostedt@goodmis.org Cc: linux-trace-devel@vger.kernel.org Subject: [PATCH 2/7] trace-cmd: Move trace-msg.c into the library. Date: Thu, 11 Jul 2019 16:03:02 +0300 Message-Id: <20190711130307.25041-3-tz.stoyanov@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190711130307.25041-1-tz.stoyanov@gmail.com> References: <20190711130307.25041-1-tz.stoyanov@gmail.com> MIME-Version: 1.0 Sender: linux-trace-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Functions, implemented in trace-msg.c file, do not depend on trace-cmd application context and can be used standalone. The file is moved from trace-cmd to libtracecmd. Signed-off-by: Tzvetomir Stoyanov (VMware) --- {tracecmd/include => include/trace-cmd}/trace-msg.h | 0 lib/trace-cmd/Makefile | 1 + {tracecmd => lib/trace-cmd}/trace-msg.c | 0 tracecmd/Makefile | 1 - 4 files changed, 1 insertion(+), 1 deletion(-) rename {tracecmd/include => include/trace-cmd}/trace-msg.h (100%) rename {tracecmd => lib/trace-cmd}/trace-msg.c (100%) diff --git a/tracecmd/include/trace-msg.h b/include/trace-cmd/trace-msg.h similarity index 100% rename from tracecmd/include/trace-msg.h rename to include/trace-cmd/trace-msg.h diff --git a/lib/trace-cmd/Makefile b/lib/trace-cmd/Makefile index 9086eb6..5f7b111 100644 --- a/lib/trace-cmd/Makefile +++ b/lib/trace-cmd/Makefile @@ -16,6 +16,7 @@ OBJS += trace-output.o OBJS += trace-recorder.o OBJS += trace-util.o OBJS += trace-filter-hash.o +OBJS += trace-msg.o # Additional util objects OBJS += trace-blk-hack.o diff --git a/tracecmd/trace-msg.c b/lib/trace-cmd/trace-msg.c similarity index 100% rename from tracecmd/trace-msg.c rename to lib/trace-cmd/trace-msg.c diff --git a/tracecmd/Makefile b/tracecmd/Makefile index 6968f83..d491aae 100644 --- a/tracecmd/Makefile +++ b/tracecmd/Makefile @@ -30,7 +30,6 @@ TRACE_CMD_OBJS += trace-check-events.o TRACE_CMD_OBJS += trace-show.o TRACE_CMD_OBJS += trace-list.o TRACE_CMD_OBJS += trace-usage.o -TRACE_CMD_OBJS += trace-msg.o ALL_OBJS := $(TRACE_CMD_OBJS:%.o=$(bdir)/%.o)