Home
last modified time | relevance | path

Searched refs:log_id_t (Results 1 – 25 of 45) sorted by relevance

12

/system/core/liblog/
Dlogger_name.cpp38 const char* android_log_id_to_name(log_id_t log_id) { in android_log_id_to_name()
45 static_assert(std::is_same<std::underlying_type<log_id_t>::type, uint32_t>::value,
48 log_id_t android_name_to_log_id(const char* logName) { in android_name_to_log_id()
53 return static_cast<log_id_t>(LOG_ID_MAX); in android_name_to_log_id()
66 return static_cast<log_id_t>(ret); in android_name_to_log_id()
70 return static_cast<log_id_t>(LOG_ID_MAX); in android_name_to_log_id()
Dconfig_read.cpp36 if (!transport->available || ((*transport->available)(static_cast<log_id_t>(i)) >= 0)) { in __android_log_add_transport()
45 if (((*transp->available)(static_cast<log_id_t>(i)) < 0) && in __android_log_add_transport()
46 (!transport->available || ((*transport->available)(static_cast<log_id_t>(i)) >= 0))) { in __android_log_add_transport()
Dfake_writer.cpp30 static int fakeWrite(log_id_t log_id, struct timespec* ts, struct iovec* vec, size_t nr);
56 snprintf(buf, sizeof(buf), "/dev/log_%s", android_log_id_to_name(static_cast<log_id_t>(i))); in fakeOpen()
74 static int fakeWrite(log_id_t log_id, struct timespec*, struct iovec* vec, size_t nr) { in fakeWrite()
Dconfig_write.cpp36 if (!transport->available || ((*transport->available)(static_cast<log_id_t>(i)) >= 0)) { in __android_log_add_transport()
45 if (((*transp->available)(static_cast<log_id_t>(i)) < 0) && in __android_log_add_transport()
46 (!transport->available || ((*transport->available)(static_cast<log_id_t>(i)) >= 0))) { in __android_log_add_transport()
Dlogger.h45 int (*available)(log_id_t logId); /* Does not cause resources to be taken */
49 int (*write)(log_id_t logId, struct timespec* ts, struct iovec* vec,
62 int (*available)(log_id_t logId);
112 log_id_t logId;
Dpmsg_writer.cpp40 static int pmsgAvailable(log_id_t logId);
41 static int pmsgWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr);
75 static int pmsgAvailable(log_id_t logId) { in pmsgAvailable()
98 static int pmsgWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr) { in pmsgWrite()
203 ssize_t __android_log_pmsg_file_write(log_id_t logId, char prio, const char* filename, in __android_log_pmsg_file_write()
Dstderr_write.cpp47 static int stderrAvailable(log_id_t logId);
48 static int stderrWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr);
142 static int stderrAvailable(log_id_t logId) { in stderrAvailable()
149 static int stderrWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr) { in stderrWrite()
Dlogd_writer.cpp46 static int logdAvailable(log_id_t LogId);
49 static int logdWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr);
113 static int logdAvailable(log_id_t logId) { in logdAvailable()
126 static int logdWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr) { in logdWrite()
Dlogger_write.cpp40 static int __write_to_log_init(log_id_t, struct iovec* vec, size_t nr);
41 static int (*write_to_log)(log_id_t, struct iovec* vec, size_t nr) = __write_to_log_init;
102 (!node->available || ((*node->available)(static_cast<log_id_t>(i)) >= 0))) { in __android_log_cache_available()
239 static int __write_to_log_daemon(log_id_t log_id, struct iovec* vec, size_t nr) { in __write_to_log_daemon()
379 static int __write_to_log_init(log_id_t log_id, struct iovec* vec, size_t nr) { in __write_to_log_init()
474 return write_to_log(static_cast<log_id_t>(bufID), vec, 3); in __android_log_buf_write()
629 static int __write_to_log_null(log_id_t log_id, struct iovec* vec, size_t nr) { in __write_to_log_null()
/system/core/logd/
DLogBuffer.h117 int log(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid,
129 bool clear(log_id_t id, uid_t uid = AID_ROOT);
130 unsigned long getSize(log_id_t id);
131 int setSize(log_id_t id, unsigned long size);
132 unsigned long getSizeUsed(log_id_t id);
186 void maybePrune(log_id_t id);
188 void kickMe(LogTimeEntry* me, log_id_t id, unsigned long pruneRows);
190 bool prune(log_id_t id, unsigned long pruneRows, uid_t uid = AID_ROOT);
DLogBufferElement.h59 LogBufferElement(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid,
68 log_id_t getLogId() const { in getLogId()
69 return static_cast<log_id_t>(mLogId); in getLogId()
DLogStatistics.h43 for (log_id_t i = LOG_ID_MIN; (i) < LOG_ID_MAX; (i) = (log_id_t)((i) + 1))
176 log_id_t id = LOG_ID_MAX) const {
305 std::string formatHeader(const std::string& name, log_id_t id) const;
306 std::string format(const LogStatistics& stat, log_id_t id) const;
371 std::string formatHeader(const std::string& name, log_id_t id) const;
372 std::string format(const LogStatistics& stat, log_id_t id) const;
453 std::string formatHeader(const std::string& name, log_id_t id) const;
454 std::string format(const LogStatistics& stat, log_id_t id) const;
492 std::string formatHeader(const std::string& name, log_id_t id) const;
493 std::string format(const LogStatistics& stat, log_id_t id) const;
[all …]
DLogTimes.h80 void triggerSkip_Locked(log_id_t id, unsigned int skip) { in triggerSkip_Locked()
92 bool isWatching(log_id_t id) const { in isWatching()
DLogStatistics.cpp85 log_id_t log_id = element->getLogId(); in addTotal()
93 log_id_t log_id = element->getLogId(); in add()
163 log_id_t log_id = element->getLogId(); in subtract()
208 log_id_t log_id = element->getLogId(); in drop()
300 std::string UidEntry::formatHeader(const std::string& name, log_id_t id) const { in formatHeader()
335 std::string UidEntry::format(const LogStatistics& stat, log_id_t id) const { in format()
437 log_id_t /* id */) const { in formatHeader()
444 log_id_t /* id */) const { in format()
462 log_id_t /* id */) const { in formatHeader()
469 log_id_t /* id */) const { in format()
[all …]
DLogBufferInterface.h33 virtual int log(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid,
/system/core/liblog/include/private/
Dandroid_logger.h113 ssize_t __android_log_pmsg_file_write(log_id_t logId, char prio,
117 #define LOG_ID_ANY ((log_id_t)-1)
121 typedef ssize_t (*__android_log_pmsg_file_read_fn)(log_id_t logId, char prio,
126 ssize_t __android_log_pmsg_file_read(log_id_t logId, char prio,
147 unsigned long __android_logger_get_buffer_size(log_id_t logId);
/system/core/include/private/
Dandroid_logger.h113 ssize_t __android_log_pmsg_file_write(log_id_t logId, char prio,
117 #define LOG_ID_ANY ((log_id_t)-1)
121 typedef ssize_t (*__android_log_pmsg_file_read_fn)(log_id_t logId, char prio,
126 ssize_t __android_log_pmsg_file_read(log_id_t logId, char prio,
147 unsigned long __android_logger_get_buffer_size(log_id_t logId);
/system/core/liblog/include_vndk/log/
Dlog_id.h38 } log_id_t; typedef
58 log_id_t android_name_to_log_id(const char* logName);
59 const char* android_log_id_to_name(log_id_t log_id);
Dlog_read.h174 log_id_t id() { in id()
175 return static_cast<log_id_t>(entry.lid); in id()
198 log_id_t android_logger_get_id(struct logger* logger);
238 struct logger* android_logger_open(struct logger_list* logger_list, log_id_t id);
241 struct logger_list* android_logger_list_open(log_id_t id, int mode,
/system/core/liblog/include/log/
Dlog_id.h38 } log_id_t; typedef
58 log_id_t android_name_to_log_id(const char* logName);
59 const char* android_log_id_to_name(log_id_t log_id);
Dlog_read.h174 log_id_t id() { in id()
175 return static_cast<log_id_t>(entry.lid); in id()
198 log_id_t android_logger_get_id(struct logger* logger);
238 struct logger* android_logger_open(struct logger_list* logger_list, log_id_t id);
241 struct logger_list* android_logger_list_open(log_id_t id, int mode,
/system/core/debuggerd/libdebuggerd/test/
Dlog_fake.cpp72 extern "C" log_id_t android_name_to_log_id(const char*) { in android_name_to_log_id()
76 extern "C" struct logger_list* android_logger_list_open(log_id_t, int, unsigned int, pid_t) { in android_logger_list_open() argument
/system/core/libunwindstack/tests/
DLogFake.cpp81 extern "C" log_id_t android_name_to_log_id(const char*) { in android_name_to_log_id()
85 extern "C" struct logger_list* android_logger_list_open(log_id_t, int, unsigned int, pid_t) { in android_logger_list_open() argument
/system/core/liblog/tests/
Dlog_id_test.cpp37 log_id_t id = static_cast<log_id_t>(i); in TEST()
Dlog_read_test.cpp89 log_id_t id = static_cast<log_id_t>(i); in TEST()

12