|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [RFC PATCH v1 06/10] arch-x86/pmu.h: convert ascii art diagram to Unicode
Using `aa2u` tool.
Signed-off-by: Edwin Török <edwin.torok@xxxxxxxxx>
---
xen/include/public/arch-x86/pmu.h | 47 ++++++++++++++++---------------
xen/include/public/pmu.h | 2 +-
2 files changed, 25 insertions(+), 24 deletions(-)
diff --git a/xen/include/public/arch-x86/pmu.h
b/xen/include/public/arch-x86/pmu.h
index bdc8218cbe..92ae4dbb1d 100644
--- a/xen/include/public/arch-x86/pmu.h
+++ b/xen/include/public/arch-x86/pmu.h
@@ -75,8 +75,10 @@ DEFINE_XEN_GUEST_HANDLE(xen_pmu_regs_t);
#define PMU_SAMPLE_PV (1<<3) /* Sample from a PV guest */
/*
- * Architecture-specific information describing the state of the guest at
- * the time of a PMU interrupt.
+ * Architecture-specific information describing state of the guest at
+ * the time of PMU interrupt.
+ * Even if the interrupt arrived while inside Xen, this will always contain
+ * the guest's state.
*/
struct xen_pmu_arch_guest {
union {
@@ -146,11 +148,10 @@ struct xen_pmu_arch {
typedef struct xen_pmu_arch xen_pmu_arch_t;
DEFINE_XEN_GUEST_HANDLE(xen_pmu_arch_t);
-
/* Memory layout:
* ╭─────────────────────╮
* │ struct xen_pmu_data │
- * ╒══════════════╧═════════════════════╧═══════════════════════╕ ◁╮
+ * ╒══════════════╧═════════════════════╧═══════════════════════╕ ◁│
* │ vcpu_id │ │
* ├────────────────────────────────────────────────────────────┤ │
* │ pcpu_id │ │
@@ -207,25 +208,25 @@ DEFINE_XEN_GUEST_HANDLE(xen_pmu_arch_t);
* ┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆ ┆
* ┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆ ┆
* │████████████████████████████████████████████████████████████│ │
- * |############################################################| |
- * |##########.------------------------------.##################| |
- * |##########| struct xen_pmu_hv_stacktrace |##################| |
- * +==========+==============================+==================+ |
- * | ^ [stacktrace_nr-1] | |
- * | : | |
- * | stacktrace[stacktrace_nr] : [0] | |
- * +------------------------------------------------------------+ |
- * | stacktrace_nr | |
- * +------------------------------------------------------------+ |
- * | guest_domain_id | |
- * +------------------------------------------------------------+ |
- * |##pad#######################################################| |
- * +=======+=+===+==================+===========================+ |
- * | guest | | r | regs |##pad######################| |
- * +-------. +---. (xen or guest) |###########################| |
- * | +======================+===========================+ |
- * | |##pad2############################################| | PAGE_SIZE
- * +=========+==================================================+ <.
+ * │████████████████████████████████████████████████████████████│ │
+ * │██████████╭──────────────────────────────╮██████████████████│ │
+ * │██████████│ struct xen_pmu_hv_stacktrace │██████████████████│ │
+ * ╞══════════╧══════════════════════════════╧══════════════════╡ │
+ * │ △ [stacktrace_nr-1] │ │
+ * │ ┆ │ │
+ * │ stacktrace[stacktrace_nr] ┆ [0] │ │
+ * ├────────────────────────────────────────────────────────────┤ │
+ * │ stacktrace_nr │ │
+ * ├────────────────────────────────────────────────────────────┤ │
+ * │ guest_domain_id │ │
+ * ├────────────────────────────────────────────────────────────┤ │
+ * │██pad███████████████████████████████████████████████████████│ │
+ * ╞═══════╤═╤═══╤══════════════════╤═══════════════════════════╡ │
+ * │ guest │ │ r │ regs │██pad██████████████████████│ │
+ * ├───────╯ ├───╯ (xen or guest) │███████████████████████████│ │
+ * │ ╞══════════════════════╧═══════════════════════════╡ │
+ * │ │██pad2████████████████████████████████████████████│ │ PAGE_SIZE
+ * ╘═════════╧══════════════════════════════════════════════════╛ ◁╯
*/
#endif /* __XEN_PUBLIC_ARCH_X86_PMU_H__ */
diff --git a/xen/include/public/pmu.h b/xen/include/public/pmu.h
index 1879914ea6..6366a79169 100644
--- a/xen/include/public/pmu.h
+++ b/xen/include/public/pmu.h
@@ -148,7 +148,7 @@ struct xen_pmu_hv_stacktrace {
* arrives while in Xen.
* */
struct xen_pmu_arch_guest guest;
-#define XEN_PMU_STACKTRACE_PAD 48
+#define XEN_PMU_STACKTRACE_PAD 56
uint8_t pad2[XEN_PMU_STACKTRACE_PAD];
};
--
2.47.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |