Commit 918fad88 authored by Teng Qin's avatar Teng Qin

Implement get_text for Python USDT class

parent e01c993a
......@@ -165,6 +165,11 @@ tplist tool.""")
def get_context(self):
return self.context
def get_text(self):
ctx_array = (ct.c_void_p * 1)()
ctx_array[0] = ct.c_void_p(self.context)
return lib.bcc_usdt_genargs(ctx_array, 1).decode()
def get_probe_arg_ctype(self, probe_name, arg_index):
return lib.bcc_usdt_get_probe_argctype(
self.context, probe_name, arg_index)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment