Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp420694pxk; Fri, 11 Sep 2020 10:23:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/DuO3cNTmRdrMwa6aSM5eDfwoXdRZOVuMpUB0HusyAFgEOKsJKRZFkpmXQoKwtVm78/KX X-Received: by 2002:a50:cc9a:: with SMTP id q26mr3451108edi.64.1599845003261; Fri, 11 Sep 2020 10:23:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599845003; cv=none; d=google.com; s=arc-20160816; b=YSMjkQ+QtTLCRSaU7GgR+vVvqUVu2oJEYp0pZxXsd2KhSY+rqM6gjKBCWIuKG40Y6F s43eSI4nVeMnYU6ShDrMPAfQwbC3eWzzl181gYLoAoor8cQqdDGom/E4lRQ/YMoZQts+ 2Hr1v9sW9LYIUGSiIKmTOKKlYdAX/JnsFlfvLLsuaL1GuRMv448TYZg3jqSzsP1dDFPX z1e/eGFTSIOfTvsfcGo3Kdtf772pMJ49HD+41I7sTnuNxDvrqlOAGuUO8r5i8QG9l/nC fZmqM6LDE0zXPzhrNEzY2aNO1MgsT4PmR/a2sd+ooaxVrLba1oDecSWAkibvu1F3UqTM 57UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=+0AgRZCjJVBdGgbr6MkIK2RSwsDOics5UWp8xIC8axw=; b=KAz8yhthIcj/LUds5KhS8LqeLGaolp3Fd+hzz6APWGtmvHSMk6v14ZQ66kvpUqJfbn IVw1iQfbhF8I5hgGs8q5Ith31tEbohfTL8gjRfR56kl4+b62c0UIqDfEio7CXLK73oY5 4IukdeKZpgAXkyUC1/CWa62hprsxi/fsGdz5MCrv/dhsvo8M1ZtWJ8XquoWgjn5oLPg/ H9NeGUNG2xrxuHHUS1/xyjWFnfS+4o94KWJU/nDtkRm6yNmbb6Rl4RyzInPBgR7TFm7j dmLQi1zpKabGUQ9jJbBmyBBZyLKh2GeNtP1ozSQOS3zVACy5rDVqW0aGiusXlzNZ8eLb bvXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c7si2063183edl.290.2020.09.11.10.22.59; Fri, 11 Sep 2020 10:23:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726248AbgIKRVk convert rfc822-to-8bit (ORCPT + 99 others); Fri, 11 Sep 2020 13:21:40 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:51147 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726029AbgIKNA3 (ORCPT ); Fri, 11 Sep 2020 09:00:29 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-436-XoifVDoTPOmy5KbhGZ_S1g-1; Fri, 11 Sep 2020 09:00:10 -0400 X-MC-Unique: XoifVDoTPOmy5KbhGZ_S1g-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 73B9B107B272; Fri, 11 Sep 2020 13:00:08 +0000 (UTC) Received: from krava.redhat.com (unknown [10.40.192.120]) by smtp.corp.redhat.com (Postfix) with ESMTP id 13EDE75136; Fri, 11 Sep 2020 13:00:05 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Wang Nan , lkml , Peter Zijlstra , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Michael Petlan Subject: [PATCH] perf test: Fix signal test inline assembly Date: Fri, 11 Sep 2020 15:00:05 +0200 Message-Id: <20200911130005.1842138-1-jolsa@kernel.org> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=jolsa@kernel.org X-Mimecast-Spam-Score: 0.0 X-Mimecast-Originator: kernel.org Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When compiling with DEBUG=1 on Fedora 32 I'm getting crash for 'perf test signal': Program received signal SIGSEGV, Segmentation fault. 0x0000000000c68548 in __test_function () (gdb) bt #0 0x0000000000c68548 in __test_function () #1 0x00000000004d62e9 in test_function () at tests/bp_signal.c:61 #2 0x00000000004d689a in test__bp_signal (test=0xa8e280 Fixes: 8fd34e1cce18 ("perf test: Improve bp_signal") Signed-off-by: Jiri Olsa --- tools/perf/tests/bp_signal.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/perf/tests/bp_signal.c b/tools/perf/tests/bp_signal.c index da8ec1e8e064..cc9fbcedb364 100644 --- a/tools/perf/tests/bp_signal.c +++ b/tools/perf/tests/bp_signal.c @@ -45,10 +45,13 @@ volatile long the_var; #if defined (__x86_64__) extern void __test_function(volatile long *ptr); asm ( + ".pushsection .text;" ".globl __test_function\n" + ".type __test_function, @function;" "__test_function:\n" "incq (%rdi)\n" - "ret\n"); + "ret\n" + ".popsection\n"); #else static void __test_function(volatile long *ptr) { -- 2.26.2