Tracing patches
PATCH 1/3 Makefile.target: code stp dependency on trace-events
In reply to Stefan HajnocziFrom: Alon Levy <[email protected]>
--- Makefile.target | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile.target +1 -1
@@ -58,7 +58,7 @@ else TARGET_TYPE=system endif -$(QEMU_PROG).stp: +$(QEMU_PROG).stp: $(SRC_PATH)/trace-events $(call quiet-command,sh $(SRC_PATH)/scripts/tracetool \ --$(TRACE_BACKEND) \ --binary $(bindir)/$(QEMU_PROG) \
Signature · 1 line
1.7.9.1
PATCH 3/3 tracetool: dtrace: handle in and next reserved words
In reply to Stefan HajnocziFrom: Alon Levy <[email protected]>
--- scripts/tracetool | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-)
scripts/tracetool +6 -4
@@ -506,10 +506,12 @@ EOF i=1 for arg in $arglist do - # 'limit' is a reserved keyword - if [ "$arg" = "limit" ]; then - arg="_limit" - fi + # postfix reserved words with '_' + case "$arg" in + limit|in|next|self) + arg="${arg}_" + ;; + esac cat <<EOF $arg = \$arg$i; EOF
Signature · 1 line
1.7.9.1
PATCH 2/3 tracetool: dtrace disabled-events fix
In reply to Stefan HajnocziFrom: Lee Essen <[email protected]>
If there are "disabled" entries in the trace-events file then linetod_nop() is called if the backend is dtrace, it's currently not present. Also equivalent fix for stap.
--- scripts/tracetool | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-)
scripts/tracetool +12 -0
@@ -161,6 +161,18 @@ linetoc_nop() return } +linetod_nop() +{ + # Used when "disabled" events are processed + return +} + +linetostap_nop() +{ + # Used when "disabled" events are processed + return +} + linetoc_end_nop() { return
Signature · 1 line
1.7.9.1
The latest tracing fixes.
Alon Levy (2):
Makefile.target: code stp dependency on trace-events
tracetool: dtrace: handle in and next reserved words
Lee Essen (1):
tracetool: dtrace disabled-events fix
Makefile.target | 2 +- scripts/tracetool | 22 ++++++++++++++++++---- 2 files changed, 19 insertions(+), 5 deletions(-)
Signature · 1 line
1.7.9.1
Quoted 8 lines · Stefan Hajnoczi
The latest tracing fixes.
Alon Levy (2):
Makefile.target: code stp dependency on trace-events
tracetool: dtrace: handle in and next reserved wordsLee Essen (1):
tracetool: dtrace disabled-events fix
Pulled. Thanks.
Regards,
Anthony Liguori
Quoted 5 lines
Makefile.target | 2 +- scripts/tracetool | 22 ++++++++++++++++++---- 2 files changed, 19 insertions(+), 5 deletions(-)