Preload: searching special wrappers for kernel calling 21/110721/10
authorAlexander Aksenov <a.aksenov@samsung.com>
Tue, 13 Dec 2016 10:02:25 +0000 (13:02 +0300)
committerAlexander Aksenov <a.aksenov@samsung.com>
Thu, 1 Jun 2017 15:54:16 +0000 (18:54 +0300)
Now special wrappers for kernel calling are used, so their
addreeses are searched.

Change-Id: I1cb28ee6c7d465abedadf5a39c14ef10224f5f1f
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
include/api_names_global.h
scripts/gen_headers.py

index 08d39e4..8470292 100644 (file)
@@ -6,5 +6,6 @@
 #define PROBE_NAME(func) GET_VALUE_1(PROBE_NAME_PREFIX, func)
 
 #define PROBE_NAME_PREFIX __PROBE__
+#define PROBE_NAME_POSTFIX _kernel_call
 
 #endif
index 758f958..a195c35 100755 (executable)
@@ -192,7 +192,7 @@ def __parse_file(libs_data, file):
                 splitted[i] = re.sub("\n", "", splitted[i])
 
             func = splitted[0]
-            handler = defines["PROBE_NAME_PREFIX"] + splitted[1]
+            handler = defines["PROBE_NAME_PREFIX"] + splitted[1] + defines["PROBE_NAME_POSTFIX"]
             probe_type = splitted[2]
 
             if len(current_libs) == 1 and (current_libs[0] == "???" or current_libs[0] == "---"):