Commit 3c468a4f authored by yonghong-song's avatar yonghong-song Committed by GitHub

Merge pull request #1584 from palmtenor/printargs

Implement get_text for Python USDT class
parents cbfd2853 918fad88
......@@ -168,6 +168,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