qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

linux-user: add rt_tgsigqueueinfo() strace

This commit improves strace support for syscall rt_tgsigqueueinfo().

Prior to this commit, typical strace output used to look like this:
7775 rt_tgsigqueueinfo(7775,7775,50,1996483164,0,0) = 0

After this commit, it looks like this:
7775 rt_tgsigqueueinfo(7775,7775,50,0x76ffea5c) = 0

Signed-off-by: Miloš Stojanović <Milos.Stojanovic@rt-rk.com>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>

authored by

Miloš Stojanović and committed by
Riku Voipio
243e0fe5 cf8b8bfc

+16 -1
+15
linux-user/strace.c
··· 1915 1915 } 1916 1916 #endif 1917 1917 1918 + #ifdef TARGET_NR_rt_tgsigqueueinfo 1919 + static void 1920 + print_rt_tgsigqueueinfo(const struct syscallname *name, 1921 + abi_long arg0, abi_long arg1, abi_long arg2, 1922 + abi_long arg3, abi_long arg4, abi_long arg5) 1923 + { 1924 + print_syscall_prologue(name); 1925 + print_raw_param("%d", arg0, 0); 1926 + print_raw_param("%d", arg1, 0); 1927 + print_signal(arg2, 0); 1928 + print_pointer(arg3, 1); 1929 + print_syscall_epilogue(name); 1930 + } 1931 + #endif 1932 + 1918 1933 #ifdef TARGET_NR_syslog 1919 1934 static void 1920 1935 print_syslog_action(abi_ulong arg, int last)
+1 -1
linux-user/strace.list
··· 1167 1167 { TARGET_NR_rt_sigtimedwait, "rt_sigtimedwait" , NULL, NULL, NULL }, 1168 1168 #endif 1169 1169 #ifdef TARGET_NR_rt_tgsigqueueinfo 1170 - { TARGET_NR_rt_tgsigqueueinfo, "rt_tgsigqueueinfo" , NULL, NULL, NULL }, 1170 + { TARGET_NR_rt_tgsigqueueinfo, "rt_tgsigqueueinfo" , NULL, print_rt_tgsigqueueinfo, NULL }, 1171 1171 #endif 1172 1172 #ifdef TARGET_NR_sched_getaffinity 1173 1173 { TARGET_NR_sched_getaffinity, "sched_getaffinity" , NULL, NULL, NULL },