我想插入lttng - tracepoint(“traceprovider_name”tracepoint_name“”$ 1“$ 2”)语句,使用相同的tracepoint_name和traceprovider_name ,但希望在使用不同的跟踪点签名代码:例如:
TRACEPOINT_EVENT(
provider_name_test,
tp_name_tp,
TP_ARGS(
int, my_integer_arg, char*, my_string_arg
),
TP_FIELDS(
ctf_string(my_string_field, my_string_arg)
ctf_integer(int, my_integer_field, my_integer_arg)
)
)
------------------------------------------------------------------------
with the above defined traceprovider I can use:
tracepoint(provider_name_test, tp_name_tp,23, "hi there")
I want tracepoint() signatures as below
tracepoint(provider_name_test, tp_name_tp,23 )
tracepoint(provider_name_test, tp_name_tp,"hi there" )
答案 0 :(得分:0)
traceprovider名称和跟踪点名称必须是唯一的,以便维护根本原因分析所需的精细粒度。因此它应该是唯一的,但您可以在多个位置使用相同的跟踪点。