tools: prasetrace.py supports parsing syslog

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai
2023-12-24 23:44:46 +08:00
committed by Xiang Xiao
parent 211a56910a
commit ec691cc5e4
3 changed files with 383 additions and 52 deletions
+1 -6
View File
@@ -239,21 +239,16 @@ static void note_common(FAR struct tcb_s *tcb,
note->nc_length = length;
note->nc_type = type;
note->nc_cpu = this_cpu();
if (tcb == NULL)
{
note->nc_priority = CONFIG_INIT_PRIORITY;
#ifdef CONFIG_SMP
note->nc_cpu = 0;
#endif
note->nc_pid = 0;
}
else
{
note->nc_priority = tcb->sched_priority;
#ifdef CONFIG_SMP
note->nc_cpu = tcb->cpu;
#endif
note->nc_pid = tcb->pid;
}
-2
View File
@@ -318,9 +318,7 @@ struct note_common_s
uint8_t nc_length; /* Length of the note */
uint8_t nc_type; /* See enum note_type_e */
uint8_t nc_priority; /* Thread/task priority */
#ifdef CONFIG_SMP
uint8_t nc_cpu; /* CPU thread/task running on */
#endif
pid_t nc_pid; /* ID of the thread/task */
/* Time when note was buffered (sec) */
+382 -44
View File
File diff suppressed because it is too large Load Diff