From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ABB24C4360C for ; Thu, 26 Sep 2019 22:57:46 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 633C2206B7 for ; Thu, 26 Sep 2019 22:57:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 633C2206B7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.2) (envelope-from ) id 1iDchD-0007B8-Lu; Thu, 26 Sep 2019 18:57:11 -0400 Received: from omr1.cc.ipv6.vt.edu ([2607:b400:92:8300:0:c6:2117:b0e] helo=omr1.cc.vt.edu) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) (envelope-from ) id 1iDchA-0007B1-7J for kernelnewbies@kernelnewbies.org; Thu, 26 Sep 2019 18:57:08 -0400 Received: from mr4.cc.vt.edu (inbound.smtp.ipv6.vt.edu [IPv6:2607:b400:92:9:0:9d:8fcb:4116]) by omr1.cc.vt.edu (8.14.4/8.14.4) with ESMTP id x8QMv5bY001267 for ; Thu, 26 Sep 2019 18:57:06 -0400 Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by mr4.cc.vt.edu (8.14.7/8.14.7) with ESMTP id x8QMv0MT015157 for ; Thu, 26 Sep 2019 18:57:05 -0400 Received: by mail-qt1-f200.google.com with SMTP id s14so3989921qtn.4 for ; Thu, 26 Sep 2019 15:57:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=N/Mj+i2picSu9Bxp2NSox31XCNQAB/yB6qr3IF/ikpY=; b=Uf4aMpbJWOFaWXX8EIPm9zUngYW2qHthcf0cnD3en+ul70XycC+zG4+AkPfQozJswp IcrhH4uO7Prfp1Wj950tqTerWHhnNGr3+fVACvQp8L++uHcDIvkQzzdkKYxCnpPHNJ9q GMPNm/8kuBiAbbFkPdkyp/nDl7PMQQWc3UypIQyArG/YbIZTZaFRN3mxJfZbu0mN6egE 1Jw8zws27x0PZG04QR+pVvS0Z55EjYfbaViOOAcy5vB9ZIT9tJvBtmEmKY3ylhFauqsT Qt9/n6AcU1PDR3w1+r2kpEOx60OhSR8Hlx/0GjW2bdcVmFA5bVZEy4SV+DVdxyX4+tVA F7Wg== X-Gm-Message-State: APjAAAVpt+gmErtKu3ad3f/qQLHRP5gD285dS0t9ewIOwZJ5B8Fgb3df P+BsSTUJ5nyLLivQmyXCvuIAWaV1i3qE5/uO/XJbwHwEwrh95C9dbreOja99TgmlrvUM9s88jS/ GNMvHvc/4FhB0cMJNFfpOzbOc5yGqQQrtAUF6v9E= X-Received: by 2002:a0c:f787:: with SMTP id s7mr4962155qvn.221.1569538620209; Thu, 26 Sep 2019 15:57:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzT4XZZlR8Cr+6CAc7x+7S2NzZkhJnjVdB/FDLV8w9LVYeph6dXHfv9OmAzAR3PyG2HP2pEvA== X-Received: by 2002:a0c:f787:: with SMTP id s7mr4962131qvn.221.1569538619829; Thu, 26 Sep 2019 15:56:59 -0700 (PDT) Received: from turing-police ([2601:5c0:c001:4341::359]) by smtp.gmail.com with ESMTPSA id c185sm350260qkg.74.2019.09.26.15.56.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2019 15:56:58 -0700 (PDT) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Brock Subject: Re: Generating Log of Guest Physical Addresses from a Kernel Function and Perform Analysis at Runtime In-Reply-To: <06c386b11a18e72cf817bbcb86e5a55205b6907a.camel@polynubstudios.com> References: <242780.1569323798@turing-police> <264319.1569351321@turing-police> <20190925093824.GA1480764@kroah.com> <20190925170814.GB1499213@kroah.com> <20190925180437.GA26843@www2.mrbrklyn.com> <06c386b11a18e72cf817bbcb86e5a55205b6907a.camel@polynubstudios.com> Mime-Version: 1.0 Date: Thu, 26 Sep 2019 18:56:57 -0400 Message-ID: <11620.1569538617@turing-police> Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============4003253201078606950==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============4003253201078606950== Content-Type: multipart/signed; boundary="==_Exmh_1569538617_9351P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1569538617_9351P Content-Type: text/plain; charset=us-ascii On Thu, 26 Sep 2019 20:05:57 +1000, Brock said: > On Thu, 2019-09-26 at 15:45 +0900, Sahibzada Irfanullah wrote: > > Thank you very for your help. I have checked the ftrace, and perf. I > > think it won't work for me.I am not analyzing/tracing the the kernel. > > I want to develop my own dynamic tool like Pin Tool (or moudule > > which can be loaded/unloaded at run time dynamically), so that I can > > easily tune/modify for different purposes , and to get any type of > > specific information from the kernel/KVM, espcecially in the context > > of virtualization (guest and/or host memory management). That's why I > > take a start from generating the log of guest physical addresses from > > the kernel by saving it to the file; with the passage of time, I will > > add the funcationalities to it. > > Thank you. > I'm not sure if it's hardware addresses but you can get kernel/user/kvm > page fault information with: I admit I'm still mystified by the requirement for the hardware address rather than the virtual address, when doing any sort of analytics is going to require mapping back to a process and virtual address - and possibly incorrectly (consider a page fault from an instruction in a shared library that's mmap'ed into 250 running processes, like glibc...) --==_Exmh_1569538617_9351P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBXY1COQdmEQWDXROgAQJB5xAAgyi9hKuQwVOweZ+sOe1HNokvlGRGRJG/ hHFXp4iyw8I3LDbbZnk8gQUa8pg+nRnfaENPU+lpVUpXyfX3ayaQPgs11TPJ0XeK 3PbbEpOkDCj7BnIxtJcr4/G9rY+3PCfWrHkC/n+EyrBeiMcnyplkTQXq6befrR7r PlIedhZybdCpoTb5RFr+H4uSrIVxw687G5OA/RjfPNx+wywUXO1RIbLDmozModa7 K3csCpfsx3ekLPVat+zivWksQ0j6cR3m/6WJAFlNTCxtiwJZLUisE9mjcyZXpJ+W q7FwQt7IZgjiHUeF49BCiRtZk+1XGVxzTK5X1kszTs6Ps3IsXu99cQcdbWnac0/u t+2UX1L5RoClSs+vDsULzedbSiH+dVglDKl/idG7gO6XIZWjdGqCnZGXtsHlegGZ GbLrehOnxIQR0zffKLpHrlAiBDP4VVjBMnKmCCiZlUyxvSgWwFkRhuvQV/HZIJU3 r2ZqkJkHOnXn23NYFX5euqIANtu+R+Qa8MUszULNEccGefyk2xsPZ/FXKlRos4er lPbik5lfBWqkOvAARj24bbNux6wBvESXVX+XDDzFj3jt0dl+w7hwxTCs4215Mw8z d5OrbYbK5ha/ughEjD8N0Co17YdR09ngKAyjYFq6iKZeo1AkAUA/IYXm96cV8dLm Hs9eBG71tQo= =V6+V -----END PGP SIGNATURE----- --==_Exmh_1569538617_9351P-- --===============4003253201078606950== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============4003253201078606950==--