* [PATCH v1 4/9] early pt: boot option early_pt_buf_len
@ 2017-09-30 3:28 Luming Yu
0 siblings, 0 replies; only message in thread
From: Luming Yu @ 2017-09-30 3:28 UTC (permalink / raw)
To: LKML
[-- Attachment #1: Type: text/plain, Size: 79 bytes --]
for early pt buffer size setup
Signed-off-by: Luming Yu <luming.yu@intel.com>
[-- Attachment #2: 0004-boot-option-early_pt_buf_len-for-early-pt-buffer-siz.patch --]
[-- Type: application/octet-stream, Size: 949 bytes --]
From e530ca52e022c49b30bc87cd156e6db4cbddc5c1 Mon Sep 17 00:00:00 2001
From: Luming Yu <luming.yu@intel.com>
Date: Fri, 29 Sep 2017 22:03:02 +0800
Subject: [PATCH v1 4/9] early pt: boot option early_pt_buf_len
for early pt buffer size setup
Signed-off-by: Luming Yu <luming.yu@intel.com>
---
arch/x86/events/intel/early_pt.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/x86/events/intel/early_pt.c b/arch/x86/events/intel/early_pt.c
index 16ed03c..36b80b1 100644
--- a/arch/x86/events/intel/early_pt.c
+++ b/arch/x86/events/intel/early_pt.c
@@ -348,3 +348,11 @@ static int __init early_pt_enable(char *str)
}
early_param("early_pt", early_pt_enable);
+static int __init early_pt_buf_len_setup(char *str)
+{
+ unsigned size = memparse(str, &str);
+ if (get_order(size) > early_pt_buffer_order)
+ early_pt_buffer_order = get_order(size);
+ return 0;
+}
+early_param("early_pt_buf_len", early_pt_buf_len_setup);
--
2.7.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-09-30 3:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-30 3:28 [PATCH v1 4/9] early pt: boot option early_pt_buf_len Luming Yu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.