From patchwork Thu May 14 06:26:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1289930 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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49N1ly0D6kz9sPF for ; Thu, 14 May 2020 16:26:54 +1000 (AEST) 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=UPArrXyP; 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 49N1lw5PNszDqTd for ; Thu, 14 May 2020 16:26:52 +1000 (AEST) 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)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 49N1lq4WFdzDqSC for ; Thu, 14 May 2020 16:26:47 +1000 (AEST) 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=UPArrXyP; 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 49N1lq1QnBz9sPF; Thu, 14 May 2020 16:26:47 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1589437607; bh=FHBG69z/T9wuRdadOUBjMiqc359K4K8UsekejLAAsd0=; h=From:To:Cc:Subject:Date:From; b=UPArrXyPiW5dRGAT83oEoUW8QLkBsnM+VBZYgKqRHufVZICnNqyd+MOjx7kICnuY5 gV8lwL8560cN1P5gWOhF+gPznvd0NQ8XOmE3Prfy+tafvAXPjfmljuFH8GA5UjFrVj hDfi05ZHlvdQeKeDa1gNtcKMre/5so3qhKPBR0Wr2uybV13T1fkhujK2t8w6eFIOcj 20VSnvabN60gfBgqBv5E0PY84ZSpEa8QXtfvoUel3jzy32mT/d2Tai9kOlS90PrG7m 1rHvjEs39SkPkPBg/CO/ZSkB6E3ek9NjuEYQJKkVZjMqZTFSnu/p3l26MBIQLpW6Ix WBXriX+EUIKng== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 14 May 2020 16:26:38 +1000 Message-Id: <20200514062640.277933-1-amitay@ozlabs.org> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Subject: [Pdbg] [PATCH 0/2] Add api for traversing over all targets 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" V2 changes: - Rename pdbg_traverse() to pdbg_target_traverse() Amitay Isaacs (2): libpdbg: Add api for iterating over all targets tests: Add traverse tests Makefile.am | 9 +- libpdbg/libpdbg.c | 30 ++++++ libpdbg/libpdbg.h | 24 +++++ src/tests/libpdbg_traverse_test.c | 50 ++++++++++ tests/test_traverse.sh | 151 ++++++++++++++++++++++++++++++ 5 files changed, 263 insertions(+), 1 deletion(-) create mode 100644 src/tests/libpdbg_traverse_test.c create mode 100755 tests/test_traverse.sh