diff options
author | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2015-08-10 16:34:32 -0400 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2015-08-20 07:24:25 -0400 |
commit | a11f4f0a4e18b4bdc7d5e36438711e038b7a1f74 (patch) | |
tree | 20319cffaee334bba06d8280b8398432097f9e65 /include/xen | |
parent | cb3eb850137cd43fc3e25d2062525f5ba5fd884a (diff) |
xen: xensyms support
Export Xen symbols to dom0 via /proc/xen/xensyms (similar to
/proc/kallsyms).
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'include/xen')
-rw-r--r-- | include/xen/interface/platform.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/xen/interface/platform.h b/include/xen/interface/platform.h index 5cc49ea8d840..8e035871360e 100644 --- a/include/xen/interface/platform.h +++ b/include/xen/interface/platform.h | |||
@@ -474,6 +474,23 @@ struct xenpf_core_parking { | |||
474 | }; | 474 | }; |
475 | DEFINE_GUEST_HANDLE_STRUCT(xenpf_core_parking); | 475 | DEFINE_GUEST_HANDLE_STRUCT(xenpf_core_parking); |
476 | 476 | ||
477 | #define XENPF_get_symbol 63 | ||
478 | struct xenpf_symdata { | ||
479 | /* IN/OUT variables */ | ||
480 | uint32_t namelen; /* size of 'name' buffer */ | ||
481 | |||
482 | /* IN/OUT variables */ | ||
483 | uint32_t symnum; /* IN: Symbol to read */ | ||
484 | /* OUT: Next available symbol. If same as IN */ | ||
485 | /* then we reached the end */ | ||
486 | |||
487 | /* OUT variables */ | ||
488 | GUEST_HANDLE(char) name; | ||
489 | uint64_t address; | ||
490 | char type; | ||
491 | }; | ||
492 | DEFINE_GUEST_HANDLE_STRUCT(xenpf_symdata); | ||
493 | |||
477 | struct xen_platform_op { | 494 | struct xen_platform_op { |
478 | uint32_t cmd; | 495 | uint32_t cmd; |
479 | uint32_t interface_version; /* XENPF_INTERFACE_VERSION */ | 496 | uint32_t interface_version; /* XENPF_INTERFACE_VERSION */ |
@@ -495,6 +512,7 @@ struct xen_platform_op { | |||
495 | struct xenpf_cpu_hotadd cpu_add; | 512 | struct xenpf_cpu_hotadd cpu_add; |
496 | struct xenpf_mem_hotadd mem_add; | 513 | struct xenpf_mem_hotadd mem_add; |
497 | struct xenpf_core_parking core_parking; | 514 | struct xenpf_core_parking core_parking; |
515 | struct xenpf_symdata symdata; | ||
498 | uint8_t pad[128]; | 516 | uint8_t pad[128]; |
499 | } u; | 517 | } u; |
500 | }; | 518 | }; |