From patchwork Thu May 26 15:20:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 68707 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp462400qge; Thu, 26 May 2016 08:22:22 -0700 (PDT) X-Received: by 10.237.51.196 with SMTP id v62mr9629786qtd.101.1464276142678; Thu, 26 May 2016 08:22:22 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id v43si4214469qge.63.2016.05.26.08.22.22; Thu, 26 May 2016 08:22:22 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 5D316617DD; Thu, 26 May 2016 15:22:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id C0C1961610; Thu, 26 May 2016 15:21:01 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 659E361563; Thu, 26 May 2016 15:20:55 +0000 (UTC) Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) by lists.linaro.org (Postfix) with ESMTPS id 4C97C61563 for ; Thu, 26 May 2016 15:20:10 +0000 (UTC) Received: by mail-oi0-f45.google.com with SMTP id w184so122507555oiw.2 for ; Thu, 26 May 2016 08:20:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ohTWPe7G4064x3v97BsSl2EfE9ChLJM2WkWk/PrSXwY=; b=RucLnwb9MKIdr+OcBxCyo+DvnJM3Z9XM+O80PSIL96Loh+4hCVSYEXfGtYF2//qSkE 8+5Odcu6ePErgsZohy33nTSEK4e1u0goC1+CCmqOrS33bMpJHJlD1upSJ/EY2LeOu3mU QrtqtQCWa+L4u9QJtuncjUS26ouV2csIxK3UNKcIWflQ5LmtdfyWrLfFt3UCBRwkwyd1 8D4a52iqmUblkgPoC89pVt82oeAt471pczCLhMc2pOPJqR9q/IXzZFjKuhAwH6ww2Vqj vpHM6cm8J7hiGIQyrootNzeZ3ahmhxzRdIrem1S9Vj9MbN7rFAYd5ckthoOUABg0PLM0 g1dg== X-Gm-Message-State: ALyK8tI5Nxd60Sj/CWebwPBi4WW092jXo2JOWDYSZR26XG3wj0dRQUegzAd5XOaa6EnWyRwy6YI= X-Received: by 10.202.228.78 with SMTP id b75mr5892718oih.46.1464276009770; Thu, 26 May 2016 08:20:09 -0700 (PDT) Received: from localhost.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id 59sm6693013otl.30.2016.05.26.08.20.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 May 2016 08:20:07 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 26 May 2016 10:20:05 -0500 Message-Id: <1464276005-24411-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.7.4 X-Topics: patch Subject: [lng-odp] [PATCH] linux-generic: tm: parameterize use of secondary_hash_dump() routine X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Resolve Bug https://bugs.linaro.org/show_bug.cgi?id=2177 by making use of secondary_hash_dump() debug routine parameterized. Signed-off-by: Bill Fischofer --- platform/linux-generic/odp_name_table.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/linux-generic/odp_name_table.c b/platform/linux-generic/odp_name_table.c index 801c456..14525d1 100644 --- a/platform/linux-generic/odp_name_table.c +++ b/platform/linux-generic/odp_name_table.c @@ -47,6 +47,7 @@ #define NUM_NAME_TBLS 16 #define SECONDARY_HASH_HISTO_PRINT 1 +#define SECONDARY_HASH_DUMP 0 typedef struct name_tbl_entry_s name_tbl_entry_t; @@ -203,7 +204,6 @@ static void check_secondary_hash(secondary_hash_tbl_t *secondary_hash_tbl) } } -#ifdef NOT_USED /* @todo */ static void secondary_hash_dump(secondary_hash_tbl_t *secondary_hash_tbl) { name_tbl_entry_t *name_tbl_entry; @@ -235,7 +235,6 @@ static void secondary_hash_dump(secondary_hash_tbl_t *secondary_hash_tbl) ODP_DBG("%s count=%u\n", __func__, count); } -#endif static uint32_t name_tbl_free_list_add(name_tbl_t *name_tbl, uint32_t num_to_add) @@ -486,7 +485,8 @@ static hash_tbl_entry_t secondary_hash_add(name_tbl_entry_t *name_tbl_entry, name_tbl_entry = next_entry; } - /* secondary_hash_dump(secondary_hash); */ + if (SECONDARY_HASH_DUMP) + secondary_hash_dump(secondary_hash); return (hash_tbl_entry_t)(uintptr_t)secondary_hash; }