From patchwork Tue Oct 23 06:16:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 10652735 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0E0EE14BD for ; Tue, 23 Oct 2018 06:17:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCD0F292E5 for ; Tue, 23 Oct 2018 06:17:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE44B29307; Tue, 23 Oct 2018 06:17:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 78603292E5 for ; Tue, 23 Oct 2018 06:17:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727512AbeJWOjM (ORCPT ); Tue, 23 Oct 2018 10:39:12 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:36041 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727367AbeJWOjM (ORCPT ); Tue, 23 Oct 2018 10:39:12 -0400 Received: by mail-pf1-f195.google.com with SMTP id l81-v6so160318pfg.3 for ; Mon, 22 Oct 2018 23:17:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7cJ6FpAGdn+CQDG474XshJ1QBx0qkrYgVpFl3C9GuNY=; b=LG6OKXlJjMNgNe9bPK9INGduEqNgObI1qBQfisGhrRzS12aPTPaTITZqZlRKlz1R04 ZR9zmFhB1pL4n17Z/4P13agS31M8QMOGIgZW2c9l7TvV6X2BdY7/Fc/7N8DYwvAVngUG H/hqGzShKkUNuylvT2AbBUkk/wdL71vhE9HC117y9UVk81GBO0acYQNBdsew7JtBWgiR 2szX3AWhcvWMpgKJ6WJmnuuLqpGMgncDJ+kgrcLFE3i9DIZxSDGiIYVQFsUS2pRL9Y9G B0b3FnOSOpijn4LBFV4OQgD29tshVivYC7JQrUElqEG2vmppJCEIay9/zs/SK7b2pLfw LpDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=7cJ6FpAGdn+CQDG474XshJ1QBx0qkrYgVpFl3C9GuNY=; b=BhRabl96Bho1rbNGzuT2ZPIVN/7YlbhqwHYphSFURQcJqKQ/5uko5EeVU7IuWvN9c2 YpatZfhLr4dUw62Z/1bNzX8ip+O2SsRxgTUsHE6Dd5G0FjNlC5e6Kjxjxc0m72lbNk6V zwq3ICILEeYQ+Glm5W9UnOZFHpC2BHqLo+BqcsET+EBknbY79gpTR7Kbn/GtmgrORt9a RWY28wxVv4HuVgMrcPHeXMdfga5/hvlz7E6O1S6Ny8cjYW6v9+G4N6IaGoih/r8u3sz3 tijX2WKL1c4nhuf0Fj3LKyIjHKPl1WgZs8Fqfw51TevRSwR3RYihah7vG5aLynepkVxu kzzw== X-Gm-Message-State: ABuFfojU3IwWmgWFgG/ozRM08CHPMrIjkkOgEHaxIzuk8O2V2V3FSs4k DkSnPc6+m5E0fQKf8Im9mF8= X-Google-Smtp-Source: ACcGV62yDaP6QKxGQqi6MQKyfRpaLFVOdtkTsVcbm8OA59gM32qGfgVyPgleXsV71E+wq56VYJyFPg== X-Received: by 2002:a62:475c:: with SMTP id u89-v6mr1272372pfa.225.1540275435664; Mon, 22 Oct 2018 23:17:15 -0700 (PDT) Received: from aurora.jms.id.au ([45.124.203.19]) by smtp.gmail.com with ESMTPSA id h14-v6sm486403pfn.80.2018.10.22.23.17.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Oct 2018 23:17:15 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Tue, 23 Oct 2018 16:47:09 +1030 From: Joel Stanley To: linuxppc-dev@lists.ozlabs.org Cc: linux-kselftest@vger.kernel.org Subject: [PATCH 1/6] selftests: powerpc/ptrace: Make tests build Date: Tue, 23 Oct 2018 16:46:52 +1030 Message-Id: <20181023061657.18007-2-joel@jms.id.au> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181023061657.18007-1-joel@jms.id.au> References: <20181023061657.18007-1-joel@jms.id.au> MIME-Version: 1.0 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP According to lib.mk, TEST_PROGS is for shell scripts. It appears we need to define the programs as TEST_GEN_PROGS to ensure they are built. Signed-off-by: Joel Stanley --- tools/testing/selftests/powerpc/ptrace/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/powerpc/ptrace/Makefile b/tools/testing/selftests/powerpc/ptrace/Makefile index 6ac71b629276..e9a3850aae86 100644 --- a/tools/testing/selftests/powerpc/ptrace/Makefile +++ b/tools/testing/selftests/powerpc/ptrace/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -TEST_PROGS := ptrace-gpr ptrace-tm-gpr ptrace-tm-spd-gpr \ +TEST_GEN_PROGS := ptrace-gpr ptrace-tm-gpr ptrace-tm-spd-gpr \ ptrace-tar ptrace-tm-tar ptrace-tm-spd-tar ptrace-vsx ptrace-tm-vsx \ ptrace-tm-spd-vsx ptrace-tm-spr ptrace-hwbreak ptrace-pkey core-pkey \ perf-hwbreak ptrace-syscall @@ -12,7 +12,7 @@ CFLAGS += -m64 -I../../../../../usr/include -I../tm -mhtm -fno-pie ptrace-pkey core-pkey: child.h ptrace-pkey core-pkey: LDLIBS += -pthread -$(TEST_PROGS): ../harness.c ../utils.c ../lib/reg.S ptrace.h +$(TEST_GEN_PROGS): ../harness.c ../utils.c ../lib/reg.S ptrace.h clean: - rm -f $(TEST_PROGS) *.o + rm -f $(TEST_GEN_PROGS) *.o From patchwork Tue Oct 23 06:16:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 10652737 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9293D13BF for ; Tue, 23 Oct 2018 06:17:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6BF29292E5 for ; Tue, 23 Oct 2018 06:17:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F94929307; Tue, 23 Oct 2018 06:17:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F07E4292E5 for ; Tue, 23 Oct 2018 06:17:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727497AbeJWOjS (ORCPT ); Tue, 23 Oct 2018 10:39:18 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:39232 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727367AbeJWOjS (ORCPT ); Tue, 23 Oct 2018 10:39:18 -0400 Received: by mail-pl1-f196.google.com with SMTP id e67-v6so140860plb.6 for ; Mon, 22 Oct 2018 23:17:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DchC4fzBfq664Zcwfp3UWlikdpNlcOrti+O6REmBdMI=; b=r50EyNIy/awkLfHZchBfsvGN4xZ5pdJPs5f0eJ+iWttXf1pUs/lM90BtuJ+g/2qbQ+ cpu7RI0l+ZhBL1fFG5RYzuLOexPRxSwEAmur+lUVd6R5YTHxqlRQizhzpf/Ni9CWi4vn yGZcsUt2K2la2Ln9kYW6y7J5dkvyO+jpxoXKoENQKWQ0xjswlTvoSi4xcCpiQlml6Ogl zlG6WQ7NnY+5oW69u7lZPl0kQJC0byPZF3p7Ri5U/tKZlXMTiob4zme4AU/NuWzc14Jm zjZ2Dr4NjRQEPNv12gb18+oZ06IAe5QDYqwN3MdiusuOSABrvWEvjJrHYAT6x7HmkvOg 2Gpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=DchC4fzBfq664Zcwfp3UWlikdpNlcOrti+O6REmBdMI=; b=KHYlaXWD3r9bzGybC3yQ4PWRQWTxxX0+Q2QoanmdlOXVInoP1GWI308ryeItM61x+x p+EYzXd7+hHS+RCCLZ63sARegvf/LfRxkBONfseFgN30gk9CLsRIYXMLB4EVK9pb9Znk C/rXaCRlmeK9o9olijUbSnk6GWFHtRr2Lu+bCGf7cqv6fxxWSKSzVlpxUjMQ2TcP3kn5 Jp3lTW6pNDbaubiNXkfrVbpR86UmDxHxZaLZYU1JX9KcgotmZfoi4NVh8wU9c7l5eofa Q0E48rNXKPEqSc3Dk6th9vq+kh0ct5TwS9CL8rn0RYRA2QHQ/bVLt95IFYOK7LR5u8ba xINQ== X-Gm-Message-State: ABuFfoibnuIZF+fAgxJfAx1LtSh/mE7IWmO0Szx0ZiadUe8qkhUu1Q0d Gdvbcqh56NHZsL+SsUoSx4J7C6a9 X-Google-Smtp-Source: ACcGV60QHlE2W/zsCX0KOG7i1bTpxwmed8pKIQekbgnSaUzy3HUvlxUSrpCfoZeTbXOiDpIwaMOeTQ== X-Received: by 2002:a17:902:167:: with SMTP id 94-v6mr46149033plb.142.1540275441916; Mon, 22 Oct 2018 23:17:21 -0700 (PDT) Received: from aurora.jms.id.au ([45.124.203.19]) by smtp.gmail.com with ESMTPSA id m18-v6sm544611pfk.149.2018.10.22.23.17.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Oct 2018 23:17:21 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Tue, 23 Oct 2018 16:47:16 +1030 From: Joel Stanley To: linuxppc-dev@lists.ozlabs.org Cc: linux-kselftest@vger.kernel.org Subject: [PATCH 2/6] selftests: powerpc/ptrace: Remove clean rule Date: Tue, 23 Oct 2018 16:46:53 +1030 Message-Id: <20181023061657.18007-3-joel@jms.id.au> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181023061657.18007-1-joel@jms.id.au> References: <20181023061657.18007-1-joel@jms.id.au> MIME-Version: 1.0 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When running 'make ptrace': make[1]: Entering directory 'tools/testing/selftests/powerpc/ptrace' Makefile:18: warning: overriding recipe for target 'clean' ../../lib.mk:137: warning: ignoring old recipe for target 'clean' The rule is unnecessary as TEST_GEN_FILES are cleaned up by the rule in lib.mk. Signed-off-by: Joel Stanley --- tools/testing/selftests/powerpc/ptrace/Makefile | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/testing/selftests/powerpc/ptrace/Makefile b/tools/testing/selftests/powerpc/ptrace/Makefile index e9a3850aae86..58de6d4a0cf4 100644 --- a/tools/testing/selftests/powerpc/ptrace/Makefile +++ b/tools/testing/selftests/powerpc/ptrace/Makefile @@ -13,6 +13,3 @@ ptrace-pkey core-pkey: child.h ptrace-pkey core-pkey: LDLIBS += -pthread $(TEST_GEN_PROGS): ../harness.c ../utils.c ../lib/reg.S ptrace.h - -clean: - rm -f $(TEST_GEN_PROGS) *.o From patchwork Tue Oct 23 06:16:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 10652739 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AC57613BF for ; Tue, 23 Oct 2018 06:17:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8787F292E5 for ; Tue, 23 Oct 2018 06:17:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C09C29307; Tue, 23 Oct 2018 06:17:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B427292E5 for ; Tue, 23 Oct 2018 06:17:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727512AbeJWOjY (ORCPT ); Tue, 23 Oct 2018 10:39:24 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:41460 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727367AbeJWOjY (ORCPT ); Tue, 23 Oct 2018 10:39:24 -0400 Received: by mail-pg1-f196.google.com with SMTP id 23-v6so140537pgc.8 for ; Mon, 22 Oct 2018 23:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zh5a0oXfAbjeEOgFxGihzvB+6U1+ro2b74+S+sXuMNA=; b=nU06CDGd2YGQj8WTj6v61F6jiqwWWp9IwJGQGBmI+okH/f00JTe3IN0P4W8cf8d3cI H6nLPevdDTCX9XPusSQekvDJuPOJvQFSMdpJNRi4Jj755FwqBuEH0RYZrqIDqHQBRvy5 /A8GrYsiB8SdEfyEzbCc7/h7bSgyf5mM3NITXW2rZT8RAv38W+4jsN8qdmq6rCBO3HJh fd369hzm/qD0y0/YZk/GrAFF233fFGfF+ZLEwEIt20XUa2r6SJQzcDShdL56y7GKcGmF zdtMNTrtXp5x1KMYdz9VpCsP6b9lvgUdED6bVEkBf4Ji2bWrIVJn9R2q0BwStUSQVEN1 pOgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=zh5a0oXfAbjeEOgFxGihzvB+6U1+ro2b74+S+sXuMNA=; b=HgPEVAmdzZRDLruQvo6KMQEUmctDqH49TswAVj4l/5BRh2F0cpAYuKFh3Fhk28hzLG s4AJK94NDjsiGXqRhHsCtXWKZuLgXGjIQqWHbrnAYgRXDvENp5wpD4GVsmYZyNIJ9fpq HiLhHD2XJkCx6kqVgdlVPFteX6OsKZkOg/MnpMZcKSOBb0xUnvfapShCe7bnuu5s9S0W /l6fbjm08RjBNAUd2CwmVCFH1K1uXtJkAu2jdGp0ZwhGOfH0dDXfpQOtZiIBQSlwoYCJ XdfvI5cxtgBIh6lHwPdPHgb8xKVyoqt1Ohh7kSyO9S+LXzlriPliIG6uSx4Gv/uV8CV6 9QUQ== X-Gm-Message-State: ABuFfogtJc23MYLBXYRJrR7hVoN694EauF+T2GF8gHhlSLLb0bu/Dob3 zdwopb7+A3rzasD7NQAuhFc= X-Google-Smtp-Source: ACcGV62TgPSlJB5jt/fewdp9Eo5NI1MfnAG9NIKMiKYAeyFKODwky7oS6klNT3Enhp9pQtikNoV5sA== X-Received: by 2002:a63:aa48:: with SMTP id x8-v6mr44674758pgo.87.1540275448069; Mon, 22 Oct 2018 23:17:28 -0700 (PDT) Received: from aurora.jms.id.au ([45.124.203.19]) by smtp.gmail.com with ESMTPSA id a16-v6sm1491074pgb.6.2018.10.22.23.17.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Oct 2018 23:17:27 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Tue, 23 Oct 2018 16:47:22 +1030 From: Joel Stanley To: linuxppc-dev@lists.ozlabs.org Cc: linux-kselftest@vger.kernel.org Subject: [PATCH 3/6] selftests: powerpc/ptrace: Fix linking against pthread Date: Tue, 23 Oct 2018 16:46:54 +1030 Message-Id: <20181023061657.18007-4-joel@jms.id.au> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181023061657.18007-1-joel@jms.id.au> References: <20181023061657.18007-1-joel@jms.id.au> MIME-Version: 1.0 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Some of the ptrace tests require -ptrace when linking: /usr/bin/ld: /tmp/ccH32S9w.o: in function `init_child_sync': core-pkey.c:(.text+0x1d64): undefined reference to `sem_init' The targets for these tests are modfied in lib.mk to add the $(OUTPUT) prefix. The makefile needs to specify that modifying those rules, or else they do not match and we miss out on the extra flags. Signed-off-by: Joel Stanley --- tools/testing/selftests/powerpc/ptrace/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/powerpc/ptrace/Makefile b/tools/testing/selftests/powerpc/ptrace/Makefile index 58de6d4a0cf4..8d3f006c98cc 100644 --- a/tools/testing/selftests/powerpc/ptrace/Makefile +++ b/tools/testing/selftests/powerpc/ptrace/Makefile @@ -9,7 +9,7 @@ include ../../lib.mk CFLAGS += -m64 -I../../../../../usr/include -I../tm -mhtm -fno-pie -ptrace-pkey core-pkey: child.h -ptrace-pkey core-pkey: LDLIBS += -pthread +$(OUTPUT)/ptrace-pkey $(OUTPUT)/core-pkey: child.h +$(OUTPUT)/ptrace-pkey $(OUTPUT)/core-pkey: LDLIBS += -pthread $(TEST_GEN_PROGS): ../harness.c ../utils.c ../lib/reg.S ptrace.h From patchwork Tue Oct 23 06:16:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 10652741 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D52E114BD for ; Tue, 23 Oct 2018 06:17:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B010D292E5 for ; Tue, 23 Oct 2018 06:17:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A492429307; Tue, 23 Oct 2018 06:17:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B25D292E5 for ; Tue, 23 Oct 2018 06:17:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727367AbeJWOja (ORCPT ); Tue, 23 Oct 2018 10:39:30 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:42193 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727610AbeJWOja (ORCPT ); Tue, 23 Oct 2018 10:39:30 -0400 Received: by mail-pl1-f195.google.com with SMTP id t6-v6so104789plo.9 for ; Mon, 22 Oct 2018 23:17:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7KMMdFSw10DcDKiCmHQOwnGojU9vuBRNUucRAK3vrzA=; b=jME5vagubvW3EyStbGr1XxEkEkmBOsGi6AoIu6VmIVTBiLgZ83GcOizdWDm6LBB5ZR Ewz4jOukyZJdPR6QVCO2AnDdvTC5PwlW3XwbuqqSZF58YeW9SiRg58rxe5s49SfiIHJf 65Ng02BHZZlMzY8VmiIh4sbiDrVD57w06hJMnYHF3PK6mzcp4xBOhC3sBf16MhvKx9Lq j31+1F6uXH93UeZXtTTnpIhnxCWubrZaF/7z1czXeW+seV1gprOHMs/ih/r7ba1zICQT k/gzLG9comRZUFHsFlN4FQ/Lp435v9ErntocrS8q5Y715Iz3A9xXZCHyFdmjVKbKOcdw CPkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=7KMMdFSw10DcDKiCmHQOwnGojU9vuBRNUucRAK3vrzA=; b=P1NeQkHjVWN+EDs/lNk/JF1t91t8wITJtWuA73h9xLZfLBYgGdgiK0ROlo2uTawNj7 g5DKa4RC2MkVeI2acJW060WigZCRngNErG5HyFjZBlSmqzqlzo/0weJMWaybeQRrhM2d N9Uc9Ut90PmY/H87OXvVoQHOlQk/5x+0L6UVCXvv/zCnq+DOXn6sHDf4smXlO2E9eEiP QSVRaZEegoR9E0ZnIlX1SA7Y9zqb1mOpmgxZYEDPt/3YLKCvLnNkNT0MHZFzsel8lvcp LI/JRRb0UAsSQL2NA64wjRqqBYh46fpy9076pKBBbZJq/AVf9JukirXT+uaWmBjl2YDv mx9w== X-Gm-Message-State: ABuFfoiUOifVKP/JFzH2oT/VmRLjQFOU+RmpHrGlpB1/hxAj83sn7T11 VKCNdSMonL/CONCnbBXx350= X-Google-Smtp-Source: ACcGV61ZsxPEKB+YewbJh1bxLOdgxhbGklIx2f0oB++OvZEhz2SgQSMMLjvg+nPeguaHbKcoGr9W3w== X-Received: by 2002:a17:902:1ea:: with SMTP id b97-v6mr48414523plb.152.1540275454466; Mon, 22 Oct 2018 23:17:34 -0700 (PDT) Received: from aurora.jms.id.au ([45.124.203.19]) by smtp.gmail.com with ESMTPSA id 90-v6sm871825pfk.134.2018.10.22.23.17.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Oct 2018 23:17:33 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Tue, 23 Oct 2018 16:47:28 +1030 From: Joel Stanley To: linuxppc-dev@lists.ozlabs.org Cc: linux-kselftest@vger.kernel.org Subject: [PATCH 4/6] selftests: powerpc/signal: Make tests build Date: Tue, 23 Oct 2018 16:46:55 +1030 Message-Id: <20181023061657.18007-5-joel@jms.id.au> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181023061657.18007-1-joel@jms.id.au> References: <20181023061657.18007-1-joel@jms.id.au> MIME-Version: 1.0 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP According to lib.mk, TEST_PROGS is for shell scripts. It appears we need to define the programs as TEST_GEN_PROGS to ensure they are built. The definition must also happen below the inclusion of lib.mk. Signed-off-by: Joel Stanley --- tools/testing/selftests/powerpc/signal/Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/testing/selftests/powerpc/signal/Makefile b/tools/testing/selftests/powerpc/signal/Makefile index d34a7c7710db..25d0973df5b3 100644 --- a/tools/testing/selftests/powerpc/signal/Makefile +++ b/tools/testing/selftests/powerpc/signal/Makefile @@ -1,7 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -TEST_PROGS := signal signal_tm - -$(TEST_PROGS): ../harness.c ../utils.c signal.S +TEST_GEN_PROGS := signal signal_tm CFLAGS += -maltivec signal_tm: CFLAGS += -mhtm @@ -9,5 +7,4 @@ signal_tm: CFLAGS += -mhtm top_srcdir = ../../../../.. include ../../lib.mk -clean: - rm -f $(TEST_PROGS) *.o +$(TEST_GEN_PROGS): ../harness.c ../utils.c signal.S From patchwork Tue Oct 23 06:16:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 10652743 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 311B614BD for ; Tue, 23 Oct 2018 06:17:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C386292E5 for ; Tue, 23 Oct 2018 06:17:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 00C1F29307; Tue, 23 Oct 2018 06:17:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A4451292E5 for ; Tue, 23 Oct 2018 06:17:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727617AbeJWOjh (ORCPT ); Tue, 23 Oct 2018 10:39:37 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:42003 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727610AbeJWOjh (ORCPT ); Tue, 23 Oct 2018 10:39:37 -0400 Received: by mail-pf1-f195.google.com with SMTP id f26-v6so146182pfn.9 for ; Mon, 22 Oct 2018 23:17:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rWi8S4jzSRPfejSB88ND0s0ZmPcoPT0LbfeWB9sCGJ8=; b=UC/wa9V5rWC3TPHs/w9mcyYFR9F/laIqKxHUx4ME/UjwjuUg1xubx6JXza8I5XUw9W kg8CvJ3KNOdNu4nF5z3zGrgyiFKzbb/K2xpzuHXqQvaQpHq0P3L0jBJHamXYCLtUM1tN 0dQtPzhP2WI3lrohylzEGA24PMXdF/8HrtBNzUFdjF/2su3C8mBf+7OgXF3zpGQWdwti GOSkhj62JrjtF/ZT/XxKzTJJ0wlHmeqcPY1WvuBsPgBPG2qqcVSh2YMeJRenaHPDq9vk BsUd76vvgNDZYg/iKuatM2E2AKpiZqsdYfzASD7KYcLoSoo6jzwIsnNFPJksDiN9vomp LINw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=rWi8S4jzSRPfejSB88ND0s0ZmPcoPT0LbfeWB9sCGJ8=; b=gnfap2zgB6rpmv1J5DEIoWhmeMVSLJRpYq8GRItVscayDiaKf70EdTC7Y0u4ECvQrg kRoKWyBJl20r/pT+DNmKdn3QfK9CLq0tHbyuEOjjXui+Tufl0zy5/NvnQCfTNVHqBb0O 2Oh5Bh8iU/luyUVM8YkvgoypEVu96MN0FkMVHlP9FPIi4wZKblQOZGq34jeApio/x20T K8Xm+VNyyVRJKngEF45DrAMJo0ItD2yOHhw4DeHtI+y8xfo4BG4vbBliF6tkBqGgx+UV A5Hv5sVgaM/OUNagkGL7NZg7Jj5dqvzon8sIWc7Hqndd2pruzd+mGr/dRf0weMMZWrfx G9OQ== X-Gm-Message-State: ABuFfoiyNiAsPcAZYcYXx3egDcjySZiBSh2bCNKDsXMzMSTuFcGVwx0a +9bKrWfLVbRISsQBL0beOJI= X-Google-Smtp-Source: ACcGV63hBJqkMsbFKqFneNQdoiOesPbB2KN9KIlQ2kQGacV4rEpDcnhLED+Noc0+YKhpKJ7dIlG8Pw== X-Received: by 2002:a63:790e:: with SMTP id u14-v6mr46027423pgc.111.1540275460582; Mon, 22 Oct 2018 23:17:40 -0700 (PDT) Received: from aurora.jms.id.au ([45.124.203.19]) by smtp.gmail.com with ESMTPSA id z11-v6sm1109332pfd.99.2018.10.22.23.17.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Oct 2018 23:17:40 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Tue, 23 Oct 2018 16:47:34 +1030 From: Joel Stanley To: linuxppc-dev@lists.ozlabs.org Cc: linux-kselftest@vger.kernel.org Subject: [PATCH 5/6] selftests: powerpc/signal: Fix signal_tm CFLAGS Date: Tue, 23 Oct 2018 16:46:56 +1030 Message-Id: <20181023061657.18007-6-joel@jms.id.au> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181023061657.18007-1-joel@jms.id.au> References: <20181023061657.18007-1-joel@jms.id.au> MIME-Version: 1.0 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP signal_tm tries to build with -mhtm but it currently does not. The targets is modified in lib.mk to add the $(OUTPUT) prefix. The makefile needs to specify that modifying the rules, or else it does not match and we miss out on the extra flag. Signed-off-by: Joel Stanley --- tools/testing/selftests/powerpc/signal/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/powerpc/signal/Makefile b/tools/testing/selftests/powerpc/signal/Makefile index 25d0973df5b3..209a958dca12 100644 --- a/tools/testing/selftests/powerpc/signal/Makefile +++ b/tools/testing/selftests/powerpc/signal/Makefile @@ -2,7 +2,7 @@ TEST_GEN_PROGS := signal signal_tm CFLAGS += -maltivec -signal_tm: CFLAGS += -mhtm +$(OUTPUT)/signal_tm: CFLAGS += -mhtm top_srcdir = ../../../../.. include ../../lib.mk From patchwork Tue Oct 23 06:16:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 10652745 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8CE8513BF for ; Tue, 23 Oct 2018 06:17:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 668D4292FD for ; Tue, 23 Oct 2018 06:17:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5B175292E5; Tue, 23 Oct 2018 06:17:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA6F1292E5 for ; Tue, 23 Oct 2018 06:17:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727651AbeJWOjn (ORCPT ); Tue, 23 Oct 2018 10:39:43 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:36887 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727610AbeJWOjn (ORCPT ); Tue, 23 Oct 2018 10:39:43 -0400 Received: by mail-pl1-f195.google.com with SMTP id bh10-v6so146384plb.4 for ; Mon, 22 Oct 2018 23:17:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+EMKdn4JqGd67sac0ZOTG546D/v2ITC51DMCJXlcAlM=; b=oo731jqEz7o5lKRsTndjUp3ydNeqNaCrsppnM1dF6rglY3W0yHd/NKbXUTVizX2CiA GJP6muQXZf5af/z4D+oTdJGbW2/kgW4jI9KU24+UGNZclNLt80S2GVAAPWjoaJfTzJKT qD+vNrTFE784q6eZObIkVLP9wsjGONeywL21nNqUzn7ZlSA3aET+dXCwFvAxEAFAMH/I BCad2+orinqL8mXKo/rgUjyT74PsW4s30BqkCwakygsJ++4AwY1s1VilR6Fj/e0P+4iv tg6MTrLHw+pyHv6HBHSsmkNQDs4ElJh9IWa3FYVGAa+LxPo3NDYyXUM/e+1H9l9lL/WS YfsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=+EMKdn4JqGd67sac0ZOTG546D/v2ITC51DMCJXlcAlM=; b=WycftTCcH2Nqf0a4bFh6FjnSOksGPOK4BrgtisjwHCA04fKjYFcTtyddvlRaZ1RoNc VFAwYIYG2IxaHaOlcJVePep3uYz2yEN5imY+r9rMf7WH6V9JEdb/opSS0u8F8pX+tEa8 3HS6Qw9eFEkCyWWnXvpfYK4o/mBU7BAuI4lMfqria6GWthKESs52+NUxSg0egBxhaDyH Gpbue4PDPH/OhF/Bbzk3xDJD5BDY1ueVyX2TepQzsVdLKdUvo0+G4rt8Hkl4IkzR7CYh rVGuYgU64ZROaiB3gANZP6E2Jc/x1xU9VoCPL8efKCeYEdf2C7Icjv09bReN3h/uxMuE W8Yg== X-Gm-Message-State: ABuFfohBA5NZSQMLRYkaeBx/5ilnocM5gvZYQtIxKFadU1p+OMN8ogHL aJxR6X+ZZJnvaSVpj0HneiM= X-Google-Smtp-Source: ACcGV617w6UJe24rmgwBbaBLyCyOmoW9UiItqlDzB+V4YoVplvTOhtmMSqfr2AmwK9zZzxnBivnlNQ== X-Received: by 2002:a17:902:bf09:: with SMTP id bi9-v6mr47015327plb.118.1540275466944; Mon, 22 Oct 2018 23:17:46 -0700 (PDT) Received: from aurora.jms.id.au ([45.124.203.19]) by smtp.gmail.com with ESMTPSA id u190-v6sm1608448pgu.3.2018.10.22.23.17.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Oct 2018 23:17:46 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Tue, 23 Oct 2018 16:47:41 +1030 From: Joel Stanley To: linuxppc-dev@lists.ozlabs.org Cc: linux-kselftest@vger.kernel.org Subject: [PATCH 6/6] selftests: powerpc/pmu: Link ebb tests with -no-pie Date: Tue, 23 Oct 2018 16:46:57 +1030 Message-Id: <20181023061657.18007-7-joel@jms.id.au> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181023061657.18007-1-joel@jms.id.au> References: <20181023061657.18007-1-joel@jms.id.au> MIME-Version: 1.0 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When running the ebb tests after building on a ppc64le Ubuntu machine: $ pmu/ebb/reg_access_test: error while loading shared libraries: R_PPC64_ADDR16_HI reloc at 0x000000013a965130 for symbol `' out of range This is because the Ubuntu toolchain builds has PIE enabled by default. Change it to be always off instead. Signed-off-by: Joel Stanley --- tools/testing/selftests/powerpc/pmu/ebb/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/selftests/powerpc/pmu/ebb/Makefile b/tools/testing/selftests/powerpc/pmu/ebb/Makefile index bd5dfa509272..23f4caf48ffc 100644 --- a/tools/testing/selftests/powerpc/pmu/ebb/Makefile +++ b/tools/testing/selftests/powerpc/pmu/ebb/Makefile @@ -5,6 +5,9 @@ noarg: # The EBB handler is 64-bit code and everything links against it CFLAGS += -m64 +# Toolchains may build PIE by default which breaks the assembly +LDFLAGS += -no-pie + TEST_GEN_PROGS := reg_access_test event_attributes_test cycles_test \ cycles_with_freeze_test pmc56_overflow_test \ ebb_vs_cpu_event_test cpu_event_vs_ebb_test \