[COMMON] lib: dss: Add fields in dbg_snapshot_log for analyzer
authorYoungwan Kim <y103.kim@samsung.com>
Wed, 30 May 2018 13:00:44 +0000 (22:00 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 08:04:45 +0000 (17:04 +0900)
Change-Id: Ibad7fedc28e88b95a4fa4967ec44081acc2f934d
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
lib/debug-snapshot-log.c
lib/debug-snapshot-log.h

index b50d615450382d7e252f1de39f34f8aec5aec417..a51b18e24d5defbb6848ad40997bf2c5661efb03 100644 (file)
@@ -639,6 +639,7 @@ void dbg_snapshot_task(int cpu, void *v_task)
                dss_log->task[cpu][i].time = cpu_clock(cpu);
                dss_log->task[cpu][i].sp = (unsigned long)current_stack_pointer;
                dss_log->task[cpu][i].task = (struct task_struct *)v_task;
+               dss_log->task[cpu][i].pid = (int)((struct task_struct *)v_task)->pid;
                strncpy(dss_log->task[cpu][i].task_comm,
                        dss_log->task[cpu][i].task->comm,
                        TASK_COMM_LEN - 1);
@@ -1096,6 +1097,7 @@ void dbg_snapshot_freq(int type, unsigned long old_freq, unsigned long target_fr
                dss_log->freq[i].time = cpu_clock(cpu);
                dss_log->freq[i].cpu = cpu;
                dss_log->freq[i].freq_name = dss_freq_name[type];
+               dss_log->freq[i].type = type;
                dss_log->freq[i].old_freq = old_freq;
                dss_log->freq[i].target_freq = target_freq;
                dss_log->freq[i].en = en;
index c9cb385ecc9d9483316501b3a4a5ee9ef0a376ce..d257aa9c4cf65d759762382461b5326313b0d90f 100644 (file)
@@ -79,6 +79,7 @@ struct dbg_snapshot_log {
                void *task;
 #endif
                char task_comm[TASK_COMM_LEN];
+               int pid;
        } task[DSS_NR_CPUS][DSS_LOG_MAX_NUM];
 
        struct __work_log {
@@ -204,6 +205,7 @@ struct dbg_snapshot_log {
        struct __freq_log {
                unsigned long long time;
                int cpu;
+               int type;
                char *freq_name;
                unsigned long old_freq;
                unsigned long target_freq;