Re: [PATCH v15 07/10] tb-stats: Adding info [tb-list|tb] commands to HMP (WIP)

2023-06-12 Thread Wu, Fei
On 6/12/2023 3:17 PM, Richard Henderson wrote: > On 6/12/23 03:44, Wu, Fei wrote: >> On 6/7/2023 8:24 PM, Fei Wu wrote: >>> +void hmp_info_tb(Monitor *mon, const QDict *qdict) >>> +{ >>> +    const int id = qdict_get_int(qdict, "id"); >>> +    g_autoptr(GString) buf = g_string_new(""); >>> + >>> + 

Re: [PATCH v15 07/10] tb-stats: Adding info [tb-list|tb] commands to HMP (WIP)

2023-06-12 Thread Richard Henderson
On 6/12/23 03:44, Wu, Fei wrote: On 6/7/2023 8:24 PM, Fei Wu wrote: +void hmp_info_tb(Monitor *mon, const QDict *qdict) +{ +const int id = qdict_get_int(qdict, "id"); +g_autoptr(GString) buf = g_string_new(""); + +if (!tcg_enabled()) { +monitor_printf(mon, "Only available wit

Re: [PATCH v15 07/10] tb-stats: Adding info [tb-list|tb] commands to HMP (WIP)

2023-06-11 Thread Wu, Fei
On 6/7/2023 8:24 PM, Fei Wu wrote: > +void hmp_info_tb(Monitor *mon, const QDict *qdict) > +{ > +const int id = qdict_get_int(qdict, "id"); > +g_autoptr(GString) buf = g_string_new(""); > + > +if (!tcg_enabled()) { > +monitor_printf(mon, "Only available with accel=tcg\n"); > +

[PATCH v15 07/10] tb-stats: Adding info [tb-list|tb] commands to HMP (WIP)

2023-06-07 Thread Fei Wu
From: "Vanderson M. do Rosario" These commands allow the exploration of TBs generated by the TCG. Understand which one hotter, with more guest/host instructions... and examine their guest, host and IR code. The goal of this command is to allow the dynamic exploration of TCG behavior and code qua