提交 aba8e41e 编写于 作者: A Anthony Liguori

Merge remote-tracking branch 'stefanha/tracing' into staging

* stefanha/tracing:
  tracetool: dtrace: handle in and next reserved words
  tracetool: dtrace disabled-events fix
  Makefile.target: code stp dependency on trace-events
......@@ -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) \
......
......@@ -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
......@@ -494,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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册