uint64_t *sm_for_enabled_tag = NULL;
int fd = -1;
-//atrace "--init_exec" mode
+ // atrace "--init_exec" mode
if(g_init_exec) {
- size_t bufSize = DEF_GR_SIZE;
- char buf[DEF_GR_SIZE];
- int ret = 0;
-
if(fileExists(ENABLED_TAG_FILE)) {
fprintf(stderr, "[Info] T-trace has been already initailized\n");
return false; //atrace has been already initailized.
}
}
}
-//atrace normal mode
+ // atrace normal mode
else {
fd = open(ENABLED_TAG_FILE, O_RDWR | O_CLOEXEC, 0666);
if(fd < 0){
*sm_for_enabled_tag = tags;
}
// For debug
- //fprintf(stderr, "Enabled TAGs: %u\n", (uint32_t)*sm_for_enabled_tag);
+ // fprintf(stderr, "Enabled TAGs: %u\n", (uint32_t)*sm_for_enabled_tag);
//
munmap(sm_for_enabled_tag, sizeof(uint64_t));
close(fd);
excludedTags |= TTRACE_TAG_ALWAYS;
tags &= ~excludedTags;
}
- printf("Tags: 0x%llx, excludedTags: 0x%llx\n", tags, excludedTags);
+ printf("Tags: 0x%lx, excludedTags: 0x%lx\n", tags, excludedTags);
}
ok &= startTrace();
bool traceStart = true;
bool traceStop = true;
bool traceDump = true;
+
+ // Global Variable Initialization
excludedTags = 0ULL;
if (argc == 2 && 0 == strcmp(argv[1], "--help")) {