summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaliy Cherepanov <v.cherepanov@samsung.com>2015-07-15 15:40:12 +0300
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>2016-06-10 21:48:59 +0300
commite9bb4572517fd82046f28a8faa19541c19d14d45 (patch)
tree1514004ff705321226be91b99fcf47339f3c1028
parentdf38c80af4e3d2702b0d243f22d6a124589293cd (diff)
downloadswap-probe-e9bb4572517fd82046f28a8faa19541c19d14d45.tar.gz
swap-probe-e9bb4572517fd82046f28a8faa19541c19d14d45.tar.bz2
swap-probe-e9bb4572517fd82046f28a8faa19541c19d14d45.zip
Change-Id: Iccbfcb78c262cdbaee07dcece5e8c56977ab85a5 Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
-rwxr-xr-xscripts/gen_headers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/gen_headers.py b/scripts/gen_headers.py
index 701f761..dd2a39b 100755
--- a/scripts/gen_headers.py
+++ b/scripts/gen_headers.py
@@ -305,7 +305,7 @@ def __print_probes(file, func, addr_list, handler, type):
for lib_func in addr_list:
for func_addr in addr_list[lib_func]:
probes_cnt += 1
- file.write("\t\t{0x" + str(func_addr) + ", 0x" + str(handler[0]) + ", " + str(type) +" /* " + str(lib_func) + " */},\n")
+ file.write("\t\t{0x" + str(func_addr) + ", 0x" + str(handler[0]) + ", " + str(type) +", \"" + str(lib_func) + "\"},\n")
return probes_cnt
@@ -362,6 +362,7 @@ def __print_probe_el_t(file):
file.write("\tuint64_t orig_addr;\n")
file.write("\tuint64_t handler_addr;\n")
file.write("\tuint8_t probe_type;\n")
+ file.write("\tconst char *name;\n")
file.write("};")
def __print_lib_list_el_t(file):