Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3796165ybv; Mon, 10 Feb 2020 06:34:33 -0800 (PST) X-Google-Smtp-Source: APXvYqxeXtErYiQ3OyewXfQTzhmcs8ScytW3lNe4kiAPtUU579erj/inJy8YIgSdiejmXCTCOaNI X-Received: by 2002:aca:388:: with SMTP id 130mr960759oid.89.1581345273021; Mon, 10 Feb 2020 06:34:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581345273; cv=none; d=google.com; s=arc-20160816; b=XWOuBbLGI3mIxZdNEUqlkke13wwQmCWA30lqwN+zhkdzY++CWGKuQxLRRvjMLLjnFZ S/Iv2dzGiWAluTHlr69gvkLKQEZGW6Hf0GXX5yoW32sh2W4XGnVXBciOeNqxBFM2Oxet 8UbG0DGsyxQg0oMqloL5mXIKl0LBFoe2h+TS8cYi8V6jeDHd2ZG31GDIJ+mL5nvLqF0m Q4aGIrFPxe9/nmZtapdFQ7XkWV31bFkMz4U/oQCQrQKgRvboPf2u3YMTH5bnapLxUGTC fFzMocTVF3AR/PIjAKQvzMCd8j3WGAZ2ffcxu8Gs0k53kJZnGSV0wf0ujuzFKA+uox9V W+6g== 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; bh=GTqIYsGjicfgFX+BVENkRC3J/x2ABpcJtWmZRMFKgOM=; b=JAsPvBzYErhfcP5Xf7w/OO7ojgJRbsg5Pz2wRg8XQnNiLf/UiPy/WGHIFyWqhytNAe fsQSkTdfsHpOx7QRlZV9Q8VeaOBgLX/wuI+s5cMmX+dc3UnWfeajjgjioZQNvX+A3KXb 4e7Ca5ctD8luNgcdOOsuy5PE5NaEUkiy0csgyMyvq4BjkpDMgLH12rQjVFkG53wZcxrr dM2wIyKqpHNO19vqdqSBCC6aM4+dpf4MyZ9JWknb5zOWPfisWfpihOjDdkpere8Jge+n tGlQJNQbuHxLgDYS0jNnUq5TUD/G1SOD5Dp2EN7x5WXfzd3dDPAL4I7VLvq+G5mqvTXH eSJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9si222303oie.148.2020.02.10.06.34.21; Mon, 10 Feb 2020 06:34:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728714AbgBJOca convert rfc822-to-8bit (ORCPT + 99 others); Mon, 10 Feb 2020 09:32:30 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:38630 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727120AbgBJOca (ORCPT ); Mon, 10 Feb 2020 09:32:30 -0500 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-365-g7zpNf3-P2ikCFDTUv9uWA-1; Mon, 10 Feb 2020 09:32:25 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A19A510054E3; Mon, 10 Feb 2020 14:32:23 +0000 (UTC) Received: from krava.redhat.com (unknown [10.43.17.9]) by smtp.corp.redhat.com (Postfix) with ESMTP id C594F60BF1; Mon, 10 Feb 2020 14:32:21 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Ravi Bangoria , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan Subject: [PATCH 1/4] perf tools: Mark modules dsos with kernel type Date: Mon, 10 Feb 2020 15:32:15 +0100 Message-Id: <20200210143218.24948-2-jolsa@kernel.org> In-Reply-To: <20200210143218.24948-1-jolsa@kernel.org> References: <20200210143218.24948-1-jolsa@kernel.org> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: g7zpNf3-P2ikCFDTUv9uWA-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: kernel.org Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We add kernel module map into machine->kmaps, so it needs to be created as 'struct kmap', which is dependent on its dso having kernel type. Reported-by: Ravi Bangoria Tested-by: Ravi Bangoria Signed-off-by: Jiri Olsa --- 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 c8c5410315e8..e3e5490f6de5 100644 --- a/tools/perf/util/machine.c +++ b/tools/perf/util/machine.c @@ -686,6 +686,7 @@ static struct dso *machine__findnew_module_dso(struct machine *machine, dso__set_module_info(dso, m, machine); dso__set_long_name(dso, strdup(filename), true); + dso->kernel = DSO_TYPE_KERNEL; } dso__get(dso); -- 2.24.1