From patchwork Fri Jun 1 06:30:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 923774 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 40xvdn3hXzz9s08 for ; Fri, 1 Jun 2018 16:32:45 +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="EiAvhgUU"; 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 40xvdn2HGKzDrph for ; Fri, 1 Jun 2018 16:32:45 +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="EiAvhgUU"; dkim-atps=neutral X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40xvc16slvzF0Vt for ; Fri, 1 Jun 2018 16:31:13 +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="EiAvhgUU"; 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 40xvc01pb9z9rvt; Fri, 1 Jun 2018 16:31:12 +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=1527834672; bh=LHUY9YEShhj6BpUUuQhluS3hnfqY4xcLgwfgxS3yYXg=; h=From:To:Cc:Subject:Date:From; b=EiAvhgUUYufCdNSN951AWps5KGf08WSyuo1/C+7dB4XWp1sbA+m0KV/SNTCZItBgU 6o2xYACy0YjCOkE+pWqMDV2TPjjA2yDaRDvwRqoe0vs9fFPs5Y/hMygCPwYLdHfNgW nAErujgWWuMvcy781YzV23UA4/c4Q6zta7XWp+VXxd6n85hk4xCKLfjvk7/E8/VHN8 oq3bjWUKcBrBLcb1WEiTfZHItPZgwk/6f5pIi2Rqj/s88P2kysAx0TgWoNZiyx7sk0 shy9dmQzK2h/a8NgIBZIT6xGY7/UbHoScAFb3vW4wI+m62xaXZYCxNHCx0EH+/kIbj xUxTIXXqgsOfQ== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Fri, 1 Jun 2018 16:30:43 +1000 Message-Id: <20180601063050.19286-1-amitay@ozlabs.org> X-Mailer: git-send-email 2.17.0 Subject: [Pdbg] [PATCH v2 0/7] 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. Fix dtc warnings missed by not cleaning p9-fsi.dtsi. Thanks Joel. Add missing dependency for p9-fsi.dtsi. Fix bug in option parsing found by Rashmica. Amitay Isaacs (7): 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 Makefile: Add dependencies for p9-fsi.dtsi Makefile.am | 1 + 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 ++++++++++++++++++++++++++++++++++++------------- 7 files changed, 267 insertions(+), 64 deletions(-)