From patchwork Mon Nov 23 03:07:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1404613 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CfXCY0Nxmz9sSf for ; Mon, 23 Nov 2020 14:08:09 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=C83DmXUA; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4CfXCX54QGzDqDJ for ; Mon, 23 Nov 2020 14:08:08 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4CfXCQ68gJzDq9k for ; Mon, 23 Nov 2020 14:08:02 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=C83DmXUA; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4CfXCN6LGSz9s0b; Mon, 23 Nov 2020 14:08:00 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1606100881; bh=QXVxeX9xj5XetgnhqU20DhZhi3PeRnlWCT2ZEfic8e0=; h=From:To:Cc:Subject:Date:From; b=C83DmXUAqlpaP2x85i5nPZvTJpDpR41glVmP/E3knqHD/uyqQddVsruW8KUlxyN5m O7ZueU0MVG3IYzCZbItG346Q33cWqzug+nWsd4kDR+kYDv7tLSr85EB5RgRgNy7Fm+ EorNG2ugneYiH2X+v0uLUFM1+g9z6pD86vIMTWnPJvHM+L/m7WOHaAybmnvnV7Uba+ p3scSQ7x4YqQybX6wh1/65D+kQEZGgoPWHEEkvVly3ydHo9hM3oe3EEZPg8cPGXff/ H8QqaaTxEqgRIhLauL19vt/wfRISlltBaLPpHmT30ZLvPPpUkBUZJwyO7H901RmTMS 0Rx6zIKW/V6wg== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Mon, 23 Nov 2020 14:07:53 +1100 Message-Id: <20201123030753.25810-1-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Subject: [Pdbg] [PATCH] main: Improve help message for command-line options X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs --- src/main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index 0ed6b92..1ecf3da 100644 --- a/src/main.c +++ b/src/main.c @@ -131,24 +131,25 @@ static void print_usage(void) printf("\t-t, --thread=<0-%d>||\n", MAX_THREADS-1); #ifdef TARGET_PPC printf("\t-l, --cpu=<0-%d>||\n", MAX_PROCESSORS-1); + printf("\t\tRequires device (-d) to be set to p8|p9\n"); #endif printf("\t-P, --path=\n"); printf("\t-a, --all\n"); printf("\t\tRun command on all possible processors/chips/threads (default)\n"); - printf("\t-b, --backend=backend\n"); + printf("\t-b, --backend=\n"); printf("\t\tcronus:\tA backend based on cronus server\n"); - printf("\t\tsbefifo:\tA backend using sbefifo kernel driver\n"); + printf("\t\tsbefifo: A backend using sbefifo kernel driver\n"); printf("\t\tfsi:\tAn experimental backend that uses\n"); printf("\t\t\tbit-banging to access the host processor\n"); printf("\t\t\tvia the FSI bus.\n"); printf("\t\ti2c:\tThe P8 only backend which goes via I2C.\n"); printf("\t\thost:\tUse the debugfs xscom nodes.\n"); printf("\t\tkernel:\tThe default backend which goes the kernel FSI driver.\n"); - printf("\t-d, --device=backend device\n"); + printf("\t-d, --device=\n"); printf("\t\tFor I2C the device node used by the backend to access the bus.\n"); printf("\t\tFor FSI the system board type, one of p8 or p9w\n"); printf("\t\tDefaults to /dev/i2c4 for I2C\n"); - printf("\t-s, --slave-address=backend device address\n"); + printf("\t-s, --slave-address=\n"); printf("\t\tDevice slave address to use for the backend. Not used by FSI\n"); printf("\t\tand defaults to 0x50 for I2C\n"); printf("\t-D, --debug=\n");