Re: [PATCH 17/17] plugins: add option to dump write argument to syscall plugin

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

 



On 13/9/24 19:26, Alex Bennée wrote:
From: Rowan Hart <rowanbhart@xxxxxxxxx>

Signed-off-by: Rowan Hart <rowanbhart@xxxxxxxxx>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@xxxxxxxxxx>
Tested-by: Pierrick Bouvier <pierrick.bouvier@xxxxxxxxxx>
Message-Id: <20240827215329.248434-3-rowanbhart@xxxxxxxxx>
[AJB: tweak fmt string for vaddr]
Signed-off-by: Alex Bennée <alex.bennee@xxxxxxxxxx>

---
vAJB
   - tweak fmt string for PRIu64
---
  docs/about/emulation.rst    |  14 ++++-
  tests/tcg/plugins/syscall.c | 117 ++++++++++++++++++++++++++++++++++++
  2 files changed, 130 insertions(+), 1 deletion(-)


diff --git a/tests/tcg/plugins/syscall.c b/tests/tcg/plugins/syscall.c
index 72e1a5bf90..647f478090 100644
--- a/tests/tcg/plugins/syscall.c
+++ b/tests/tcg/plugins/syscall.c
@@ -22,8 +22,57 @@ typedef struct {
      int64_t errors;
  } SyscallStats;
+struct SyscallInfo {
+    const char *name;
+    int64_t write_sysno;
+};
+

static

+const struct SyscallInfo arch_syscall_info[] = {
+    { "aarch64", 64 },
+    { "aarch64_be", 64 },
+    { "alpha", 4 },
+    { "arm", 4 },
+    { "armeb", 4 },
+    { "avr", -1 },
+    { "cris", -1 },
+    { "hexagon", 64 },
+    { "hppa", -1 },




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux