Re: [PATCH v1 1/5] linux-user: convert target_mprotect debug to tracepoint

2019-12-01 Thread Richard Henderson
On 11/28/19 7:45 PM, Alex Bennée wrote: > -#ifdef DEBUG_MMAP > -printf("mprotect: start=0x" TARGET_ABI_FMT_lx > - "len=0x" TARGET_ABI_FMT_lx " prot=%c%c%c\n", start, len, > - prot & PROT_READ ? 'r' : '-', > - prot & PROT_WRITE ? 'w' : '-', > - prot & PROT

[PATCH v1 1/5] linux-user: convert target_mprotect 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 | 17 + linux-user/trace-events | 3 +++ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/linux