Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1554072pxk; Fri, 2 Oct 2020 12:33:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7YzH+lOs9hshiHe7mIT2EOEWwSlkNW6udb10nkArCoT/H6gmpv1xLmugnjTLqPIDS4UvG X-Received: by 2002:a17:906:28c4:: with SMTP id p4mr3766469ejd.345.1601667203261; Fri, 02 Oct 2020 12:33:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601667203; cv=none; d=google.com; s=arc-20160816; b=CctUTYAJFU6ISBeZUWgvzyl6pKCpQMTSzrtSk6RRBJDBPfOvJ/oqklYPg1iLTrQYTc 1c4/ttpqSqKjV7L5ULjp88xDQHNtzdehiLtZFS/1O0seVXdMD0lKj2rLr0jQZMTOl/Ge w214V51AwVPzpgoeOWquMEueCFSfNC1hRhdh9KJV9zniLxSRwOxj1sveUacxSK3M3pka wNBvus7NzlpAuomRNb/f5bmexJ/BlkSrFxLV2cCXLxs5cJ4u530u0455dFXjwnTh0RdV mVti6FMD4rwIG+/+x2QyaAVhUNBzoMvRcIDi0OZcs89qoitxvtidZa7rxxPHSxtRk2FQ y6nQ== 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=UUF8r6P20KLuB/qZTy80TaYlmTrYZ31o4GL8SMne1Mc=; b=CvP7nnY2PjFGK2IstcyD4GgEEND7+YT0WtFLq+8fAQl7aSRQKQiFKEsCGT22H1v/vr DOvsQgRzgGY2Yacso6QlTkEt+HiYVtD8Rsu2trFuN6b7M2BQyjbb3w1CpHxzQeuyAFBQ oBFj6Z/koxNI9YTwa/h7oTYVbgbRevyDa5dNKluEsvPMsD5foBqxvVkzae36LnkILc0N yWDf/tFEejjkwg1OuxMY+m7ODLynOWSzwZ/aVn+gGMWlb/tTHx1/370ATcCNOCkR7BCU ArTPzG26ejG5ZdpAYZlEqTXt3vuhy8bImOtDGNuUfQD8z0FViFJ9wNR2mV5z7q0tNeBU xzJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=S2pmYheC; 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 i7si2173358ejo.472.2020.10.02.12.33.00; Fri, 02 Oct 2020 12:33:23 -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=S2pmYheC; 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 S2387806AbgJBT3z (ORCPT + 99 others); Fri, 2 Oct 2020 15:29:55 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:46628 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725991AbgJBT3z (ORCPT ); Fri, 2 Oct 2020 15:29:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601666994; 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=UUF8r6P20KLuB/qZTy80TaYlmTrYZ31o4GL8SMne1Mc=; b=S2pmYheCScYhbLNh++XN1USyPiXsQjkVnLRSeyuHYKt91spro2kRLkSL1NPHD+2EKj2SyH WzAh8FrAUvvON7BrKfSiKb9oHtyW5kIsASNP6tsrggCYipSxGC7Me3Hnp/uhGlGJKyrgIH eb725075iv6w2MqvybbK4HVlFEI5whc= 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-52-jZrE_AY5O5OsnuRt6N3Tiw-1; Fri, 02 Oct 2020 15:29:50 -0400 X-MC-Unique: jZrE_AY5O5OsnuRt6N3Tiw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A07508030BE; Fri, 2 Oct 2020 19:29:48 +0000 (UTC) Received: from krava (ovpn-114-211.ams2.redhat.com [10.36.114.211]) by smtp.corp.redhat.com (Postfix) with SMTP id E1F6973677; Fri, 2 Oct 2020 19:29:45 +0000 (UTC) Date: Fri, 2 Oct 2020 21:29:44 +0200 From: Jiri Olsa To: Ian Rogers Cc: Namhyung Kim , 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: <20201002192944.GH3999500@krava> References: <20200930171512.3986425-1-jolsa@kernel.org> <20200930171512.3986425-2-jolsa@kernel.org> <20201001190530.GD3999500@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.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? thanks, jirka > > > > Thanks > > Namhyung > > That'd mean perf test having a dependency on a compiler :-/ That said > there are some existing dependencies for BPF compilers. > > Thanks, > Ian SNIP