Skip to contentSkip to conversation

*-user: remove the guest_user_syscall tracepoints

GIT PULL Stefan Hajnoczi 1 participant 1 message Jun 1, 2023 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 20 lines · Richard Henderson
Quoted 10 lines · Stefan Hajnoczi
bsd-user/freebsd/os-syscall.c +0 -1
@@ -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);
      }

bsd-user/freebsd/os-syscall.c abi_long do_freebsd_syscall(void *cpu_env, int num, abi_long arg1, · line 544

Quoted 6 lines
bsd-user/freebsd/os-syscall.c +0 -1
@@ -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:

Quoted 7 lines

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.

I'll send a v2 with the unused variable warning fixed.

Stefan