Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2082088imu; Tue, 6 Nov 2018 08:49:55 -0800 (PST) X-Google-Smtp-Source: AJdET5dPq9hqWfDIozS1h5goDlxPnHqJ4WjhDXr5NV0SL3Jj73+6hqV+/lPG2dF+8wYJsEK39gNf X-Received: by 2002:a17:902:7d98:: with SMTP id a24-v6mr27175673plm.271.1541522995563; Tue, 06 Nov 2018 08:49:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541522995; cv=none; d=google.com; s=arc-20160816; b=nk+85CbpvKwg7Fbjwqe3+ULlDf72F7sEnJn/V4lDmjSt4cjip8IeEtiOnFBMo0d7uM VVdbsOd+6oRIG3bkn6rS7GWHl/mxfS1r2B0wA6USvz2pmtTqDpf65/3gYCxEENSLmTlK SG88J8ag0nCqsC338WLQKtxguxqdb/Lfx8Iu2texOmfVgoFg2XKcPS8e9ecCvK90Exqh c+x1o3EKku/N1uTj/yzLrkAE7XBU/sPqUm4WJhJo2fGxamVv7gIA1mon3GURiffS6fTC TnKoQGRHEDlGRjGa7UycrBpeBcRc1M9+QMaCltscuihMje0vu1LChKSzYxjsfzv/AZbh TaZg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=R4I+QeH9QaJVoOpGMRaMTq5f8O3Ti258hMuqCAk7+Dk=; b=kPgWRio/jju0uLmGM7PKcYpd1TMKmmDHsUAAaf/DnDtd0VdSj6vfopepeEBrs3detq 5qbvzQufILQ7oW1G5VnlITFrQ1IUtkCnzht91MGx5IxX9AII6JmjJuFI5q/og3z3JQfg eUnp1cIhkkJY1V+6exGgyngVu5zREJj2LY9eM6zmEq60fIqxj46gA2S6YkQL9mxPK0h8 xg25igcBcNw+RP5bHPhiTxE7bq5j4J9b0bxUlZXUUXa+BB/yR18PdVMhEgaE9m2ba7oR pS3KczszC6J+C2m9DtUOmcOOXFBa5dYiIG316HbSzjejnh/kmV14ZHXJhbuE9U6y/5k6 61FQ== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e38-v6si26089081pgm.281.2018.11.06.08.49.40; Tue, 06 Nov 2018 08:49:55 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389387AbeKGCNo (ORCPT + 99 others); Tue, 6 Nov 2018 21:13:44 -0500 Received: from mga05.intel.com ([192.55.52.43]:58706 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389262AbeKGCNo (ORCPT ); Tue, 6 Nov 2018 21:13:44 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Nov 2018 08:47:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,472,1534834800"; d="scan'208";a="89891379" Received: from linux.intel.com ([10.54.29.200]) by orsmga008.jf.intel.com with ESMTP; 06 Nov 2018 08:47:40 -0800 Received: from [10.252.131.165] (kliang2-mobl1.ccr.corp.intel.com [10.252.131.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id C7191580213; Tue, 6 Nov 2018 08:47:39 -0800 (PST) Subject: Re: [PATCH 1/2] perf: Add munmap callback To: Stephane Eranian Cc: Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Arnaldo Carvalho de Melo , LKML , Borislav Petkov , Andi Kleen References: <20181024151116.30935-1-kan.liang@linux.intel.com> From: "Liang, Kan" Message-ID: <46719ae1-7095-f3de-02fe-bc30a36ac523@linux.intel.com> Date: Tue, 6 Nov 2018 11:47:38 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/6/2018 10:00 AM, Stephane Eranian wrote: >>> /* >>> * mmap 1 page at the location of the unmap page (should reuse virtual space) >>> * This creates a continuous region built from two mmaps and >>> potentially two different sources >>> * especially with jitted runtimes >>> */ >> The two mmaps are both anon. As my understanding, we cannot symbolize >> from the anonymous address, can we? > Can't we build the same test case using an actual file mapping (both > mmap from the same file)? > If they are from same file, both mmap have same symbolization name. We don't need to distinguish them either. I thought the symbolization issue can only happen when two mmaps are from different sources. Right? Thanks, Kan