From patchwork Tue Jan 23 13:42:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre Gondois X-Patchwork-Id: 13527464 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5699B5F558 for ; Tue, 23 Jan 2024 13:42:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706017363; cv=none; b=qc/3nkV+l9qmkyUhRXMxcCtE5BvCbCDZ9AQsQBnoA9AGDrOKG03bWq4DawlF1/TEUPkwfSTWPH/LhZReCDtKEuWH9AV9a5PrYzrcvwAFZrIdmMish3MrGOQj8h9yIIZUWta4ZBfyE/bNwg2WPqaWr5dZi67RM/U8KAi2MimjVJA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706017363; c=relaxed/simple; bh=O0aJtubHwTKtvUEesfi/qkz2utlbGFMLULZ2UKkV6Mo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=busK+j24v4Y9xAhdB2fn8BnvhIAOzFbsWmW/kVuJOoDx8Em9gk0FgbSvoMI2sRVJOAgFDsmlHgyQtDRjoVDJNQ6yb3ww0siN9Gsm+EJHaZgzgXGVEuxV34Ofh/Irg2HFOpZz2QW/JispZyj+h32wXz5by3X80aWHoTDDTXIQQcg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 880061424; Tue, 23 Jan 2024 05:43:26 -0800 (PST) Received: from e126645.home (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1D3803F762; Tue, 23 Jan 2024 05:42:39 -0800 (PST) From: Pierre Gondois To: Linux Trace Devel Cc: Steven Rostedt , Pierre Gondois Subject: [PATCH v3 5/5] trace-cmd split: Update usage Date: Tue, 23 Jan 2024 14:42:15 +0100 Message-Id: <20240123134215.385415-6-pierre.gondois@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240123134215.385415-1-pierre.gondois@arm.com> References: <20240123134215.385415-1-pierre.gondois@arm.com> Precedence: bulk X-Mailing-List: linux-trace-devel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Update usage for 'trace-cmd split' command: - Add missing description of -i/-C options - Add description of the newly enabled -B/--top options Signed-off-by: Pierre Gondois --- tracecmd/trace-usage.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tracecmd/trace-usage.c b/tracecmd/trace-usage.c index 6944a2c7..e5b84733 100644 --- a/tracecmd/trace-usage.c +++ b/tracecmd/trace-usage.c @@ -304,13 +304,20 @@ static struct usage_help usage_help[] = { { "split", "parse a trace.dat file into smaller file(s)", - " %s split [options] -o file [start [end]]\n" + " %s split [-i file] [options] [-B buffer] [--top[=name]] -o file [start [end]]\n" " -o output file to write to (file.1, file.2, etc)\n" " -s n split file up by n seconds\n" " -m n split file up by n milliseconds\n" " -u n split file up by n microseconds\n" " -e n split file up by n events\n" " -p n split file up by n pages\n" + " -C n select CPU n\n" + " -B buffer keep buffer in resulting .dat file\n" + " The first buffer specified will be the top buffer.\n" + " Use --top option to select the top buffer of the input\n" + " .dat file.\n" + " --top[=name] keep top buffer in resulting .dat file.\n" + " If specified, rename the top buffer to TOP.\n" " -r repeat from start to end\n" " -c per cpu, that is -p 2 will be 2 pages for each CPU\n" " if option is specified, it will split the file\n"