forked from len0rd/rockbox
Add ability to dump cpu boost log to disk, include thread names
0.) B 0 /rockbox/apps/main.c:405 1.) B 1 /rockbox/firmware/kernel/thread.c thread[dircache]:1508 2.) B 2 /rockbox/apps/tagcache.c:4772 3.) U 3 /rockbox/apps/tagcache.c:4793 add logic to show count after log rolls over clean-up Change-Id: Ibda0a56e5d8d89aa8b7649f4f9fa64eb1ff0e08f
This commit is contained in:
parent
5883cb4a52
commit
95b10ac74e
3 changed files with 58 additions and 3 deletions
|
@ -1501,7 +1501,14 @@ static inline void boost_thread(struct thread_entry *thread, bool boost)
|
|||
if ((thread->cpu_boost != 0) != boost)
|
||||
{
|
||||
thread->cpu_boost = boost;
|
||||
#ifdef CPU_BOOST_LOGGING
|
||||
const char fmt[] = __FILE__" thread[%s]";
|
||||
char pathbuf[sizeof(fmt) + 32]; /* thread name 32 */
|
||||
snprintf(pathbuf, sizeof(pathbuf), fmt, thread->name);
|
||||
cpu_boost_(boost, pathbuf, __LINE__);
|
||||
#else
|
||||
cpu_boost(boost);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue