Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3537402ybz; Mon, 20 Apr 2020 04:55:12 -0700 (PDT) X-Google-Smtp-Source: APiQypIHy7H4KcMQLmDfAiJvG0+/RB6iQUKAGzqd8jzjpgIGfk2lSaNq5jbUvdJxWT9ZvYWSh+XY X-Received: by 2002:a05:6402:19b0:: with SMTP id o16mr13627365edz.162.1587383711959; Mon, 20 Apr 2020 04:55:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587383711; cv=none; d=google.com; s=arc-20160816; b=gj9tpOAaAHXgUba27SMXYwl86OWm+nDR/7oQqv12EGGHFVin2FJs8l8ZX/uHn2oWdj wa5cO0FRtptXec2olL1BITMt/pKynCMLvwAD//jY6zntSLPp9Nv2hFPFXSlWMoMd9ZW3 IwA+HZvueIXPsGdckOmkAS0LMHq6qHNrNvWaeQ0pyX9QPXTPBqR4PQj1rO1ZFFmHuxbs oingGhJDRoUSIcaIT9JXLlCLQT2QpYxd8NOV7bIGTR36vZWmh75rOZ1b3yf0fgNhv5qo bG0HRHB5Yv1BqQNVFZF0fzwsD1QOAq7q9kCdvWurdRnrmLKoVgzEPcGarnXy9j9NbIGE AOlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=l+iQ7wZ+pzh0yBG2VUUSiXKJBXQuTkRcYmSGs0LK6PE=; b=fAE/Q+gZ0TtRmT5dumziVXdQ8cSX4ZzYWILDuCRYSULO0D14bFosND3TfapTQxEYCL WGBDm/EVXhnZd288SNvFHNSeJbLkmK9vc8sBIW3GWT7oAotIodwoqpuIcwEuVaQ+qlQQ jpxdM5hSY4CXvhM3YhReyqOy3iydib/aM/7d8q7DAyTvUSIZmuCawitcqLn3cGD8YNLo 0SgIXkDp/8dVHalxEAmL8w52jRH2g0T7RbH/EgTa7XmohDNfMvxJws87mH2iPSziRrDw SE/rBHIMuqM5zde2zwieMr/mL2zDrYdn1Y2GxiBBahRnoB+iFqorpXQeFk3/zxvGh5Zu Z5uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="VtS9m/Mp"; 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 a19si374927edr.254.2020.04.20.04.54.49; Mon, 20 Apr 2020 04:55:11 -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=@kernel.org header.s=default header.b="VtS9m/Mp"; 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 S1726515AbgDTLxk (ORCPT + 99 others); Mon, 20 Apr 2020 07:53:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:36720 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725886AbgDTLxi (ORCPT ); Mon, 20 Apr 2020 07:53:38 -0400 Received: from quaco.ghostprotocols.net (unknown [179.97.37.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9CB9221D94; Mon, 20 Apr 2020 11:53:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587383617; bh=NZ2s3E1f67YnyHKyGwrL2P4yPLowkmxMtpl5S3GHJk8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VtS9m/MpvSy7dzuaa0UNWkPvcRKsDDDG4hiw+NwxuT1uICr8dbRsaFr7ywCs5z5IO zkyuE7Uynxke/cKblnasqf5VeyPWHFrM888QGtdOamL7O8HphvKexr35HkGspsxFf6 LYGtptEEUOymv7M6UourUZj9zcwvtzw5zIMzlLR4= From: Arnaldo Carvalho de Melo To: Ingo Molnar , Thomas Gleixner Cc: Jiri Olsa , Namhyung Kim , Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Song Liu , Alexei Starovoitov , Andrii Nakryiko , =?UTF-8?q?Bj=C3=83=C2=B6rn=20T=C3=83=C2=B6pel?= , Daniel Borkmann , "David S . Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , Martin KaFai Lau , Yonghong Song , Arnaldo Carvalho de Melo Subject: [PATCH 03/60] perf machine: Set ksymbol dso as loaded on arrival Date: Mon, 20 Apr 2020 08:52:19 -0300 Message-Id: <20200420115316.18781-4-acme@kernel.org> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200420115316.18781-1-acme@kernel.org> References: <20200420115316.18781-1-acme@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiri Olsa There's no special load action for ksymbol data on map__load/dso__load action, where the kernel is getting loaded. It only gets confused with kernel kallsyms/vmlinux load for bpf object, which fails and could mess up with the map. Disabling any further load of the map for ksymbol related dso/map. Signed-off-by: Jiri Olsa Acked-by: Song Liu Cc: Alexei Starovoitov Cc: Andrii Nakryiko Cc: Björn Töpel Cc: Daniel Borkmann Cc: David S. Miller Cc: Jakub Kicinski Cc: Jesper Dangaard Brouer Cc: John Fastabend Cc: Martin KaFai Lau Cc: Yonghong Song Link: https://lore.kernel.org/bpf/20200312195610.346362-15-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/machine.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index 97142e9671be..06aa4e4db63d 100644 --- a/tools/perf/util/machine.c +++ b/tools/perf/util/machine.c @@ -759,6 +759,7 @@ static int machine__process_ksymbol_register(struct machine *machine, map->start = event->ksymbol.addr; map->end = map->start + event->ksymbol.len; maps__insert(&machine->kmaps, map); + dso__set_loaded(dso); } sym = symbol__new(map->map_ip(map, map->start), -- 2.21.1