Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp84392pxk; Mon, 5 Oct 2020 18:40:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkYXAx2fYfEPnRqXcNs2q7YweFJx8wQR5t8fvoDOwUi3SlyE7yvbN3WwnXvQCa6TEPs0E2 X-Received: by 2002:a17:907:72c2:: with SMTP id du2mr2771787ejc.512.1601948424274; Mon, 05 Oct 2020 18:40:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601948424; cv=none; d=google.com; s=arc-20160816; b=pxpId0l54wWZUdBnMgT5ZsWxHJ6Ja/m5fbvSeo5S7gHOz85vlmaYe+sgKlWXSjmm/r TCqghQkckub+0bE8OknoKZLkOdiS77Uy5sllTtmw+ow9JkxRdI2dsFX7goyGMdT+D0c3 0W4c/sDvk1lmrFYdBVKaKEgjBtE2azWlbrhrYXgSVd8oOb5cXhmDrttpKs+RANrVNQqB /ZoibDD93XFlh0eA6sj3b3BEoPojbPMmAUeqdy/ziiMrt9j5LtIosqfTv2Q4mzlRtwEt ex+O32Tt3Lu0XOeW2Sd4kQg5D+8CtHrlTZq9QF0AH3kkNTHlncxeGepzSe0YKa68izYc p/vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=6XOkPuWAVksaYnpbdbI4+rs3vKcq8+w0HL/+QULyvzU=; b=EE+3/x3/5/NUlez+v/4S7xi4aTdgLinAI1AUn/OHiZEE5c97tor2R6SmftVppAlGco gct4ODjLKwVQ2JzYP21V9Uws8QrwQCj76MeNlnmZ7AdFMKE0ZHSW8/wIKGyGj6zd4M9X BJcM4XTLNHIZ/wfjoG+baq3MztpcIERek0fLLxP38vVUR1OiFZgTiD4f2gOHBZb4MJg2 GCYmCS6QNpeYAEYjnTAnKgkKfYiuNPMtOrxPfudxUwmhiXfjnoGCKlFTZm6FefOOgGKd nTQ1e8VdPCXnsPAOCO8tENEXCpJpypC/E3JyJStSazaSX5xxRRquNzbkVbitInNcB/Uv 5i4g== 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 h5si1022886eji.357.2020.10.05.18.40.01; Mon, 05 Oct 2020 18:40:24 -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 S1725977AbgJFBh6 (ORCPT + 99 others); Mon, 5 Oct 2020 21:37:58 -0400 Received: from mail-wr1-f52.google.com ([209.85.221.52]:38731 "EHLO mail-wr1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725872AbgJFBh6 (ORCPT ); Mon, 5 Oct 2020 21:37:58 -0400 Received: by mail-wr1-f52.google.com with SMTP id n18so3781499wrs.5 for ; Mon, 05 Oct 2020 18:37:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6XOkPuWAVksaYnpbdbI4+rs3vKcq8+w0HL/+QULyvzU=; b=r5OCtM1z6p8rULJ789sR8KLSRUWKRJDfjifaeEkv08sWJNDZprpjDk11TBTF9JeRzq VGOVwg4lpok3gvVs6HVKGQYYLxe057Qsn9UJuZd6668D8DwqZWSeQ+ZXwoi0dsdE5BOg EwrOb/6LOHl0NjJfaqLjOxSsCHPuxReauDz3v07njvKTxeHV+O0moCXMLxFIlz5hJgzO i4bJEAtHOm3eKHIML7Yiqa4H1dp12zIN8+y8M+bhchUWQegL+UiSwyXZXAFvSqYAoM3g rZAxP+dsbwfENLC3m917ePHmQDhw0Or0xnMvkQjUkrSCN7I/iAA5aeNJCnbluHjEjbCW U3Zw== X-Gm-Message-State: AOAM532XiZ/HHcXU43n5R347O+57HYWIwAVRXpLPOyaCG4A8oB1qi22Z YqJWmUVBpRFavU2cUxqbEAWmoTPJLAaL2o5SpE8= X-Received: by 2002:adf:e481:: with SMTP id i1mr2021795wrm.391.1601948276735; Mon, 05 Oct 2020 18:37:56 -0700 (PDT) MIME-Version: 1.0 References: <20200930171512.3986425-1-jolsa@kernel.org> <20200930171512.3986425-2-jolsa@kernel.org> <20201001190530.GD3999500@krava> <20201002192944.GH3999500@krava> In-Reply-To: <20201002192944.GH3999500@krava> From: Namhyung Kim Date: Tue, 6 Oct 2020 10:37:45 +0900 Message-ID: Subject: Re: [PATCHv2 1/9] perf tools: Add build id shell test To: Jiri Olsa Cc: Ian Rogers , Jiri Olsa , Arnaldo Carvalho de Melo , lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Michael Petlan , Stephane Eranian Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 3, 2020 at 4:29 AM Jiri Olsa wrote: > > On Fri, Oct 02, 2020 at 10:34:51AM -0700, Ian Rogers wrote: > > SNIP > > > > > + > > > > LIBJVMTI = libperf-jvmti.so > > > > > > > > ifndef NO_JVMTI > > > > @@ -756,6 +763,13 @@ $(OUTPUT)perf-read-vdsox32: perf-read-vdso.c util/find-map.c > > > > $(QUIET_CC)$(CC) -mx32 $(filter -static,$(LDFLAGS)) -Wall -Werror -o $@ perf-read-vdso.c > > > > endif > > > > > > > > +ifndef NO_BUILDID_EX > > > > +$(OUTPUT)buildid-ex-sha1: > > > > + $(QUIET_LINK)echo 'int main(void) { return 0; }' | $(CC) -Wl,--build-id=sha1 -o $@ -x c - > > > > +$(OUTPUT)buildid-ex-md5: > > > > + $(QUIET_LINK)echo 'int main(void) { return 0; }' | $(CC) -Wl,--build-id=md5 -o $@ -x c - > > > > +endif > > > > > > Can we just build them in the test shell script instead? > > it would solve the build-directory/install-directory > lookup search.. but it'd need to do detect compiler > and depend on it as Ian said > > do you have some other reason to compile it in test? No I just wanted to make it easy to find the binaries and assumed a compiler is available in the test machine (which is not true for my company setup.... :-/) But otherwise we should keep the binaries somewhere in the install directory.. Thanks Namhyung