From patchwork Wed Apr 1 16:15:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 6141251 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7A69FBF4A7 for ; Wed, 1 Apr 2015 16:12:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B1F8F20351 for ; Wed, 1 Apr 2015 16:12:46 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id C856F20148 for ; Wed, 1 Apr 2015 16:12:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B18846E8CC; Wed, 1 Apr 2015 09:12:44 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by gabe.freedesktop.org (Postfix) with ESMTP id B81376E8CE for ; Wed, 1 Apr 2015 09:12:43 -0700 (PDT) Received: by wgra20 with SMTP id a20so58747729wgr.3 for ; Wed, 01 Apr 2015 09:12:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sKOqdl9RITla8FrjMiJbEUYygLg8b2o7iBOnZOeHdKI=; b=BFl1DKS7j39i0kR3/7ZSJt7KvMZXvBxIxZAesQAqkhAVmiQIjkfc6rN/gH1YZ9cYmQ 3su414Us/hmO1U/MKPQtLM9RR4ywEyoo+jDaBzsmwFsyCcMWZMTdMEmvvTDOWNBuKX9d yphJG4j0mPuMpB4R7d0CAOD77yRZpuo+5P2KzIKQfX8d5gN3BccOf3ZyB8++wFrNMnKm hs+6NIAZZT7gM7kfE1rSCtczXlcCa029qD1tATvGx4Q93HdxjAy5XojBU3K1vAT6838z fQEfRcjptRjQBxY85uyFD0JmL2qoQ5tHCYDwTZl6njYG29mOSTpDYigWSBWwC93Xy8HL QW4A== X-Received: by 10.180.160.226 with SMTP id xn2mr16543824wib.43.1427904763113; Wed, 01 Apr 2015 09:12:43 -0700 (PDT) Received: from arch-x220.localdomain (cpc12-croy20-2-0-cust52.croy.cable.virginm.net. [82.44.54.53]) by mx.google.com with ESMTPSA id ge8sm3319498wjc.32.2015.04.01.09.12.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Apr 2015 09:12:42 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 14/24] intel: add symbols test Date: Wed, 1 Apr 2015 17:15:25 +0100 Message-Id: <1427904935-14387-15-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.3.1 In-Reply-To: <1427904935-14387-1-git-send-email-emil.l.velikov@gmail.com> References: <1427904935-14387-1-git-send-email-emil.l.velikov@gmail.com> Cc: emil.l.velikov@gmail.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Emil Velikov --- intel/Makefile.am | 6 ++-- intel/intel-symbol-check | 88 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+), 2 deletions(-) create mode 100755 intel/intel-symbol-check diff --git a/intel/Makefile.am b/intel/Makefile.am index 22a45f0..09bfbae 100644 --- a/intel/Makefile.am +++ b/intel/Makefile.am @@ -60,7 +60,8 @@ BATCHES = \ tests/gen7-3d.batch TESTS = \ - $(BATCHES:.batch=.batch.sh) + $(BATCHES:.batch=.batch.sh) \ + intel-symbol-check EXTRA_DIST = \ $(BATCHES) \ @@ -68,7 +69,8 @@ EXTRA_DIST = \ $(BATCHES:.batch=.batch-ref.txt) \ $(BATCHES:.batch=.batch-ref.txt) \ tests/test-batch.sh \ - Android.mk + Android.mk \ + $(TESTS) test_decode_LDADD = libdrm_intel.la ../libdrm.la diff --git a/intel/intel-symbol-check b/intel/intel-symbol-check new file mode 100755 index 0000000..c555e6d --- /dev/null +++ b/intel/intel-symbol-check @@ -0,0 +1,88 @@ +#!/bin/bash + +# The following symbols (past the first five) are taken from the public headers. +# A list of the latter should be available Makefile.sources/LIBDRM_INTEL_H_FILES + +FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_intel.so} | awk '{print $3}' | while read func; do +( grep -q "^$func$" || echo $func ) <