Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp3066584rdb; Mon, 4 Dec 2023 16:11:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjGONMAhxrHDbXOJLMkOi4KjalTl6PeoqgYhdybQNo4RsQ9zOUj/gllCBk+ZKwd8KcTO0y X-Received: by 2002:a17:90a:7444:b0:286:da6d:c41 with SMTP id o4-20020a17090a744400b00286da6d0c41mr465604pjk.70.1701735069095; Mon, 04 Dec 2023 16:11:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701735069; cv=none; d=google.com; s=arc-20160816; b=nUC04U3wjbGmKh+8qOfjTaUT/Dfm81zKg+f2adK1VJH81Snt1iAywdjbmRD5wKJWsh fT562lfRpdnf4F7m65rSNpo2TBjNA+DowB0z+WbSygveJKu/s7gkobqbsUqGj/nTS6Em o02ztpvMwgCtOAPWL887B8CCfRFFAG1bV0XUtjGSkbOlKmqWRoGmRc1V4d1U/W3l5f1Z 5AndKt6IAzO6ch838mH2h+G9a2K2DpOpUW3ThGIASpoxZIoatAienU6XEzwrgmfMd1BL l5JmoDarjGI5iR5QabvXYHbjeXBasYZFWRdICmw/R818OMwdePVZaVQ3rEtE8ti++bvA 059A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=VR7QKw+KW9ghQWzaNzcYdVrvlbYdOAuadU3JAzAHqRY=; fh=Cq5OlNTpYU1+b8huyLU2HMRRl4BZtHfID55AVmSeuY4=; b=X18KTt7mc6nFdx6JXp/iCNux+LJlRiWDaPthRaeNICw8e9kliX4HSe4YOToJUtRfly fhcH/kEpKHLdAk5J3OUDJ7KIXD726iFl5Xl+PCLjebpRQD5NSXudyGmils0C9PB5sWTH gLXtNBi9Eao4X73cvBi+jEQPSC+X3AcDC9qaOzNR5pyG5hi2wwyk19q4neIl5XkDLE8v d7403JK57swbW9hf3LWvEI2SPFD7PpmFVAhufbeparTBcpMZgboBJKSAr1lG8+LM/3gx YIlq/mdwGIueuj5gS8lNFGQF6EeazU0M3YJV3g57aRl/bfCMNN6Lhosd7qKCLBUsQ6p7 zOlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id fy22-20020a17090b021600b00285ebeed85fsi2952448pjb.123.2023.12.04.16.11.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 16:11:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id A7774807F487; Mon, 4 Dec 2023 16:10:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343576AbjLEAKa convert rfc822-to-8bit (ORCPT + 99 others); Mon, 4 Dec 2023 19:10:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234842AbjLEAK3 (ORCPT ); Mon, 4 Dec 2023 19:10:29 -0500 Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5AFFF0; Mon, 4 Dec 2023 16:10:35 -0800 (PST) Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-517ab9a4a13so2916208a12.1; Mon, 04 Dec 2023 16:10:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701735035; x=1702339835; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qNrtMZXRyIGyhkjT4JI1KSJerGhWTgoNl7m2Gv0tWQ8=; b=d95sEYLXlzwo5ZENkQxq/8Q5V6ecULN8XUf8zbv9VBWwIgpSg0rH77Q2SM9eCAA6Ws fAUorDaYeJeMWDrpcbEDra928bX8YDQhODcNE+A0o3s06FQzZhtfQIvoidnqGN6Fszkk XDEVErqNWw95pIlnEfq/3W3C3m32po/hV/jV9gB1D3sKAZKaOfFsWDt/6jBOW33bUbeI molWnZT29nOLv4i/EYz7WQ+5yAfBGgZQzFkCwq3YbizXEaYeywKwLczB925bnAxPfG98 hJ+uzguBNBIE54Ddi57yXxQQrMF3lK37K/37TSEveNHPycDx8u8pG8igR1GkMzq4gwwm GmIQ== X-Gm-Message-State: AOJu0YweMnoMJ0IQHu1inSJU6OxbS+Ea3PmYbpSrqHqU0CVWA6M9XWI8 fRWBxcD2iksmZX/KllDD+yVhn6IRM+2Gt3TQBFVyP2QKqNs= X-Received: by 2002:a17:90a:8005:b0:286:6cc1:3f1f with SMTP id b5-20020a17090a800500b002866cc13f1fmr476637pjn.86.1701735035239; Mon, 04 Dec 2023 16:10:35 -0800 (PST) MIME-Version: 1.0 References: <20231012035111.676789-1-namhyung@kernel.org> <20231012035111.676789-37-namhyung@kernel.org> <852644CC-CF12-475A-A7D2-84EFDCE9D248@linux.vnet.ibm.com> In-Reply-To: <852644CC-CF12-475A-A7D2-84EFDCE9D248@linux.vnet.ibm.com> From: Namhyung Kim Date: Mon, 4 Dec 2023 16:10:24 -0800 Message-ID: Subject: Re: [PATCH 36/48] perf annotate-data: Introduce struct data_loc_info To: Athira Rajeev Cc: Arnaldo Carvalho de Melo , Ian Rogers , Jiri Olsa , Peter Zijlstra , Adrian Hunter , Ingo Molnar , LKML , linux-perf-users , Linus Torvalds , Stephane Eranian , Masami Hiramatsu , linux-toolchains@vger.kernel.org, linux-trace-devel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Mon, 04 Dec 2023 16:10:49 -0800 (PST) Hello, On Sun, Dec 3, 2023 at 8:22 AM Athira Rajeev wrote: > Hi Namhyung, > > I have a thought there. For the type and typeoff sort keys to work, we depend on Dwarf support in perf, right ? > If the perf is built without dwarf support ( either due to older elfutils or missing libdw.h ) , find_data_type will return NULL and we will get “unknown” for Data Type and Data Type Offset in the result. Yes, right. > > Can we add a pr_debug line in find_data_type (which is in else part for HAVE_DWARF_SUPPORT) so that user can understand if “unknown” is due to missing devel during the build ? Or may be restrict -s type,typeoff if dwarf support is missing ? I think it's better to add a warning if DWARF is not supported. Thanks for your review! Namhyung