Received: by 10.223.185.116 with SMTP id b49csp1480852wrg; Fri, 16 Feb 2018 21:52:39 -0800 (PST) X-Google-Smtp-Source: AH8x226TUjiTElYahLgbDCfzEZqHyENlMIiErYNFZ9FGL4nDzxAwa/BRpk8idGFCnexEKeN9B+c9 X-Received: by 2002:a17:902:5a4a:: with SMTP id f10-v6mr7951849plm.308.1518846759766; Fri, 16 Feb 2018 21:52:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518846759; cv=none; d=google.com; s=arc-20160816; b=yxq+60TEVoEyW3V09hGQFMqLNurg0G6YDxnQzs44CJjrbX7fykEJLC2rmgH8axQXBi 4AnJn9piwSdntEMEyhHoPJA2yH9VFfIdWgAb7aQ+QmBgTOjnRwffvHW8lQ8WoUM40mYf VnK2onmELEaEpi5Abz20n9Kr1dmDOUo7iiV3a7zgUG/LBkYVTjd7V3y9j3iVTs9r5Abw gcFh/lYqwS6WYpo4kvIId0ztWy5G2i8S06Qd2cGiMAqnIBMLKkor+XrTmI1/l/LG7q6Z LIOv1PXUy+XHkrtDHmuowtjH00Av/YBbV4vcbefZnPGmpuzaOYELx8sha4p7Pgl/eDFi +chQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=IWm9agPdY1nAcuhrhrGrxbGtl7xaYtn9TlEruFG9tyo=; b=q+wUwWlLsJEHah7G6AhXAR5zbq3wtLmF+Uuw79w8h9DkcRDkAd32h1fmVUD38DdXH3 g3ZdUCQmSkPgboiggukuShAPIy78DkpI/7ZximaWfIxs5o0HoyhTRPKt4oLp+FjgpSys v9xYFO+eiWBjiAS1SSJILJnXWwn+0v82dBDpLcn9W0dR+WytfBL6lQKTNONW+mxKb5I3 n+sdQG350NSTl/syBBt13IlCIAuMS+KQ75I8ZlrMBpUemuMXv5f4WpAMUgbPr1b4sV6S 0qoM75JxU90fF3q9GAtyYeUUGBF4tZbXbI6Jn2CHeuxIpVEu9GwPifcqdUbW7ApV6eKI 8bLA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h8-v6si4864333pli.716.2018.02.16.21.52.25; Fri, 16 Feb 2018 21:52:39 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751345AbeBQFuf (ORCPT + 99 others); Sat, 17 Feb 2018 00:50:35 -0500 Received: from mga02.intel.com ([134.134.136.20]:59982 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751204AbeBQFtY (ORCPT ); Sat, 17 Feb 2018 00:49:24 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Feb 2018 21:49:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,523,1511856000"; d="scan'208";a="20863402" Received: from gvt-dell.bj.intel.com (HELO gvt-dell-host.bj.intel.com) ([10.238.154.59]) by fmsmga002.fm.intel.com with ESMTP; 16 Feb 2018 21:49:22 -0800 From: changbin.du@intel.com To: corbet@lwn.net, rostedt@goodmis.org Cc: mingo@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Changbin Du Subject: [PATCH 13/17] trace doc: convert trace/events-msr.txt to rst format Date: Sat, 17 Feb 2018 13:39:46 +0800 Message-Id: <1518845990-20733-14-git-send-email-changbin.du@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518845990-20733-1-git-send-email-changbin.du@intel.com> References: <1518845990-20733-1-git-send-email-changbin.du@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/events-msr.rst | 40 ++++++++++++++++++++++++++++++++++++++ Documentation/trace/events-msr.txt | 37 ----------------------------------- Documentation/trace/index.rst | 1 + 3 files changed, 41 insertions(+), 37 deletions(-) create mode 100644 Documentation/trace/events-msr.rst delete mode 100644 Documentation/trace/events-msr.txt diff --git a/Documentation/trace/events-msr.rst b/Documentation/trace/events-msr.rst new file mode 100644 index 0000000..e938aa0 --- /dev/null +++ b/Documentation/trace/events-msr.rst @@ -0,0 +1,40 @@ +================ +MSR Trace Events +================ + +The x86 kernel supports tracing most MSR (Model Specific Register) accesses. +To see the definition of the MSRs on Intel systems please see the SDM +at http://www.intel.com/sdm (Volume 3) + +Available trace points: + +/sys/kernel/debug/tracing/events/msr/ + +Trace MSR reads: + +read_msr + + - msr: MSR number + - val: Value written + - failed: 1 if the access failed, otherwise 0 + + +Trace MSR writes: + +write_msr + + - msr: MSR number + - val: Value written + - failed: 1 if the access failed, otherwise 0 + + +Trace RDPMC in kernel: + +rdpmc + +The trace data can be post processed with the postprocess/decode_msr.py script:: + + cat /sys/kernel/debug/tracing/trace | decode_msr.py /usr/src/linux/include/asm/msr-index.h + +to add symbolic MSR names. + diff --git a/Documentation/trace/events-msr.txt b/Documentation/trace/events-msr.txt deleted file mode 100644 index 78c383b..0000000 --- a/Documentation/trace/events-msr.txt +++ /dev/null @@ -1,37 +0,0 @@ - -The x86 kernel supports tracing most MSR (Model Specific Register) accesses. -To see the definition of the MSRs on Intel systems please see the SDM -at http://www.intel.com/sdm (Volume 3) - -Available trace points: - -/sys/kernel/debug/tracing/events/msr/ - -Trace MSR reads - -read_msr - -msr: MSR number -val: Value written -failed: 1 if the access failed, otherwise 0 - - -Trace MSR writes - -write_msr - -msr: MSR number -val: Value written -failed: 1 if the access failed, otherwise 0 - - -Trace RDPMC in kernel - -rdpmc - -The trace data can be post processed with the postprocess/decode_msr.py script - -cat /sys/kernel/debug/tracing/trace | decode_msr.py /usr/src/linux/include/asm/msr-index.h - -to add symbolic MSR names. - diff --git a/Documentation/trace/index.rst b/Documentation/trace/index.rst index f4a8fbc..307468d 100644 --- a/Documentation/trace/index.rst +++ b/Documentation/trace/index.rst @@ -16,3 +16,4 @@ Linux Tracing Technologies events-kmem events-power events-nmi + events-msr -- 2.7.4