Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp682458rdh; Thu, 26 Oct 2023 12:37:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGctsjeekmEz4atGwUaSul+OEbhxIrZEvx/vTiQFDGNxB7s8CJasjQ6lFlMJjdwWxN4h+qt X-Received: by 2002:a81:b247:0:b0:5a7:ec51:9218 with SMTP id q68-20020a81b247000000b005a7ec519218mr392153ywh.25.1698349078648; Thu, 26 Oct 2023 12:37:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698349078; cv=none; d=google.com; s=arc-20160816; b=i4jLMCK9k4TAt0/UbCirPqdzelGGPisRZYSBXGLTeEFgesPb9Xvmb+QDKitCCtgYCT o3wCgm0unL0kQu6hEe0iwBmWGTEy5/4eGcKFpi8mUBnHhacEamcLQjWaik9YsPyqbDYZ zI9OxLPGJWH+kPQqnTIc6BRrl/yOgUNsbuCxd72B0fMNUMRt98l5YbfGN5NvL62ezDph MJcFeNNgS9E1mCDNvwmFzuJVPy1pgz85KAZsKImBqs+CUFYDfGb4Zuxq4j+7g1DQKlwU PFHn7t5lavkiDwrOd743W0/RT7hzOJJYFR7XkKCTvQva+xbQIHPJTmNlhbMCHDXWrAJ+ o81w== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xs8lnGt1gnrX0sWi1IWRRBjvb8lzRT6cWL6iex/H8PE=; fh=zPiygMGDDJ0PgHV6ALeHuvu4U5CVahebZwDFdLUtYz0=; b=ow/RHfLxAMdeiz4X3bgpnNUNHkRCRiL4AxVd4UV1kb17GszgRQD4/pY6i5LW2gfCYC 33cVVAivGRAVhUgBdfPVGrsWpppZDRsLvMZnBcUhi3sPvpEXKe+D+mpQzi8ewQxP5jsG MW6bsiiD5joKDtw4jFqCnGHzI4wq5VmV8Fp79iM56Z9vSGnSl4xLDgFW7ekRHGLjv7Fm 5ZW6pnl8cVVFTm3+tBrcRRljZxfslg2SqScssr93uj2TFSqxYU1ImENPuTsWlLnTJlGO 2kRl+UNWyS7ohX0XYaiUYL93FFXRNPjW/pzwk5OyuCW3OcWzcQv+3/njpHIl1aQdeAjm E93Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XrQsUwHn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id f184-20020a0dc3c1000000b005a83af25d58si16259143ywd.359.2023.10.26.12.37.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 12:37:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XrQsUwHn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id ACF7C83C759F; Thu, 26 Oct 2023 12:37:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231896AbjJZThq (ORCPT + 99 others); Thu, 26 Oct 2023 15:37:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231766AbjJZThp (ORCPT ); Thu, 26 Oct 2023 15:37:45 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7737C121; Thu, 26 Oct 2023 12:37:43 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E91E6C433C8; Thu, 26 Oct 2023 19:37:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698349063; bh=uvyIqOBKNfkFHe0q/wlli3JBnyltBarFakFaKmvDmFQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XrQsUwHnBd2TcXUEDuaqTNHZ1Hp9O8Hws1njlwmYTNGZfI6KqoNWhSB0i3NBasXkd p1V/M80GAPwhhHBshBMFU0rFFB+LTiSxD6+9cqfiu5T7mDbW587X/fE4vBoMgB5fUR jthL2hlDcon2dyul3HJ8W7XI9yIkYVKCchyfSDjhOkKkYRD7d1mR4Lw84sqquCTGHA LyMQ+lqbS1G8A2u5yq7Bk6i6LssU+2PGxHu6/Nm9QCohVFx29ivMi7boKa55TOhgyF ChlcVVz166XfVf7tisa77/G6bUoR6plUb9gwKbf8dHu9pjX10l3/c0YWtETHbMtN7d 2+ICEayNhHpYg== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id D93054035D; Thu, 26 Oct 2023 16:37:39 -0300 (-03) Date: Thu, 26 Oct 2023 16:37:39 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Jiri Olsa , Peter Zijlstra , Ian Rogers , Adrian Hunter , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Linus Torvalds , Stephane Eranian , Masami Hiramatsu , linux-toolchains@vger.kernel.org, linux-trace-devel@vger.kernel.org Subject: Re: [PATCH 13/48] perf annotate: Add annotate_get_insn_location() Message-ID: References: <20231012035111.676789-1-namhyung@kernel.org> <20231012035111.676789-14-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 26 Oct 2023 12:37:55 -0700 (PDT) Em Wed, Oct 25, 2023 at 10:26:32PM -0700, Namhyung Kim escreveu: > On Tue, Oct 24, 2023 at 12:10 PM Namhyung Kim wrote: > > On Mon, Oct 23, 2023 at 9:38 AM Arnaldo Carvalho de Melo wrote: > > > Em Wed, Oct 11, 2023 at 08:50:36PM -0700, Namhyung Kim escreveu: > > > > The annotate_get_insn_location() is to get the detailed information of > > > > instruction locations like registers and offset. It has source and > > > > target operands locations in an array. Each operand can have a > > > > register and an offset. The offset is meaningful when mem_ref flag is > > > > set. > > > This needs to be enclosed in HAVE_DWARF_SUPPORT, as the build is failing > > > in systems where this isn't available, see patch below. > > Thanks for the test and the patch, will add it to v2. > Hmm.. I think this function can work without DWARF. > If the only problem is get_dwarf_regnum() probably > I can add a dummy function when libdw is not found. > Maybe I need to use arch reg number here and > convert to DWARF later. That can be a possibility, but the interesting thing is to try to run 'make -C tools/perf build-test' regularly to catch these builds without some of the components, I bet this one: make_no_libelf := NO_LIBELF=1 As my container builds did, as that is one of the things built there. One other suggestion would be to add some warning when the required components to build the data profiling feature are not present. - Arnaldo