From patchwork Tue Feb 3 04:44:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 44187 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3BD632034D for ; Tue, 3 Feb 2015 04:45:41 +0000 (UTC) Received: by mail-wi0-f197.google.com with SMTP id n3sf23711733wiv.0 for ; Mon, 02 Feb 2015 20:45:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=eOM0h23iZUTsXsZ96hUzC81vp1i6ia79KZwbk+ALa1M=; b=KKthvhRFYaR89rI4n3FVhSNfnHx3UeJx2I0nihztyFjSFOu+lJHapPFSjiuqHFIPDt QirjwlAXWUad7cKr0HJQB01g1e69mc7jhtvvG+b74YtfR/rjdz5TshfUkiHgOG5696+o PCSja4Bmv3HPNSMR133dIiPX7Gq29ONYT5yQbeOmmObiwVA+MvF0t+CFYlND/ArRJosL t/zQepq8pnAFN2nNkniyNO8p+r1l64p597OxuMBD0GRGgZ1OQqiOcVHgTFDEErmuww68 4cLlggRajh74nzXgrVo92j4h7GV1YoSBQsNK/WnLcBJlOFE4UNRWBYkXCcWvMlB+Uktd nJ+g== X-Gm-Message-State: ALoCoQkKAkDDXDtXiK1O/zXeVHqwqnEb/Ev3c2f62N90L/Ok1vD6dZmVLLpagxarnu9u5qCScelY X-Received: by 10.152.121.65 with SMTP id li1mr2801112lab.0.1422938740491; Mon, 02 Feb 2015 20:45:40 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.71 with SMTP id k7ls714607laf.9.gmail; Mon, 02 Feb 2015 20:45:40 -0800 (PST) X-Received: by 10.152.116.43 with SMTP id jt11mr22831236lab.69.1422938740219; Mon, 02 Feb 2015 20:45:40 -0800 (PST) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id y4si18369111lag.90.2015.02.02.20.45.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Feb 2015 20:45:39 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by mail-la0-f46.google.com with SMTP id s18so48050435lam.5 for ; Mon, 02 Feb 2015 20:45:39 -0800 (PST) X-Received: by 10.112.176.236 with SMTP id cl12mr3460547lbc.3.1422938739789; Mon, 02 Feb 2015 20:45:39 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp1712267lbj; Mon, 2 Feb 2015 20:45:39 -0800 (PST) X-Received: by 10.229.248.138 with SMTP id mg10mr5723019qcb.29.1422938738639; Mon, 02 Feb 2015 20:45:38 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id 73si3671635qga.22.2015.02.02.20.45.37 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 02 Feb 2015 20:45:38 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YIVMl-00061P-Ok; Tue, 03 Feb 2015 04:45:35 +0000 Received: from mail-ob0-f176.google.com ([209.85.214.176]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YIVMW-0005zL-2c for lng-odp@lists.linaro.org; Tue, 03 Feb 2015 04:45:20 +0000 Received: by mail-ob0-f176.google.com with SMTP id wo20so11750415obc.7 for ; Mon, 02 Feb 2015 20:45:14 -0800 (PST) X-Received: by 10.182.98.164 with SMTP id ej4mr14439282obb.0.1422938714809; Mon, 02 Feb 2015 20:45:14 -0800 (PST) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id vs5sm10277537oeb.14.2015.02.02.20.45.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Feb 2015 20:45:13 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Mon, 2 Feb 2015 22:44:44 -0600 Message-Id: <1422938699-12877-5-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1422938699-12877-1-git-send-email-bill.fischofer@linaro.org> References: <1422938699-12877-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv5 04/19] api: events: add strong typing handle display function X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bill.fischofer@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Add function odp_event_to_u64() Signed-off-by: Bill Fischofer --- include/odp/api/event.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/odp/api/event.h b/include/odp/api/event.h index 50c031a..0fdff29 100644 --- a/include/odp/api/event.h +++ b/include/odp/api/event.h @@ -69,6 +69,18 @@ extern "C" { */ int odp_event_type(odp_event_t event); +/** + * Get printable value for an odp_event_t + * + * @param hdl odp_event_t handle to be printed + * @return uint64_t value that can be used to print/display this + * handle + * + * @note This routine is intended to be used for diagnostic purposes + * to enable applications to generate a printable value that represents + * an odp_event_t handle. + */ +uint64_t odp_event_to_u64(odp_event_t hdl); /** * @}