Remove meaningless codes 77/124677/2
authorChangjoon Baek <joon.c.baek@samsung.com>
Wed, 12 Apr 2017 05:50:10 +0000 (14:50 +0900)
committerChangjoon Baek <joon.c.baek@samsung.com>
Wed, 12 Apr 2017 06:07:49 +0000 (15:07 +0900)
tracing_init_dentry() auto-mount tracefs in kernel 4.10.x.
This initializing is triggered fs_initcall.
So, Removed code in this commit is meaningless.

Change-Id: I9ae499131d6f7a8d2dd6e6c2c2d09e33585e3bf6
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
src/atrace/atrace.cpp

index 2639795049b01346755fe206db7de3e5c6fd14e4..d43f5dd94b63e6ad0203f7b308ab508958520106 100755 (executable)
@@ -432,8 +432,6 @@ static bool setTagsProperty(uint64_t tags)
                        close(fd);
                        return false;
                }
-               //for auto-mounting tracingfs (>= linux 4.1.x)
-               system("/usr/bin/ls -al /sys/kernel/debug/tracing > /dev/null 2>&1");
 
                memset(sm_for_enabled_tag, 0, sizeof(uint64_t));
                if(-1 == rename("/tmp/tmp_tag", ENABLED_TAG_FILE)) {