Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1119915pxu; Thu, 8 Oct 2020 04:01:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrwrsVqzHEV4Egah1CBErib8slh3ZjK6TSGjnOmP/5oysluFSrunNeay3NYghn+oeXC6Iu X-Received: by 2002:a05:6402:384:: with SMTP id o4mr8355706edv.387.1602154863207; Thu, 08 Oct 2020 04:01:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602154863; cv=none; d=google.com; s=arc-20160816; b=eTcrz6qf9lG5CdWQzR7pmIkec3RjgZaiCcc2iLbZsvTc3fZFv3JbJwzBy627JUfnMU Z1sracrnpqEWdIFWtoBTxcbQSl3T+ZD0BibYLTJEkYMC8+Up11TJyncONi8Xcfhp2Wh5 LxhuH1O1/bXT8LKIfMB+wUb+DBaJh67tZ7vmkSiufcqC2Rb454zbtqQttuXgyBO6t9eG xEm9mHSSrWz3cutkPHsvGXJhqlB6seWtRLla5KmF9ZCqgELKLVSF8ntwbsF9n7CXL7yN FPNtbOLuvm/xjiUqYwDDcgPamD4ZexSs+Cr/Fmiyky58j66MGkODUlZHX43fbvqv6rP5 Kgiw== 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=SI5KXM+HfSVoiFUKPevuobVKY3ePMXmgfp8KUxkUlTk=; b=JxGFAwH0WGhTUqdDu5tc9n48+iBMOtWEyWdb+LAWsqKLD0ADEOfrUFBsVmStZ40IEL NfhLBw8IUWFc4MxCSQUGWMxhNA0AHzJrSq/eHSK+q/+i9Z2Ccjd5PhIQWLKtVfICroMZ QW3ryxpfPJO4o9vo7dizboJV9lXNbaePXteELMJvL99JFkTL0STc1p6dm1Nxu7bNk+gr lMSzSk17jtJoC8cKH3ASWCb6I1TP8+slVOAKIDFcar98JuosyXTLRyrsQCbfvolnMjGG vfruo/jxKPL1tILEzoE2OT1Twh8GSKZ8C5pNHJclCyDoox3e5KRzh4qoP6ZEU+zO0n0o 1Abg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Wp4NoYyY; 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 n4si3611362ejk.692.2020.10.08.04.00.40; Thu, 08 Oct 2020 04:01:03 -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=Wp4NoYyY; 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 S1728848AbgJHJMD (ORCPT + 99 others); Thu, 8 Oct 2020 05:12:03 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:54663 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725882AbgJHJMD (ORCPT ); Thu, 8 Oct 2020 05:12:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602148322; 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=SI5KXM+HfSVoiFUKPevuobVKY3ePMXmgfp8KUxkUlTk=; b=Wp4NoYyY2h6Ds/zmAtZTZ3BapViLwHA2ueKktSyRjWEzmWreyZbClSJ7tEsW/HumGtyBpX eYrExpmBeECMhvQwxyKW+yK5wIHZHbU8iaoNTNqBoXlDN/xllA2eMUDxcND4EBugE7aluc gGd1bPIMnAP92njJ25WGAlgAgAhAWhI= 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-494-pjd9CC1MPfurAuB6Xwinig-1; Thu, 08 Oct 2020 05:12:00 -0400 X-MC-Unique: pjd9CC1MPfurAuB6Xwinig-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 749798064AD; Thu, 8 Oct 2020 09:11:58 +0000 (UTC) Received: from krava (unknown [10.40.195.117]) by smtp.corp.redhat.com (Postfix) with SMTP id C8DA055761; Thu, 8 Oct 2020 09:11:54 +0000 (UTC) Date: Thu, 8 Oct 2020 11:11:53 +0200 From: Jiri Olsa To: Namhyung Kim Cc: Ian Rogers , Jiri Olsa , Arnaldo Carvalho de Melo , lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Michael Petlan , Stephane Eranian Subject: Re: [PATCHv2 1/9] perf tools: Add build id shell test Message-ID: <20201008091153.GB656950@krava> References: <20200930171512.3986425-1-jolsa@kernel.org> <20200930171512.3986425-2-jolsa@kernel.org> <20201001190530.GD3999500@krava> <20201002192944.GH3999500@krava> 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.15 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 06, 2020 at 10:37:45AM +0900, Namhyung Kim wrote: > 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.. hum, could we go in with the v3 and then you guys could customize it to what would work for you? thanks, jirka