mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 21:34:07 +08:00
tools: prasetrace.py supports parsing syslog
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user