From patchwork Thu May 24 05:50:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 919595 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.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40rz506Jwjz9s1w for ; Thu, 24 May 2018 15:50:44 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (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.b="JczF/CAa"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40rz503ZrXzF1Hf for ; Thu, 24 May 2018 15:50:44 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.b="JczF/CAa"; dkim-atps=neutral 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.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40rz4j333wzF1Cr for ; Thu, 24 May 2018 15:50:29 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (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.b="JczF/CAa"; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 40rz4h63NWz9s16; Thu, 24 May 2018 15:50:28 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1527141028; bh=rWTXHgDe5oclK1SwJyhBtvkQ7AhSnPf1+SSwm3GY8sc=; h=From:To:Cc:Subject:Date:From; b=JczF/CAahfhWEImurDYCR/0veuP/CEVVpgpTm2Gfp4s122gpfyiWGyt3XVNa5BDyN 27iOH7dweDVR4CwAEYb1bDFjzbTdbsjvpqUkAc2FY/g4MrQeeWC0EnS9i9M0FWSOPU 6tI+ffMqXA+E5E3NZGRhT/zcNhcNGXcaXeW9Mdst63Y6oxdRrSWwDDmlqK+unA/sV7 Ew8l8908z68BABtLZnmhQw0G+Zv7v+/ZZDmcCh/RTU7e6XVvqESeFOPPhgwts8FCV3 hmMR7xB3AwJrj/4zwweVEhxNvgk2hxq/pTnpr2/Ui43hJp3dRTsTcpiEtDuzPL8f1T Vr5ozf5aaWfpA== From: Amitay Isaacs To: "pdbg@lists.ozlabs.org"@lists.ozlabs.org Date: Thu, 24 May 2018 15:50:06 +1000 Message-Id: <20180524055017.8801-1-amitay@ozlabs.org> X-Mailer: git-send-email 2.17.0 Subject: [Pdbg] [PATCH v3 00/11] Some more cleanups X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.26 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 MIME-Version: 1.0 Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Try to contain the use of libpdbg internal api. Avoid including libpdbg internal headers (assuming everything other than libpdbg.h is internal). Hopefully we can expose all the public api only via libpdbg.h. Fix up device trees, so there are no warnings from dtc. Improve target selection by allowing numbers, lists and ranges. The options -p/-c/-t work in conjunction with -a for selecting "all" targets. Now you can do "-a -c 1,2 -t 0-3". Amitay Isaacs (11): main: Include string.h for memset main: Use pdbg logging api in pdbg main: Do not include libpdbg internal headers dt: Add missing #address-cells, #size-cells and reg properties Makefile: Don't suppress warnings from DTC main: Fix usage for expert option libpdbg/device: Add new targets in the order of traversal main: Return false on failure main: Overhaul target selection main: Print specific errors for invalid arguments main: Print specific errors for invalid commands Makefile.am | 4 +- libpdbg/device.c | 2 +- p8-fsi.dts.m4 | 2 + p8-host.dts.m4 | 2 + p8-i2c.dts.m4 | 2 + p9-host.dts.m4 | 6 ++ p9-kernel.dts.m4 | 6 ++ p9-pib.dts.m4 | 4 +- src/cfam.c | 2 - src/htm.c | 8 +- src/htm.h | 2 - src/main.c | 201 +++++++++++++++++++++++++++++++++++------------ src/main.h | 4 +- src/mem.c | 7 +- src/reg.c | 3 +- src/scom.c | 2 +- src/scom.h | 2 - src/thread.c | 5 +- src/thread.h | 2 - 19 files changed, 190 insertions(+), 76 deletions(-)