qemu-devel
[Top][All Lists]
Advanced

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

Re: [PULL 01/11] *-user: remove the guest_user_syscall tracepoints


From: Richard Henderson
Subject: Re: [PULL 01/11] *-user: remove the guest_user_syscall tracepoints
Date: Wed, 31 May 2023 14:29:49 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 5/31/23 12:48, Stefan Hajnoczi wrote:
--- a/bsd-user/freebsd/os-syscall.c
+++ b/bsd-user/freebsd/os-syscall.c
@@ -531,7 +531,6 @@ abi_long do_freebsd_syscall(void *cpu_env, int num, 
abi_long arg1,
      CPUState *cpu = env_cpu(cpu_env);
      abi_long ret;
- trace_guest_user_syscall(cpu, num, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
      if (do_strace) {
          print_freebsd_syscall(num, arg1, arg2, arg3, arg4, arg5, arg6);
      }
@@ -541,7 +540,6 @@ abi_long do_freebsd_syscall(void *cpu_env, int num, 
abi_long arg1,
      if (do_strace) {
          print_freebsd_syscall_ret(num, ret);
      }
-    trace_guest_user_syscall_ret(cpu, num, ret);
return ret;
  }

Failed to remove the now unused cpu variable:

https://gitlab.com/qemu-project/qemu/-/jobs/4387911615#L6426

../bsd-user/freebsd/os-syscall.c:531:15: error: unused variable 'cpu' [-Werror,-Wunused-variable]
    CPUState *cpu = env_cpu(cpu_env);
              ^
1 error generated.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]