From patchwork Fri May 25 04:52:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 920231 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40sYlp0D91z9s19 for ; Fri, 25 May 2018 14:52:54 +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="y0KH2Rz8"; 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 40sYln4xZfzF1fp for ; Fri, 25 May 2018 14:52:53 +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="y0KH2Rz8"; 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 40sYlk01rZzF1fP for ; Fri, 25 May 2018 14:52:50 +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="y0KH2Rz8"; 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 40sYlj5Svfz9s15; Fri, 25 May 2018 14:52:49 +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=1527223969; bh=S4nw1HNZ+3PiWIxpd287g1+uOOJo/wdYzPJGj2gVa+E=; h=From:To:Cc:Subject:Date:From; b=y0KH2Rz8/8znRTly5J5QDCO65VKqq7iGN3FjqmxftgMVHxv5M4exl6WMTEkw0Hoq6 whfSAsmfrtIOxICSx++4t3gZG1fk3jRl3Rhon4pWJpZX7Cly0PGHqFFx4VPa9X5MZ2 4nIXDPr5bS7NxUoZLTEf4gLPKRX5JVFkcBGcPQKIwiBs0PtXFMC5dYh7TOu9igh5k+ RLXn3x0B7TaJXAMt6lmr41jTfav1F+7JjK0rPVVpDRwgfj3uzmND0fcVmqlCIupwAx zsmqNDlhsxb4ozXd1vWDNPEd0hjopj9sCWk8+KuPvnQYKlbTEzqmFUE0/toSB7V0us snXdhZ5eyGyjw== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Fri, 25 May 2018 14:52:34 +1000 Message-Id: <20180525045240.24196-1-amitay@ozlabs.org> X-Mailer: git-send-email 2.17.0 Subject: [Pdbg] [PATCH 0/6] Overhaul target selection 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" Re-implement parse_list() to return flags rather than indices. This avoids potential overflows and the need to do any sorting and unique ids identification. For testing add core and thread targets in the fake backend and also in the fake device tree. This should help to test by hand till I figure out how to add tests. Also, fix dtc warnings missed by not cleaning p9-fsi.dtsi. Thanks Joel. Amitay Isaacs (6): main: Overhaul target selection main: Print specific errors for invalid arguments main: Print specific errors for invalid commands fake.dts: Add more targets for testing fake: Add fake targets for testing dts: Fix more warnings from dtc fake.dts.m4 | 121 ++++++++++++++++++++++++++++----- libpdbg/fake.c | 18 +++++ p8-fsi.dts.m4 | 4 +- p8-i2c.dts.m4 | 2 + p9-fsi.dtsi.m4 | 6 ++ src/main.c | 179 ++++++++++++++++++++++++++++++++++++------------- 6 files changed, 266 insertions(+), 64 deletions(-)