[IMPROVE] Parser: implement system-wide instrumentation 51/16751/3
authorAlexander Aksenov <a.aksenov@samsung.com>
Mon, 24 Feb 2014 11:52:49 +0000 (15:52 +0400)
committerDmitry Kovalenko <d.kovalenko@samsung.com>
Thu, 27 Mar 2014 08:33:48 +0000 (01:33 -0700)
To run it, do the following:

1. Set app type to 'App is already running'
2. Set app id to '\0' string
3. Set app path to '\0' string
4. Set all probes you want to be installed as library ones
5. Run SWAP

Change-Id: Ie0ebe941970caa858bf413c293dc653408902ff1
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
parser/us_inst.c

index aa0489e..d6d8b30 100644 (file)
@@ -114,10 +114,13 @@ static int get_pfg_by_app_info(struct app_info_data *app_info, struct pf_group *
 
        switch (app_info->app_type) {
        case AT_PID:
-               if (app_info->tgid == 0)
-                       goto pf_dentry;
-
-               *pfg = get_pf_group_by_tgid(app_info->tgid, dentry);
+               if (app_info->tgid == 0) {
+                       if (app_info->exec_path[0] == '\0')
+                               *pfg = get_pf_group_dumb(dentry);
+                       else
+                               goto pf_dentry;
+               } else
+                       *pfg = get_pf_group_by_tgid(app_info->tgid, dentry);
                break;
        case AT_TIZEN_NATIVE_APP:
        case AT_TIZEN_WEB_APP: