[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RFC PATCH v1 03/10] arch-x86/pmu.h: convert ascii art drawing to Unicode



Use `aa2u` (ascii-art-to-unicode from Hackage) to convert to
Unicode box drawing characters.

The full list of supported drawing characters can be seen in the
examples at:
https://github.com/fmthoma/ascii-art-to-unicode/blob/master/src/Text/AsciiArt.hs

For future maintenance: conversion can be done incrementally
(mixing ascii art with already converted Unicode,
 and running the conversion tool again), or by hand.

No functional change.

Signed-off-by: Edwin Török <edwin.torok@xxxxxxxxx>
---
 xen/include/public/arch-x86/pmu.h | 120 +++++++++++++++---------------
 1 file changed, 60 insertions(+), 60 deletions(-)

diff --git a/xen/include/public/arch-x86/pmu.h 
b/xen/include/public/arch-x86/pmu.h
index 8be71a88ee..5bd0aa6f77 100644
--- a/xen/include/public/arch-x86/pmu.h
+++ b/xen/include/public/arch-x86/pmu.h
@@ -130,66 +130,66 @@ 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                                                    |  |
-* +------------------------------------------------------------+  |
-* | domain_id                                                  |  |
-* +------------------------------------------------------------+  |
-* |##pad#######################################################|  |
-* +====+=+===+==================+==============================+  |
-* | pmu| | r | regs             |##pad#########################|  |
-* +----. +---. (xen or guest)   |##############################|  |
-* |      +======================+==============================+  |
-* |      | pmu_flags                                           |  |
-* |      +===+====================+============================+  |
-* |      | l | lapic_lvtpc        |############################|  |
-* |      +---. ###################|##pad#######################|  |
-* |      |     ###################|############################|  |
-* |      +===+=+=======+=====+====+====+=======+========+======+  |
-* |      | c | |       | amd |    |    | intel |         |#####|  |
-* |      +---+ |       .-----.    |    .-------.         |#####|  |
-* |      |     | counter          | fixed_counters       |#####|  | 
-* |      |     +------------------+----------------------+#####|  |
-* |      |     | ctrls            | arch_counters        |#####|  |
-* |      |     +=====+========+===+----------------------+#####|  |
-* |      |     |     | regs[] |  :| global_ctrl          |#####|  |
-* |      |     |     +--------.  :+----------------------+#####|  |
-* |      |     |struct           :| global_ovf_ctrl      |#####|  |
-* |      |     |xen_pmu_cntr_pair:+----------------------+#####|  |
-* |      |     |[counters]       :| global_status        |#####|  |
-* |      |     |                 :+----------------------+#####|  |
-* |      |     |                 :| fixed_ctrl           |#####|  |
-* |      |     |                 :+----------------------+#####|  |
-* |      |     |                 :| ds_area              |#####|  |
-* |      |     |                 :+----------------------+#####|  |
-* |      |     |                 :| pebs_enable          |#pad#|  |
-* |      |     |                 :+----------------------+#####|  |
-* |      |     |                 v| debugctl             |#####|  |
-* |      |     |##################+=======+========+=====+#####|  |
-* |      |     |##################|       | regs[] | :[0]|#####|  |
-* |      |     |##################|       +--------. :   |#####|  |
-* |      |     |##################| uint64_t         :   |#####|  |
-* |      |     |##################| [fixed_counters] :   |#####|  |
-* |      |     |##################|                  :   |#####|  |
-* |      |     |##################|                  :   |#####|  |
-* |      |     |##################| -----------------:   |#####|  |
-* |      |     |##################|  struct          :   |#####|  |
-* |      |     |##################| xen_pmu_cntr_pair:   |#####|  |
-* |      |     +==================+ [arch_counters]  :   +=====+  | 
-* |      |                        |                  :   |     |  |
-* |      |                        |                  v   |     |  |
-* |      |                        +======================+     |  |
-* |      +=====================================================+  |
-* +==========================+=================================+  |
-* |############################################################|  |
-* ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::  :
-* ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::  :
-* |############################################################|  | PAGE_SIZE
-* +=========+==================================================+ <.
+*                ╭─────────────────────╮
+*                │ struct xen_pmu_data │
+* ╒══════════════╧═════════════════════╧═══════════════════════╕ ◁╮
+* │ vcpu_id                                                    │  │
+* ├────────────────────────────────────────────────────────────┤  │
+* │ pcpu_id                                                    │  │
+* ├────────────────────────────────────────────────────────────┤  │
+* │ domain_id                                                  │  │
+* ├────────────────────────────────────────────────────────────┤  │
+* │██pad███████████████████████████████████████████████████████│  │
+* ╞════╤═╤═══╤══════════════════╤══════════════════════════════╡  │
+* │ pmu│ │ r │ regs             │██pad█████████████████████████│  │
+* ├────╯ ├───╯ (xen or guest)   │██████████████████████████████│  │
+* │      ╞══════════════════════╧══════════════════════════════╡  │
+* │      │ pmu_flags                                           │  │
+* │      ╞═══╤════════════════════╤════════════════════════════╡  │
+* │      │ l │ lapic_lvtpc        │████████████████████████████│  │
+* │      ├───╯ ███████████████████│██pad███████████████████████│  │
+* │      │     ███████████████████│████████████████████████████│  │
+* │      ╞═══╤═╤═══════╤═════╤════╪════╤═══════╤═══════════════╡  │
+* │      │ c │ │       │ amd │    │    │ intel │         │█████│  │
+* │      ├───┘ │       ╰─────╯    │    ╰───────╯         │█████│  │
+* │      │     │ counter          │ fixed_counters       │█████│  │
+* │      │     ├──────────────────┼──────────────────────┤█████│  │
+* │      │     │ ctrls            │ arch_counters        │█████│  │
+* │      │     ╞═════╤════════╤═══├──────────────────────┤█████│  │
+* │      │     │     │ regs[] │  ┆│ global_ctrl          │█████│  │
+* │      │     │     └────────╯  ┆├──────────────────────┤█████│  │
+* │      │     │struct           ┆│ global_ovf_ctrl      │█████│  │
+* │      │     │xen_pmu_cntr_pair┆├──────────────────────┤█████│  │
+* │      │     │[counters]       ┆│ global_status        │█████│  │
+* │      │     │                 ┆├──────────────────────┤█████│  │
+* │      │     │                 ┆│ fixed_ctrl           │█████│  │
+* │      │     │                 ┆├──────────────────────┤█████│  │
+* │      │     │                 ┆│ ds_area              │█████│  │
+* │      │     │                 ┆├──────────────────────┤█████│  │
+* │      │     │                 ┆│ pebs_enable          │█pad█│  │
+* │      │     │                 ┆├──────────────────────┤█████│  │
+* │      │     │                 ▽│ debugctl             │█████│  │
+* │      │     │██████████████████╞═══════╤════════╤═════╡█████│  │
+* │      │     │██████████████████│       │ regs[] │ ┆[0]│█████│  │
+* │      │     │██████████████████│       └────────╯ ┆   │█████│  │
+* │      │     │██████████████████│ uint64_t         ┆   │█████│  │
+* │      │     │██████████████████│ [fixed_counters] ┆   │█████│  │
+* │      │     │██████████████████│                  ┆   │█████│  │
+* │      │     │██████████████████│                  ┆   │█████│  │
+* │      │     │██████████████████│ ─────────────────┆   │█████│  │
+* │      │     │██████████████████│  struct          ┆   │█████│  │
+* │      │     │██████████████████│ xen_pmu_cntr_pair┆   │█████│  │
+* │      │     ╘══════════════════╡ [arch_counters]  ┆   ╞═════╡  │
+* │      │                        │                  ┆   │     │  │
+* │      │                        │                  ▽   │     │  │
+* │      │                        ╘══════════════════════╛     │  │
+* │      ╘═════════════════════════════════════════════════════╡  │
+* ╞════════════════════════════════════════════════════════════╡  │
+* │████████████████████████████████████████████████████████████│  │
+* ┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆  ┆
+* ┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆┆  ┆
+* │████████████████████████████████████████████████████████████│  │ PAGE_SIZE
+* ╘════════════════════════════════════════════════════════════╛ ◁╯
 */
 
 #endif /* __XEN_PUBLIC_ARCH_X86_PMU_H__ */
-- 
2.47.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.