mirror of https://github.com/xemu-project/xemu.git
trace: [ust] fix generation of 'trace.c' on events without args
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
parent
7b92e5bc6d
commit
fa2d480a20
|
@ -338,6 +338,7 @@ linetoc_ust()
|
||||||
name=$(get_name "$1")
|
name=$(get_name "$1")
|
||||||
args=$(get_args "$1")
|
args=$(get_args "$1")
|
||||||
argnames=$(get_argnames "$1", ",")
|
argnames=$(get_argnames "$1", ",")
|
||||||
|
[ -z "$argnames" ] || argnames=", $argnames"
|
||||||
fmt=$(get_fmt "$1")
|
fmt=$(get_fmt "$1")
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
@ -345,7 +346,7 @@ DEFINE_TRACE(ust_$name);
|
||||||
|
|
||||||
static void ust_${name}_probe($args)
|
static void ust_${name}_probe($args)
|
||||||
{
|
{
|
||||||
trace_mark(ust, $name, "$fmt", $argnames);
|
trace_mark(ust, $name, "$fmt"$argnames);
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue