[PATCH v3 0/9] xen/arm: arm64: Annotate code symbols

Edgar E. Iglesias posted 9 patches 2 weeks, 4 days ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20240501035448.964625-1-edgar.iglesias@gmail.com
There is a newer version of this series
xen/arch/arm/arm64/bpi.S         | 20 +++++----
xen/arch/arm/arm64/cache.S       |  4 +-
xen/arch/arm/arm64/debug.S       |  6 ++-
xen/arch/arm/arm64/entry.S       | 72 +++++++++++++++++++++-----------
xen/arch/arm/arm64/head.S        | 50 +++++++++++-----------
xen/arch/arm/arm64/lib/memchr.S  |  4 +-
xen/arch/arm/arm64/lib/memcmp.S  |  4 +-
xen/arch/arm/arm64/lib/memcpy.S  |  4 +-
xen/arch/arm/arm64/lib/memmove.S |  4 +-
xen/arch/arm/arm64/lib/memset.S  |  4 +-
xen/arch/arm/arm64/lib/strchr.S  |  4 +-
xen/arch/arm/arm64/lib/strcmp.S  |  4 +-
xen/arch/arm/arm64/lib/strlen.S  |  4 +-
xen/arch/arm/arm64/lib/strncmp.S |  4 +-
xen/arch/arm/arm64/lib/strnlen.S |  4 +-
xen/arch/arm/arm64/lib/strrchr.S |  4 +-
xen/arch/arm/arm64/mmu/head.S    | 28 ++++++-------
xen/arch/arm/arm64/smc.S         |  6 ++-
xen/arch/arm/arm64/sve-asm.S     |  9 ++--
19 files changed, 138 insertions(+), 101 deletions(-)
[PATCH v3 0/9] xen/arm: arm64: Annotate code symbols
Posted by Edgar E. Iglesias 2 weeks, 4 days ago
From: "Edgar E. Iglesias" <edgar.iglesias@amd.com>

On the way towards Xen safety certification we're evaluating the use
of tools to collect code-coverage/profiling information from execution
traces. Some tools rely on ELF symbols for code being declared with
type FUNC and having a symbol size.

We currently annotate some symbols but not all. Also, there seems to be
different ways to do the annotation.

This series now converts all the .S files under xen/arm/arm64 to use
the macros from xen/linkage.h and also adds missing code symbol
annotations when appropriate.

Best regards,
Edgar

ChangeLog:

v2 -> v3:
* Convert and add annotations for all of xen/arm/arm64.
* Fix brain freeze in commit message for entry.S.

v1 -> v2:
* Drop RFC.
* Squash into a single patch to avoid confusion.



Edgar E. Iglesias (9):
  xen/arm64: entry: Add missing code symbol annotations
  xen/arm64: smc: Add missing code symbol annotations
  xen/arm64: sve: Add missing code symbol annotations
  xen/arm64: head: Add missing code symbol annotations
  xen/arm64: debug: Add missing code symbol annotations
  xen/arm64: bpi: Add missing code symbol annotations
  xen/arm64: mmu/head: Add missing code symbol annotations
  xen/arm64: cache: Use the generic xen/linkage.h macros
  xen/arm64: lib: Use the generic xen/linkage.h macros

 xen/arch/arm/arm64/bpi.S         | 20 +++++----
 xen/arch/arm/arm64/cache.S       |  4 +-
 xen/arch/arm/arm64/debug.S       |  6 ++-
 xen/arch/arm/arm64/entry.S       | 72 +++++++++++++++++++++-----------
 xen/arch/arm/arm64/head.S        | 50 +++++++++++-----------
 xen/arch/arm/arm64/lib/memchr.S  |  4 +-
 xen/arch/arm/arm64/lib/memcmp.S  |  4 +-
 xen/arch/arm/arm64/lib/memcpy.S  |  4 +-
 xen/arch/arm/arm64/lib/memmove.S |  4 +-
 xen/arch/arm/arm64/lib/memset.S  |  4 +-
 xen/arch/arm/arm64/lib/strchr.S  |  4 +-
 xen/arch/arm/arm64/lib/strcmp.S  |  4 +-
 xen/arch/arm/arm64/lib/strlen.S  |  4 +-
 xen/arch/arm/arm64/lib/strncmp.S |  4 +-
 xen/arch/arm/arm64/lib/strnlen.S |  4 +-
 xen/arch/arm/arm64/lib/strrchr.S |  4 +-
 xen/arch/arm/arm64/mmu/head.S    | 28 ++++++-------
 xen/arch/arm/arm64/smc.S         |  6 ++-
 xen/arch/arm/arm64/sve-asm.S     |  9 ++--
 19 files changed, 138 insertions(+), 101 deletions(-)

-- 
2.40.1