Skip to content
Snippets Groups Projects
Commit 92e94fca authored by Eric Lai's avatar Eric Lai
Browse files

debug-snapshot-log: skip print last info


In order to print less log to make room for other logs.
Skip print if the data not filled.

Bug: 332426051
Test: echo c > /proc/sysrq-trigger and check irq info

Change-Id: I6519455c02ff6905f33464bd8f220c194e152a65
Signed-off-by: default avatarEric Lai <ericllai@google.com>
parent bc1cf4cc
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,7 @@ struct dbg_snapshot_log_item dss_log_items[] = {
struct dbg_snapshot_log_misc dss_log_misc;
static char dss_freq_name[SZ_32][SZ_8];
static unsigned int dss_freq_size;
static bool dss_last_info_enabled;
#define dss_get_log(item) \
long dss_get_len_##item##_log(void) { \
......@@ -611,6 +612,8 @@ static void dbg_snapshot_print_lastinfo(void)
{
int cpu;
if (!dss_last_info_enabled)
return;
pr_info("<last info>\n");
for (cpu = 0; cpu < DSS_NR_CPUS; cpu++) {
pr_info("CPU ID: %d ----------------------------------\n", cpu);
......@@ -727,6 +730,7 @@ void dbg_snapshot_init_log(void)
return;
}
dss_last_info_enabled = true;
log_item_set_filed(TASK, task);
log_item_set_filed(WORK, work);
log_item_set_filed(CPUIDLE, cpuidle);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment