Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3533082pxf; Mon, 15 Mar 2021 11:40:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9XSM7Jse3HAjo4Xdkn8jjPOuRDmgjxe5vJecRadbUTg+/VbqQtYjrfVql8HMJlWK444+A X-Received: by 2002:a17:907:3d01:: with SMTP id gm1mr25424660ejc.214.1615833649494; Mon, 15 Mar 2021 11:40:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615833649; cv=none; d=google.com; s=arc-20160816; b=oJf32CrKA+NulDoHekJH12X2Vn5vhC1w6hQJPSXfr3OAHDVXdrRhUBLsG2DPOz2fhe crF+fWCiwoMb2sx7/AhjwUvrejloYY6vMdEaMxAFmd6Irj5urIAhKPEMapefv5brDFGO ZxOpXGHF66shoJc26/e+9n8ejnl17EjJwK2l+9HewIsbR08rb53zT1qZlKWkDa8fMbyZ qCgc2HDG46TkSZrWYTl476pc31YwRLb0DDIPj99bBNQonLLvzYeGcgGAYaD2RHlaPSKG V66344GxIGNnkvVOAakhcrecMiw7W0MRunDRrH4ZCeuPEJjnHwVFXKwJHxT+3n5H1hrS 1Cmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BKoqRez6iHkkAn0kUlsim0iXUzTtxVRQH4dqQm3EPzc=; b=zEOW0zI1frwF0cQrqIEnpSjzUEVP9PivZzeGjuZWp/ffNKgze4WLJn3h/Y1sBX5IkP AdUUntrtGS+SjrF+IvcpWoBAU4IDEFD6Os/iy2IFGHfmYOcdVCwdThf+eUVEDrZ+Rv1b Azh+5gNxrHSQo90SMdkDFN9GFPH5bxfd4Ftiyn0MdflCSEUQV1w6wBjEwhtHMz4B/ngl 9Etq3goOt4zitrY8Oknh0+dosQEYBBabUdqHN93kN3scZikSz+KdEcypFS2WuGjI6pZm gSLo1Gu4vWS6KIkH3nmJYPE+yixWymqlZBkdFLlMqgmwOMQnPHJLLxut2TCEbBHT+18q tUTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZQ+k0QnG; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y10si12300489edv.94.2021.03.15.11.40.27; Mon, 15 Mar 2021 11:40:49 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZQ+k0QnG; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235544AbhCORYV (ORCPT + 99 others); Mon, 15 Mar 2021 13:24:21 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:28502 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235276AbhCORYJ (ORCPT ); Mon, 15 Mar 2021 13:24:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615829049; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BKoqRez6iHkkAn0kUlsim0iXUzTtxVRQH4dqQm3EPzc=; b=ZQ+k0QnGoPf5tHc/mZ62j/BYOGE6RTWVGBYqQ1TgLv5Q+ect50cWEPnJV1bbNtehxETlnO tFSi04nMyE/GxUG8xdfbW/LNBvQitLQqYWrm8I8wh3lr0UssaRBeHQcW6KnDH6lsp/xY5E B6PLyeruLU0DpLcPSmzuWjj+MPu4b1Q= 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-546-svTClTDnMU-RMDcmyeSC2w-1; Mon, 15 Mar 2021 13:24:04 -0400 X-MC-Unique: svTClTDnMU-RMDcmyeSC2w-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A720D19067F1; Mon, 15 Mar 2021 17:24:02 +0000 (UTC) Received: from krava (unknown [10.40.196.50]) by smtp.corp.redhat.com (Postfix) with SMTP id C7D3119EF2; Mon, 15 Mar 2021 17:24:00 +0000 (UTC) Date: Mon, 15 Mar 2021 18:23:59 +0100 From: Jiri Olsa To: "Denys Zagorui -X (dzagorui - GLOBALLOGIC INC at Cisco)" Cc: "peterz@infradead.org" , "mingo@redhat.com" , "acme@kernel.org" , "mark.rutland@arm.com" , "alexander.shishkin@linux.intel.com" , "namhyung@kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] perf: build reproducibility improvements Message-ID: References: <20210312151700.79714-1-dzagorui@cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 15, 2021 at 04:45:55PM +0000, Denys Zagorui -X (dzagorui - GLOBALLOGIC INC at Cisco) wrote: > > Makefile.config:1026: No openjdk development package found, please install JDK package, e.g. openjdk-8-jdk, java-1.8.0-openjdk-devel > > cp: '/home/jolsa/kernel/linux-perf/tools/perf/Documentation/tips.txt' and 'Documentation/tips.txt' are the same file > > BISON util/parse-events-bison.c > > bison: unrecognized option '--file-prefix-map==' > > I thought that this flag was added in v3.6.3 because in git history next tag after corresponding bison patch was v3.6.3. But this is not true. > > > hum, do we actualy want this? I think we want the exact path > > we used for compilation, no? what's the benefit? > ... > > same here, we want to be sure to use the python path > > from the exact build laction no? > > This patch makes perf build more deterministic. This means that if we build perf on two different > build machines from exactly the same sources we will have absolutely identical binaries. To achieve > this absolute paths should not be stored in resulting binary. That is why i tried to determine those paths > in runtime instead of storing them in binary compile time. > There is ongoing project > https://reproducible-builds.org/reports/2021-02/ project > Kernel already achieved this > https://www.kernel.org/doc/html/latest/kbuild/reproducible-builds.html ok, haven't heard about this > > This patch doesn't make perf 100% reproducible. There is one more known issue with pmu event ordering > https://bugzilla.opensuse.org/show_bug.cgi?id=1180882 nice, the reason of pmu events is in random fashion, so the resulting binary differs.. perhaps we could use scandir with sort instead jirka