Re: [PATCH v1 2/5] linux-user: convert target_mmap debug to tracepoint

2019-12-01 Thread Richard Henderson
On 11/28/19 7:46 PM, Alex Bennée wrote: > +if (TRACE_TARGET_MMAP_ENABLED) { > +char prot_str[4]; > +g_autoptr(GString) flag_str = g_string_new(NULL); > + > +pp_prot(&prot_str, prot); > + > +if (flags & MAP_FIXED) { > +g_string_append(flag_str, "MAP_FI

[PATCH v1 2/5] linux-user: convert target_mmap debug to tracepoint

2019-11-28 Thread Alex Bennée
It is a pain to re-compile when you need to debug and tracepoints are a fairly low impact way to instrument QEMU. Signed-off-by: Alex Bennée --- linux-user/mmap.c | 51 +++-- linux-user/trace-events | 1 + 2 files changed, 30 insertions(+), 22 deletions