Home
last modified time | relevance | path

Searched refs:atrace_marker_fd (Results 1 – 7 of 7) sorted by relevance

/system/core/libcutils/
Dtrace-dev_test.cpp33 atrace_marker_fd = tmp_file_.fd; in SetUp()
37 atrace_marker_fd = -1; in TearDown()
54 ASSERT_EQ(0, lseek(atrace_marker_fd, 0, SEEK_SET)); in TEST_F()
57 ASSERT_TRUE(android::base::ReadFdToString(atrace_marker_fd, &actual)); in TEST_F()
67 ASSERT_EQ(ATRACE_MESSAGE_LENGTH - 1, lseek(atrace_marker_fd, 0, SEEK_CUR)); in TEST_F()
68 ASSERT_EQ(0, lseek(atrace_marker_fd, 0, SEEK_SET)); in TEST_F()
71 ASSERT_TRUE(android::base::ReadFdToString(atrace_marker_fd, &actual)); in TEST_F()
76 ASSERT_EQ(0, lseek(atrace_marker_fd, 0, SEEK_SET)); in TEST_F()
79 EXPECT_EQ(ATRACE_MESSAGE_LENGTH - 1, lseek(atrace_marker_fd, 0, SEEK_CUR)); in TEST_F()
80 ASSERT_EQ(0, lseek(atrace_marker_fd, 0, SEEK_SET)); in TEST_F()
[all …]
Dtrace-container.cpp90 atrace_marker_fd = open("/sys/kernel/tracing/trace_marker", O_WRONLY | O_CLOEXEC); in atrace_init_once()
91 if (atrace_marker_fd < 0) { in atrace_init_once()
93 atrace_marker_fd = open("/sys/kernel/debug/tracing/trace_marker", O_WRONLY | O_CLOEXEC); in atrace_init_once()
94 if (atrace_marker_fd < 0) { in atrace_init_once()
179 if (atrace_marker_fd < 0) return; in atrace_begin_body()
191 if (atrace_marker_fd < 0) return; in atrace_end_body()
203 if (atrace_marker_fd < 0) return; in atrace_async_begin_body()
215 if (atrace_marker_fd < 0) return; in atrace_async_end_body()
227 if (atrace_marker_fd < 0) return; in atrace_int_body()
239 if (atrace_marker_fd < 0) return; in atrace_int64_body()
Dtrace-dev.cpp33 atrace_marker_fd = open("/sys/kernel/debug/tracing/trace_marker", O_WRONLY | O_CLOEXEC); in atrace_init_once()
34 if (atrace_marker_fd == -1) { in atrace_init_once()
35 atrace_marker_fd = open("/sys/kernel/tracing/trace_marker", O_WRONLY | O_CLOEXEC); in atrace_init_once()
38 if (atrace_marker_fd == -1) { in atrace_init_once()
Dtrace-host.cpp20 int atrace_marker_fd = -1; variable
Dtrace-dev.inc52 int atrace_marker_fd = -1;
214 write(atrace_marker_fd, buf, len); \
/system/core/libcutils/include/cutils/
Dtrace.h137 extern int atrace_marker_fd;
/system/core/libcutils/include_vndk/cutils/
Dtrace.h137 extern int atrace_marker_fd;