From 51b1de962c386a1f649bd5940d6e17876d5dc576 Mon Sep 17 00:00:00 2001 From: Alexander Aksenov Date: Mon, 24 Feb 2014 15:52:49 +0400 Subject: [PATCH 1/1] [IMPROVE] Parser: implement system-wide instrumentation 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 --- parser/us_inst.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/parser/us_inst.c b/parser/us_inst.c index aa0489e..d6d8b30 100644 --- a/parser/us_inst.c +++ b/parser/us_inst.c @@ -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: -- 2.7.4