qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 10/12] contrib/plugins/howvec: migrate to new per_vcpu API


From: Richard Henderson
Subject: Re: [PATCH 10/12] contrib/plugins/howvec: migrate to new per_vcpu API
Date: Fri, 12 Jan 2024 19:44:04 +1100
User-agent: Mozilla Thunderbird

On 1/12/24 01:23, Pierrick Bouvier wrote:
@@ -180,11 +190,11 @@ static void plugin_exit(qemu_plugin_id_t id, void *p)
          class = &class_table[i];
          switch (class->what) {
          case COUNT_CLASS:
-            if (class->count || verbose) {
+            if (count(class->count) || verbose) {
                  g_string_append_printf(report,
                                         "Class: %-24s\t(%" PRId64 " hits)\n",
                                         class->class,
-                                       class->count);
+                                       count(class->count));
              }

Compute count once.  Otherwise,

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~



reply via email to

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