Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3575560ybi; Fri, 5 Jul 2019 09:47:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyewQiBJ6Wmtr0NlYefrBV6O3dbouc47m5HXwLAld1sNc7HbZHpYPdt49qatbE93FLj4GdZ X-Received: by 2002:a17:90a:9b88:: with SMTP id g8mr6789300pjp.100.1562345263079; Fri, 05 Jul 2019 09:47:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562345263; cv=none; d=google.com; s=arc-20160816; b=oxM+hhxWgvkaPYoOkb66MKYldoNN9t50uEKExvZ5hYWm3c4m/rP/PxuO0I7YRVzozM bH4Rc6LkZa1gYpRIsjXqgXMGGCSW4YR/wt9gMtwKsB4/vB1gXGesHVr79yw2KBmkk74+ Z+SIrFeT92fTDTwDd7PQ4nP74U1ZfhjHfe6vxWX5dWpjvK2cGSKYGPYcGEhJpTHTflnV U4CaXUMPR/0fx9WJ9bMhJMTVr4YHk2Dl55yefcMpbXkd9Ph5b/f1BGBOBLButnmdmjzG /5Q6ytPLc8ZEwRk7JL8GMFGQPucPC3ChllCWImVATpuChizeD1nRvMApFcDXS6fXfU3s cu2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature; bh=t/6ftpa8KEJE9o6IFoYpCHZyzY+Y35BOpCfDAYSShIo=; b=zoZLXK2nEbYllZMY06GYgjrmqfsNXEXtCbcnUWO/5jCL3QLYFptzKVR8lFSlimAufL Qf2VVdBfveTdrKBqUCV4kNnBWjM86KBliUcbkDvDh57woMLrdo9eaJEUBtN+L1NOi18X 2y6cdOo+swLMQN8FM+UFFrxA1P/3+DVbbotEkxLUqAEI6/RtTMrjmE9Ici+T4bv8m3pc GK3HE2vQrMUR9qAmWM1lOO3UUIqws/pq6RQAARYkpvZjKyzDCDDpQJedBLFkL+QtOtOa NKVa34jDo8QyyXWZs9nXJvdchffqksPi8guwVWCkRujAXzJffg+8b4GdF58z9PZPL2hl Xk3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QrlGXo+n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s132si3063858pfc.244.2019.07.05.09.47.28; Fri, 05 Jul 2019 09:47:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QrlGXo+n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728071AbfGEQk3 (ORCPT + 99 others); Fri, 5 Jul 2019 12:40:29 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:36444 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726302AbfGEQk3 (ORCPT ); Fri, 5 Jul 2019 12:40:29 -0400 Received: by mail-qk1-f195.google.com with SMTP id g18so8319715qkl.3 for ; Fri, 05 Jul 2019 09:40:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=t/6ftpa8KEJE9o6IFoYpCHZyzY+Y35BOpCfDAYSShIo=; b=QrlGXo+n9D7RfqENzPoBWhYPPJo4DOGzNfXDJ6gek3sJJ2nxqhKaIOYO3QcD00I6iW AcbDZR3FiGlgKdKa1Ilj3Rwz7SWTdeopaYRNAia4DCf+BlX/KTkKjUnaJj8I66UScgRJ +/ulSBJrmCi3DYYoWFjrmPPrKe+wPX9PTI24cS3yrYpbbF4Fyqm6CD2FH06nRJczSz04 gi31/VBd0Kfg0r3RRFpNAaGIRu251/LtkLga/NkTnT3/fhf2hFDiQ0YmfmXp14Pr40wj cTzB9FPH362gM4F7YqAU4BFjh95pp6b2wuV7iyOy/AcPql7m2NxcBfqbsM7mjk5o/zDn loNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=t/6ftpa8KEJE9o6IFoYpCHZyzY+Y35BOpCfDAYSShIo=; b=lRZ2dSFCHFNG7K176CUhMgTp5iIJIGkDR8OCyImg+usngIkQAX4aEEPvYeLkbgUj4/ d6OAag8hNbj7gGm1qxpg0OOJdjJROhRbD2fUeY0q3FOjiaYuxJsDCEP512uNyl6GfjbY zpyjdhhYGmcIDt85qgwLWV+1hE4f//dwd0oblmMUMRAyNoQhavaMJ6t0G3e9Zb2APt9Y YEEiFc81Adue8RHVXN4e0287v5PQOq+qHpdrYpeu4FzQNeK3uqRtqDWpsUM/0HLI6/zv SRxvqcAiRmeS5Wj0q6szNBzoL399pyEnWj5mFLHMc5eOK8Lj4JBwAZuoGjeb+2QoRfds GJQg== X-Gm-Message-State: APjAAAUjmdedPgOl6lLEAL7QZ4auXtj8U6qUm/jdvpNDFOZAhzx4wWtu xwgpx4F+I/UwiwilcxxBZvw= X-Received: by 2002:a37:4bc5:: with SMTP id y188mr3548298qka.13.1562344827870; Fri, 05 Jul 2019 09:40:27 -0700 (PDT) Received: from quaco.ghostprotocols.net ([179.97.35.11]) by smtp.gmail.com with ESMTPSA id r26sm3950383qkm.57.2019.07.05.09.40.26 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 05 Jul 2019 09:40:27 -0700 (PDT) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 675D740495; Fri, 5 Jul 2019 13:40:25 -0300 (-03) Date: Fri, 5 Jul 2019 13:40:25 -0300 To: Numfor Mbiziwo-Tiapo Cc: peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, songliubraving@fb.com, mbd@fb.com, linux-kernel@vger.kernel.org, irogers@google.com, eranian@google.com Subject: Re: [PATCH 2/2] Fix perf-hooks test Message-ID: <20190705164025.GB8600@kernel.org> References: <20190702173716.181223-1-nums@google.com> <20190702173716.181223-2-nums@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190702173716.181223-2-nums@google.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Jul 02, 2019 at 10:37:16AM -0700, Numfor Mbiziwo-Tiapo escreveu: > The perf-hooks test fails with Address Sanitizer and Memory > Sanitizer builds because it purposefully generates a segfault. > Checking if these sanitizers are active when running this test > will allow the perf-hooks test to pass. Can you please add to the commit log message, here, the sequence of steps needed to build with these sanitizers, so that one can replicate the steps and reproduce the results? - Arnaldo > Signed-off-by: Numfor Mbiziwo-Tiapo > --- > tools/perf/tests/perf-hooks.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/tools/perf/tests/perf-hooks.c b/tools/perf/tests/perf-hooks.c > index a693bcf017ea..524ecba63615 100644 > --- a/tools/perf/tests/perf-hooks.c > +++ b/tools/perf/tests/perf-hooks.c > @@ -25,7 +25,12 @@ static void the_hook(void *_hook_flags) > *hook_flags = 1234; > > /* Generate a segfault, test perf_hooks__recover */ > +#if defined(ADDRESS_SANITIZER) || defined(MEMORY_SANITIZER) || \ > +defined(THREAD_SANITIZER) || defined(SAFESTACK_SANITIZER) > + raise(SIGSEGV); > +#else > *p = 0; > +#endif > } > > int test__perf_hooks(struct test *test __maybe_unused, int subtest __maybe_unused) > -- > 2.22.0.410.gd8fdbe21b5-goog -- - Arnaldo