mirror of
https://gitee.com/openharmony/developtools_profiler
synced 2024-11-26 16:41:00 +00:00
commit
ec405df643
@ -35,6 +35,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_alloc_lru_end) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_alloc_lru_end) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -50,6 +55,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_alloc_lru_start) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_alloc_lru_start) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -65,6 +75,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_alloc_page_end) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_alloc_page_end) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -80,6 +95,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_alloc_page_start) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_alloc_page_start) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -94,6 +114,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_command) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_command) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -109,6 +134,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_free_lru_end) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_free_lru_end) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -124,6 +154,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_free_lru_start) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_free_lru_start) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -139,6 +174,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_ioctl) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_ioctl) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -153,6 +193,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_ioctl_done) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_ioctl_done) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -167,6 +212,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_lock) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_lock) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -181,6 +231,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_locked) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_locked) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -195,6 +250,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_read_done) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_read_done) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -209,6 +269,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_return) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_return) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -225,6 +290,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_transaction) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_transaction) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -242,6 +312,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_transaction_alloc_buf) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_transaction_alloc_buf) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -259,6 +334,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_transaction_buffer_release) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe,the contents of print event(binder_transaction_buffer_release) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -279,6 +359,12 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
"maybe, the contents of print event(binder_transaction_failed_buffer_release) msg had be cut off in "
|
||||
"outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_transaction_failed_buffer_release) msg"
|
||||
"snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -295,6 +381,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_transaction_node_to_ref) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_transaction_node_to_ref) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -310,6 +401,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_transaction_received) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_transaction_received) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -326,6 +422,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_transaction_ref_to_node) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_transaction_ref_to_node) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -343,6 +444,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_transaction_ref_to_ref) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_transaction_ref_to_ref) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -357,6 +463,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_unlock) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_unlock) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -372,6 +483,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_unmap_kernel_end) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_unmap_kernel_end) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -387,6 +503,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_unmap_kernel_start) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_unmap_kernel_start) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -402,6 +523,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_unmap_user_end) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_unmap_user_end) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -417,6 +543,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_unmap_user_start) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_unmap_user_start) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -433,6 +564,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_update_page_range) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_update_page_range) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -449,6 +585,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(binder_wait_for_work) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_wait_for_work) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -463,6 +604,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_write_done) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(binder_write_done) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -36,6 +36,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(block_bio_backmerge) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_bio_backmerge) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -52,6 +57,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_bio_bounce) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_bio_bounce) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -68,6 +78,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(block_bio_complete) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_bio_complete) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -85,6 +100,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(block_bio_frontmerge) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_bio_frontmerge) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -101,6 +121,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_bio_queue) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_bio_queue) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -119,6 +144,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_bio_remap) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_bio_remap) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -135,6 +165,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(block_dirty_buffer) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_dirty_buffer) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -151,6 +186,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_getrq) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_getrq) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -164,6 +204,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "maybe, the contents of print event(block_plug) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_plug) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -181,6 +226,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_rq_complete) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_rq_complete) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -198,6 +248,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_rq_insert) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_rq_insert) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -215,6 +270,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_rq_issue) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_rq_issue) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -233,6 +293,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_rq_remap) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_rq_remap) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -250,6 +315,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_rq_requeue) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_rq_requeue) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -266,6 +336,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_sleeprq) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_sleeprq) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -283,6 +358,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_split) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_split) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -299,6 +379,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(block_touch_buffer) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_touch_buffer) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -314,6 +399,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_unplug) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(block_unplug) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -35,6 +35,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(cgroup_attach_task) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cgroup_attach_task) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -50,6 +55,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(cgroup_destroy_root) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cgroup_destroy_root) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -65,6 +75,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cgroup_freeze) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cgroup_freeze) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -80,6 +95,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cgroup_mkdir) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cgroup_mkdir) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -96,6 +116,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(cgroup_notify_frozen) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cgroup_notify_frozen) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -112,6 +137,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(cgroup_notify_populated) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cgroup_notify_populated) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -127,6 +157,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cgroup_release) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cgroup_release) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -142,6 +177,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cgroup_remount) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cgroup_remount) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -157,6 +197,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cgroup_rename) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cgroup_rename) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -172,6 +217,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cgroup_rmdir) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cgroup_rmdir) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -187,6 +237,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cgroup_setup_root) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cgroup_setup_root) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -203,6 +258,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(cgroup_transfer_tasks) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cgroup_transfer_tasks) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -218,6 +278,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cgroup_unfreeze) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cgroup_unfreeze) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -33,6 +33,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clk_disable) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clk_disable) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -47,6 +52,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(clk_disable_complete) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clk_disable_complete) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -60,6 +70,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "maybe, the contents of print event(clk_enable) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clk_enable) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -74,6 +89,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(clk_enable_complete) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clk_enable_complete) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -88,6 +108,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clk_prepare) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clk_prepare) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -102,6 +127,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(clk_prepare_complete) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clk_prepare_complete) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -117,6 +147,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clk_set_parent) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clk_set_parent) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -132,6 +167,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(clk_set_parent_complete) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clk_set_parent_complete) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -147,6 +187,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clk_set_phase) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clk_set_phase) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -162,6 +207,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(clk_set_phase_complete) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clk_set_phase_complete) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -177,6 +227,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clk_set_rate) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clk_set_rate) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -192,6 +247,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(clk_set_rate_complete) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clk_set_rate_complete) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -206,6 +266,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clk_unprepare) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clk_unprepare) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -220,6 +285,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(clk_unprepare_complete) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clk_unprepare_complete) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -37,6 +37,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_compaction_isolate_freepages) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_compaction_isolate_freepages) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -54,6 +59,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_compaction_isolate_migratepages) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_compaction_isolate_migratepages) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -45,6 +45,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cpuhp_enter) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cpuhp_enter) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -59,6 +64,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "maybe, the contents of print event(cpuhp_exit) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cpuhp_exit) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -87,6 +97,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cpuhp_multi_enter) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cpuhp_multi_enter) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -35,6 +35,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(dma_fence_destroy) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(dma_fence_destroy) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -51,6 +56,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(dma_fence_emit) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(dma_fence_emit) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -67,6 +77,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(dma_fence_enable_signal) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(dma_fence_enable_signal) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -83,6 +98,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(dma_fence_init) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(dma_fence_init) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -99,6 +119,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(dma_fence_signaled) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(dma_fence_signaled) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -115,6 +140,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(dma_fence_wait_end) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(dma_fence_wait_end) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -131,6 +161,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(dma_fence_wait_start) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(dma_fence_wait_start) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -39,6 +39,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(f2fs_sync_file_enter) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(f2fs_sync_file_enter) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -62,6 +67,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(f2fs_sync_file_exit) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(f2fs_sync_file_exit) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -79,6 +89,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(f2fs_write_begin) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(f2fs_write_begin) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -96,6 +111,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(f2fs_write_end) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(f2fs_write_end) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -41,6 +41,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(break_lease_block) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(break_lease_block) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -64,6 +69,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(break_lease_noblock) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(break_lease_noblock) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -87,6 +97,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(break_lease_unblock) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(break_lease_unblock) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -108,6 +123,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(generic_add_lease) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(generic_add_lease) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -131,6 +151,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(generic_delete_lease) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(generic_delete_lease) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -153,6 +178,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(time_out_leases) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(time_out_leases) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -36,6 +36,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(file_check_and_advance_wb_err) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(file_check_and_advance_wb_err) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -52,6 +57,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(filemap_set_wb_err) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(filemap_set_wb_err) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -69,6 +79,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_filemap_add_to_page_cache) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_filemap_add_to_page_cache) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -87,6 +102,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_filemap_delete_from_page_cache) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_filemap_delete_from_page_cache) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -43,6 +43,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(bputs) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(bputs) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -57,6 +62,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(branch) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(branch) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -72,6 +82,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(context_switch) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(context_switch) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -97,6 +112,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(funcgraph_entry) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(funcgraph_entry) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -124,6 +144,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(funcgraph_exit) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(funcgraph_exit) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -149,6 +174,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(function) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(function) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -184,6 +214,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(kernel_stack) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(kernel_stack) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -199,6 +234,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(mmiotrace_map) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mmiotrace_map) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -214,6 +254,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(mmiotrace_rw) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mmiotrace_rw) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -231,6 +276,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(print) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(print) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -266,6 +316,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(user_stack) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(user_stack) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -281,6 +336,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(wakeup) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(wakeup) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -33,6 +33,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(gpio_direction) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(gpio_direction) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -47,6 +52,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(gpio_value) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(gpio_value) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -33,6 +33,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(gpu_mem_total) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(gpu_mem_total) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -33,6 +33,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "maybe, the contents of print event(i2c_read) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(i2c_read) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -48,6 +53,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "maybe, the contents of print event(i2c_reply) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(i2c_reply) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -62,6 +72,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "maybe, the contents of print event(i2c_result) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(i2c_result) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -77,6 +92,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "maybe, the contents of print event(i2c_write) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(i2c_write) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -32,6 +32,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "maybe, the contents of print event(ipi_entry) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(ipi_entry) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -45,6 +50,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "maybe, the contents of print event(ipi_exit) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(ipi_exit) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -59,6 +69,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "maybe, the contents of print event(ipi_raise) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(ipi_raise) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -33,6 +33,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(irq_handler_entry) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(irq_handler_entry) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -47,6 +52,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(irq_handler_exit) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(irq_handler_exit) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -62,6 +72,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(softirq_entry) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(softirq_entry) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -77,6 +92,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(softirq_exit) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(softirq_exit) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -92,6 +112,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(softirq_raise) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(softirq_raise) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -34,6 +34,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(kfree) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(kfree) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -106,6 +111,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(kmalloc) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(kmalloc) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -179,6 +189,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(kmalloc_node) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(kmalloc_node) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -251,6 +266,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(kmem_cache_alloc) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(kmem_cache_alloc) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -326,6 +346,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(kmem_cache_alloc_node) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(kmem_cache_alloc_node) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -340,6 +365,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(kmem_cache_free) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(kmem_cache_free) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -412,6 +442,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(mm_page_alloc) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_page_alloc) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -431,6 +466,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(mm_page_alloc_extfrag) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_page_alloc_extfrag) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -447,6 +487,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(mm_page_alloc_zone_locked) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_page_alloc_zone_locked) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -461,6 +506,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(mm_page_free) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_page_free) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -476,6 +526,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(mm_page_free_batched) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_page_free_batched) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -492,6 +547,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(mm_page_pcpu_drain) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_page_pcpu_drain) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -507,6 +567,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(rss_stat) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(rss_stat) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -42,6 +42,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(mmc_request_done) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mmc_request_done) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -64,6 +69,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(mmc_request_start) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mmc_request_start) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -39,6 +39,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(napi_gro_frags_entry) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(napi_gro_frags_entry) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -59,6 +64,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(napi_gro_receive_entry) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(napi_gro_receive_entry) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -73,6 +83,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(net_dev_queue) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(net_dev_queue) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -94,6 +109,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(net_dev_start_xmit) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(net_dev_start_xmit) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -108,6 +128,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(net_dev_xmit) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(net_dev_xmit) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -122,6 +147,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(netif_receive_skb) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(netif_receive_skb) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -142,6 +172,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(netif_receive_skb_entry) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(netif_receive_skb_entry) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -156,6 +191,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(netif_rx) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(netif_rx) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -175,6 +215,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(netif_rx_entry) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(netif_rx_entry) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -194,6 +239,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(netif_rx_ni_entry) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(netif_rx_ni_entry) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -35,6 +35,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "maybe, the contents of print event(oom_score_adj_update) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(oom_score_adj_update) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -33,6 +33,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(mm_lru_activate) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_lru_activate) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -49,6 +54,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(mm_lru_insertion) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_lru_insertion) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -34,6 +34,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(clock_disable) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clock_disable) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -48,6 +53,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(clock_enable) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clock_enable) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -62,6 +72,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(clock_set_rate) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(clock_set_rate) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -76,6 +91,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(cpu_frequency) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cpu_frequency) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -91,6 +111,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(cpu_frequency_limits) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cpu_frequency_limits) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -105,6 +130,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(cpu_idle) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(cpu_idle) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -123,6 +153,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(dev_pm_qos_add_request) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(dev_pm_qos_add_request) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -141,6 +176,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(dev_pm_qos_remove_request) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(dev_pm_qos_remove_request) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -159,6 +199,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(dev_pm_qos_update_request) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(dev_pm_qos_update_request) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -174,6 +219,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(device_pm_callback_end) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(device_pm_callback_end) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -193,6 +243,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(device_pm_callback_start) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(device_pm_callback_start) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -208,6 +263,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(pm_qos_add_request) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(pm_qos_add_request) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -223,6 +283,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(pm_qos_remove_request) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(pm_qos_remove_request) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -241,6 +306,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(pm_qos_update_flags) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(pm_qos_update_flags) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -256,6 +326,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(pm_qos_update_request) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(pm_qos_update_request) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -274,6 +349,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(pm_qos_update_target) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(pm_qos_update_target) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -289,6 +369,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(power_domain_target) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(power_domain_target) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -307,6 +392,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(pstate_sample) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(pstate_sample) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -321,6 +411,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(suspend_resume) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(suspend_resume) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -336,6 +431,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(wakeup_source_activate) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(wakeup_source_activate) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -351,6 +451,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(wakeup_source_deactivate) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(wakeup_source_deactivate) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -32,6 +32,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "maybe, the contents of print event(console) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(console) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -34,6 +34,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "maybe, the contents of print event(sys_enter) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sys_enter) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -48,6 +53,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "maybe, the contents of print event(sys_exit) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sys_exit) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -32,6 +32,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(rcu_utilization) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(rcu_utilization) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -34,6 +34,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(regulator_bypass_disable) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(regulator_bypass_disable) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -49,6 +54,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(regulator_bypass_disable_complete) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(regulator_bypass_disable_complete) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -64,6 +74,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(regulator_bypass_enable) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(regulator_bypass_enable) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -79,6 +94,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(regulator_bypass_enable_complete) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(regulator_bypass_enable_complete) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -92,6 +112,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(regulator_disable) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(regulator_disable) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -107,6 +132,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(regulator_disable_complete) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(regulator_disable_complete) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -120,6 +150,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(regulator_enable) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(regulator_enable) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -135,6 +170,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(regulator_enable_complete) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(regulator_enable_complete) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -150,6 +190,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(regulator_enable_delay) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(regulator_enable_delay) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -165,6 +210,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(regulator_set_voltage) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(regulator_set_voltage) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -180,6 +230,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(regulator_set_voltage_complete) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(regulator_set_voltage_complete) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -34,6 +34,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(sched_blocked_reason) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_blocked_reason) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -49,6 +54,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(sched_kthread_stop) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_kthread_stop) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -63,6 +73,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(sched_kthread_stop_ret) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_kthread_stop_ret) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -79,6 +94,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(sched_migrate_task) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_migrate_task) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -94,6 +114,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(sched_move_numa) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_move_numa) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -109,6 +134,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(sched_pi_setprio) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_pi_setprio) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -124,6 +154,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(sched_process_exec) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_process_exec) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -139,6 +174,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(sched_process_exit) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_process_exit) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -155,6 +195,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(sched_process_fork) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_process_fork) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -170,6 +215,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(sched_process_free) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_process_free) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -185,6 +235,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(sched_process_wait) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_process_wait) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -200,6 +255,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(sched_stat_blocked) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_stat_blocked) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -214,6 +274,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(sched_stat_iowait) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_stat_iowait) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -230,6 +295,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(sched_stat_runtime) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_stat_runtime) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -244,6 +314,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(sched_stat_sleep) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_stat_sleep) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -258,6 +333,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(sched_stat_wait) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_stat_wait) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -275,6 +355,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(sched_stick_numa) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_stick_numa) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -292,6 +377,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(sched_swap_numa) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_swap_numa) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -330,6 +420,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(sched_switch) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_switch) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -344,6 +439,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(sched_wait_task) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_wait_task) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -358,6 +458,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(sched_wake_idle_without_ipi) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_wake_idle_without_ipi) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -373,6 +478,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(sched_wakeup) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_wakeup) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -388,6 +498,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(sched_wakeup_new) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_wakeup_new) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -403,6 +518,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(sched_waking) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(sched_waking) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -34,6 +34,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(signal_deliver) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(signal_deliver) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -49,6 +54,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(signal_generate) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(signal_generate) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -33,6 +33,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(rpc_call_status) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(rpc_call_status) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -48,6 +53,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(rpc_connect_status) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(rpc_connect_status) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -69,6 +79,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(rpc_socket_close) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(rpc_socket_close) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -91,6 +106,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(rpc_socket_connect) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(rpc_socket_connect) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -112,6 +132,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(rpc_socket_error) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(rpc_socket_error) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -134,6 +159,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(rpc_socket_reset_connection) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(rpc_socket_reset_connection) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -156,6 +186,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(rpc_socket_shutdown) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(rpc_socket_shutdown) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -178,6 +213,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(rpc_socket_state_change) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(rpc_socket_state_change) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -219,6 +259,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(rpc_task_begin) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(rpc_task_begin) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -262,6 +307,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(rpc_task_complete) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(rpc_task_complete) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -306,6 +356,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(rpc_task_run_action) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(rpc_task_run_action) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -329,6 +384,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(rpc_task_sleep) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(rpc_task_sleep) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -352,6 +412,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(rpc_task_wakeup) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(rpc_task_wakeup) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -371,6 +436,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(svc_handle_xprt) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(svc_handle_xprt) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -386,6 +456,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(svc_process) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(svc_process) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -404,6 +479,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(svc_recv) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(svc_recv) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -422,6 +502,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(svc_send) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(svc_send) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -435,6 +520,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(svc_wake_up) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(svc_wake_up) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -455,6 +545,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(svc_xprt_dequeue) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(svc_xprt_dequeue) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -475,6 +570,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(svc_xprt_do_enqueue) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(svc_xprt_do_enqueue) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -490,6 +590,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(xprt_lookup_rqst) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(xprt_lookup_rqst) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -504,6 +609,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(xprt_transmit) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(xprt_transmit) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -34,6 +34,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(task_newtask) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(task_newtask) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -49,6 +54,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(task_rename) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(task_rename) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -33,6 +33,10 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(hrtimer_cancel) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(hrtimer_cancel) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -61,6 +65,10 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(hrtimer_expire_entry) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(hrtimer_expire_entry) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -75,6 +83,10 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(hrtimer_expire_exit) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(hrtimer_expire_exit) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -95,6 +107,10 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(hrtimer_init) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(hrtimer_init) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -132,6 +148,10 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(hrtimer_start) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(hrtimer_start) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -146,6 +166,10 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(itimer_expire) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(itimer_expire) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -161,6 +185,10 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(itimer_state) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(itimer_state) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -174,6 +202,10 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(timer_cancel) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(timer_cancel) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -201,6 +233,10 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(timer_expire_entry) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(timer_expire_entry) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -214,6 +250,10 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(timer_expire_exit) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(timer_expire_exit) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -227,6 +267,10 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(timer_init) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(timer_init) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -260,6 +304,10 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(timer_start) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(timer_start) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -56,6 +56,10 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(v4l2_dqbuf) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "maybe, the contents of print event(v4l2_dqbuf) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -92,6 +96,10 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(v4l2_qbuf) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "maybe, the contents of print event(v4l2_qbuf) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -123,6 +131,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(vb2_v4l2_buf_done) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(vb2_v4l2_buf_done) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -155,6 +168,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(vb2_v4l2_buf_queue) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(vb2_v4l2_buf_queue) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -186,6 +204,10 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(vb2_v4l2_dqbuf) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "maybe, the contents of print event(vb2_v4l2_dqbuf) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -217,6 +239,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(vb2_v4l2_qbuf) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(vb2_v4l2_qbuf) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -37,6 +37,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(mm_shrink_slab_end) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_shrink_slab_end) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -112,6 +117,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(mm_shrink_slab_start) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_shrink_slab_start) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -184,6 +194,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(mm_vmscan_direct_reclaim_begin) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_vmscan_direct_reclaim_begin) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -199,6 +214,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(mm_vmscan_direct_reclaim_end) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_vmscan_direct_reclaim_end) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -213,6 +233,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(mm_vmscan_kswapd_sleep) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_vmscan_kswapd_sleep) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -228,6 +253,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(mm_vmscan_kswapd_wake) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_vmscan_kswapd_wake) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -248,6 +278,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(mm_vmscan_lru_isolate) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_vmscan_lru_isolate) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -271,6 +306,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(mm_vmscan_lru_shrink_inactive) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_vmscan_lru_shrink_inactive) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -343,6 +383,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(mm_vmscan_wakeup_kswapd) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_vmscan_wakeup_kswapd) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -362,6 +407,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(mm_vmscan_writepage) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(mm_vmscan_writepage) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -34,6 +34,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(workqueue_activate_work) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(workqueue_activate_work) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -48,6 +53,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(workqueue_execute_end) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(workqueue_execute_end) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -74,6 +84,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(workqueue_execute_start) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(workqueue_execute_start) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -102,6 +117,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(workqueue_queue_work) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(workqueue_queue_work) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
@ -41,6 +41,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(balance_dirty_pages) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(balance_dirty_pages) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -60,6 +65,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(bdi_dirty_ratelimit) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(bdi_dirty_ratelimit) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -78,6 +88,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(global_dirty_state) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(global_dirty_state) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -96,6 +111,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(wbc_writepage) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(wbc_writepage) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -111,6 +131,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(writeback_bdi_register) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_bdi_register) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -126,6 +151,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(writeback_congestion_wait) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_congestion_wait) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -147,6 +177,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(writeback_dirty_inode) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_dirty_inode) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -168,6 +203,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(writeback_dirty_inode_enqueue) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_dirty_inode_enqueue) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -189,6 +229,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(writeback_dirty_inode_start) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_dirty_inode_start) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -205,6 +250,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(writeback_dirty_page) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_dirty_page) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -226,6 +276,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(writeback_exec) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_exec) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -247,6 +302,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(writeback_lazytime) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_lazytime) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -268,6 +328,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(writeback_lazytime_iput) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_lazytime_iput) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -289,6 +354,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(writeback_mark_inode_dirty) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_mark_inode_dirty) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -303,6 +373,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(writeback_pages_written) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_pages_written) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -324,6 +399,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(writeback_queue) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_queue) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -343,6 +423,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(writeback_queue_io) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_queue_io) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -364,6 +449,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(writeback_sb_inodes_requeue) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_sb_inodes_requeue) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -386,6 +476,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(writeback_single_inode) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_single_inode) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -408,6 +503,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(writeback_single_inode_start) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_single_inode_start) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -429,6 +529,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(writeback_start) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_start) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -450,6 +555,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(writeback_wait) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_wait) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -465,6 +575,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(writeback_wait_iff_congested) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_wait_iff_congested) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -480,6 +595,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(writeback_wake_background) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_wake_background) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -496,6 +616,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(
|
||||
LOG_CORE, "the contents of print event(writeback_write_inode) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_write_inode) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -512,6 +637,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"the contents of print event(writeback_write_inode_start) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_write_inode_start) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
|
||||
@ -533,6 +663,11 @@ REGISTER_FTRACE_EVENT_FORMATTER(
|
||||
if (len >= BUFFER_SIZE - 1) {
|
||||
PROFILER_LOG_WARN(LOG_CORE, "the contents of print event(writeback_written) msg had be cut off in outfile");
|
||||
}
|
||||
if (len < 0) {
|
||||
PROFILER_LOG_WARN(LOG_CORE,
|
||||
"maybe, the contents of print event(writeback_written) msg snprintf_s error");
|
||||
return "";
|
||||
}
|
||||
return std::string(buffer);
|
||||
});
|
||||
} // namespace
|
||||
|
Loading…
Reference in New Issue
Block a user