Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1953920ybi; Sat, 13 Jul 2019 03:53:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOtIVegHRm+7AhPUHxPWw0lvp5Xx7eyBeYsVnDJYThc5cDoUT9WzEPSZs8MFEt9Vj3qEqh X-Received: by 2002:a17:902:9a49:: with SMTP id x9mr17222652plv.282.1563015220417; Sat, 13 Jul 2019 03:53:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563015220; cv=none; d=google.com; s=arc-20160816; b=yE9HSkBf/UZTwjiqu9sSiflkq+Ln/FEQFe2kkGWar2Fic4DXEU5nzusOWm7XltmJ4+ Ac36Nb5jXOmNq6UxvSWx5aZrokM5Ho9mix6otMI5QQeU8Kl36ipjVNLtspebgALVmg6s 4oGX+Pd5j/11WoSCE8JJ6JrEBtz2PyWasp/zjTP9y0+GR+7nTLMj5wFn9clKEoDSZK5u 7ZJ3AEpl3yQDsI6fVXifbHhr4e5v9EbZq7NgkAH/undyaGkYse+anR885Ge5j5PMr2Ad f0o/f9+UG157a+ki0UzrrCIQez2DHH+YbSs9Ef2ypV7YISu7G28VaQWiPWT2wBhLiwtr 1FTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:dkim-signature:dkim-filter; bh=c7PkIHOd4Cs+8uiLrOFi603cWwVghZS3JqS2QX0EezQ=; b=d7L5g0ucUufW3uEUFbD+zQ6LJfYVueJiM11ZKIczj6vUSNvkITikFEOT5ASAVIomqS O7VUHjqCg5z94SZFzogLlMJGx6q98IL+oqqeKK+XRnfzxLOhcUA2T6QTSOIWx5yWHEhk SQoC8qrQE/Yu4U7g/S4zlBTn5sQ+120mpr7KUDF55LQY/OGFpE0IwIxjGxMzO9deMbyo +UYH6gy2UJi1jld+MZd46ia1EAphsi1+6my4dKKIp87U6J/szivIAwAtUQ0qIHGC41RE RAdz6TONcIUdwI/7F7dDwBdPklI9jGL2wYQyOOMDNbGjEkW8WrJ/LmxAsRoyHNoiq3RM xYDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019061801 header.b=yBiG4ihX; 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=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a63si11287071pge.113.2019.07.13.03.53.24; Sat, 13 Jul 2019 03:53:40 -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=@zytor.com header.s=2019061801 header.b=yBiG4ihX; 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=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727553AbfGMKxG (ORCPT + 99 others); Sat, 13 Jul 2019 06:53:06 -0400 Received: from terminus.zytor.com ([198.137.202.136]:50951 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726460AbfGMKxF (ORCPT ); Sat, 13 Jul 2019 06:53:05 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x6DAqO2B3837429 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 13 Jul 2019 03:52:24 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x6DAqO2B3837429 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019061801; t=1563015145; bh=c7PkIHOd4Cs+8uiLrOFi603cWwVghZS3JqS2QX0EezQ=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=yBiG4ihXxN4cbT1Jz/0ckjcS8/vmB6AG872Ig49qMm3igSxgqiZUI/zkPOV/yqmIj 5IH8KsUGuauLvLRcBLFRhzi+IPbxbdoMopPu6GVwwhNcmdwUg3LYKELVBOzmoYJZ4q tL0kZl9xOI8IuNTcsZ7LN1cyAo8cVjgiR0rkP07ayRBUlvn6OzsAxn69RYS1kJ+dBB Hm2cxHS3kE+AhN2tCNstMa3ABrLm61FU7hjkHyPNxWedeXvcb9aNcInT37UewcPVwu cSp37NUN74TNKMELoWTzvRegc2gMRAi4aCU4JSLr9YKHAEFrbB59gdQFenWPkChNAC GDNSEP0LKBWwg== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x6DAqNxs3837422; Sat, 13 Jul 2019 03:52:23 -0700 Date: Sat, 13 Jul 2019 03:52:23 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Numfor Mbiziwo-Tiapo Message-ID: Cc: mbd@fb.com, linux-kernel@vger.kernel.org, mingo@kernel.org, namhyung@kernel.org, hpa@zytor.com, irogers@google.com, alexander.shishkin@linux.intel.com, songliubraving@fb.com, tglx@linutronix.de, eranian@google.com, jolsa@redhat.com, acme@redhat.com, peterz@infradead.org, nums@google.com Reply-To: linux-kernel@vger.kernel.org, mingo@kernel.org, mbd@fb.com, nums@google.com, peterz@infradead.org, jolsa@redhat.com, acme@redhat.com, eranian@google.com, songliubraving@fb.com, tglx@linutronix.de, alexander.shishkin@linux.intel.com, irogers@google.com, hpa@zytor.com, namhyung@kernel.org In-Reply-To: <20190702173716.181223-1-nums@google.com> References: <20190702173716.181223-1-nums@google.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf test mmap-thread-lookup: Initialize variable to suppress memory sanitizer warning Git-Commit-ID: 4e4cf62b37da5ff45c904a3acf242ab29ed5881d X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_06_12,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, DKIM_VALID_EF autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 4e4cf62b37da5ff45c904a3acf242ab29ed5881d Gitweb: https://git.kernel.org/tip/4e4cf62b37da5ff45c904a3acf242ab29ed5881d Author: Numfor Mbiziwo-Tiapo AuthorDate: Tue, 2 Jul 2019 10:37:15 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 9 Jul 2019 09:33:54 -0300 perf test mmap-thread-lookup: Initialize variable to suppress memory sanitizer warning Running the 'perf test' command after building perf with a memory sanitizer causes a warning that says: WARNING: MemorySanitizer: use-of-uninitialized-value... in mmap-thread-lookup.c Initializing the go variable to 0 silences this harmless warning. Committer warning: This was harmless, just a simple test writing whatever was at that sizeof(int) memory area just to signal another thread blocked reading that file created with pipe(). Initialize it tho so that we don't get this warning. Signed-off-by: Numfor Mbiziwo-Tiapo Cc: Alexander Shishkin Cc: Ian Rogers Cc: Jiri Olsa Cc: Mark Drayton Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Song Liu Cc: Stephane Eranian Link: http://lkml.kernel.org/r/20190702173716.181223-1-nums@google.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/tests/mmap-thread-lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/tests/mmap-thread-lookup.c b/tools/perf/tests/mmap-thread-lookup.c index ba87e6e8d18c..0a4301a5155c 100644 --- a/tools/perf/tests/mmap-thread-lookup.c +++ b/tools/perf/tests/mmap-thread-lookup.c @@ -53,7 +53,7 @@ static void *thread_fn(void *arg) { struct thread_data *td = arg; ssize_t ret; - int go; + int go = 0; if (thread_init(td)) return NULL;