wangzhi16
f638a21f89
[BugFix]Command "critmon" error
...
Command "critmon" has some format errors and information errors, such as:
PRE-EMPTION CALLER CSECTION CALLER RUN TIME PID DESCRIPTION
1.679000000 3.704000000
None None 0 CPU0 IDLE
0.002000000 0.003000000
None None 1 CPU1 IDLE
0.000000000 0.000000000
None None 2 CPU2 IDLE
0.000000000 0.000000000
None None 3 CPU3 IDLE
0.001000000 0.001000000
None None 4 hpwork
0.002000000 0.006000000
None None 5 nsh_main
0.000000000 0.000000000
None None 6 critmon
After bug fix:
PRE-EMPTION CALLER CSECTION CALLER RUN TIME PID DESCRIPTION
None None ---------------- ---------------- ---- CPU 0
None None ---------------- ---------------- ---- CPU 1
None None ---------------- ---------------- ---- CPU 2
None None ---------------- ---------------- ---- CPU 3
None None 0.238000000 6.982000000 0 CPU0 IDLE
None None 0.461000000 13.089000000 1 CPU1 IDLE
None None 0.000000000 0.000000000 2 CPU2 IDLE
None None 0.000000000 0.000000000 3 CPU3 IDLE
None None 0.000000000 0.001000000 4 hpwork
None None 0.000000000 0.010000000 5 nsh_main
None None 0.000000000 0.000000000 46 critmon
Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com>
2024-08-24 11:14:06 +08:00
yinshengkai
08bfc4e9c7
system/critmon: fix warning
...
critmon.c:269:3: warning: 'runtime' may be used uninitialized in this function [-Wmaybe-uninitialized]
269 | printf("%11s %11s %11s %-16s %-5s %s\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
270 | maxpreemp, maxcrit, maxrun, runtime, entryp->d_name, name);
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-04-25 20:00:54 +08:00
yinshengkai
3877c31b2f
critmon: add total time running time of task
...
PRE-EMPTION CSECTION RUN TIME PID DESCRIPTION
0.000000000 0.000000000 0.001237000 28.421047000 0 Idle Task
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-04-24 04:44:52 -04:00
Fotis Panagiotopoulos
c50ff7ff61
Fixes in asprintf usage.
2023-04-23 17:16:34 +08:00
Xiang Xiao
b659f0fbdf
Remove the unnecessary cast for main_t, NULL and argv
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-18 18:40:23 +02:00
Huang Qi
c7413ee859
system/critmon: Fix dead code
...
Remove branch since errcount could never bigger than 100.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-04-19 18:21:00 +08:00
ligd
192cbd8717
system/critmon: add thread run time support
...
Change-Id: I272a38f29a9aad3267052ce94643bbd73c8753a9
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-07-03 01:51:29 -05:00
Xiang Xiao
01f8bef2ba
system/critmon: print info before sleep
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-20 07:05:44 -07:00
ligd
696c6f412e
system/critmon: add critmon program for critmon once
...
Change-Id: Ifc1f384ad5321d23030aaa5e424627f5d8ae0484
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-06-20 07:05:44 -07:00
Alin Jerpelea
aa581fe5ce
system: nxstyle fixes
...
fixes for errors reported by the nxstyle tool
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-11 02:42:05 -05:00
Alin Jerpelea
84e0ca1310
system: update licenses to Apache
...
Gregory Nutt is has submitted the SGA
Ken Pettit has submitted the ICLA
David S. Alessio has submitted the ICLA
as a result we can migrate the licenses to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-11 02:42:05 -05:00
Xiang Xiao
e0dcfa0c55
Remove extra whitespace from files ( #43 )
...
* Remove multiple newlines at the end of file
* Remove the white space from the end of line
2020-01-31 08:29:24 -06:00
Xiang Xiao
e806097c70
Application.mk and main.c files: Change builtin's entry point from main to xxx_main by macro expansion. This change make the entry point fully compliant with POSIX/ANSI standard.
2019-10-06 06:14:56 -06:00
Gregory Nutt
2b53c50552
system/critmon/critmon.c: Another improvement to output format.
2018-11-25 09:50:21 -06:00
Gregory Nutt
411a047f9c
apps/system/critmon: Make output more compact and usable.
2018-11-25 07:42:47 -06:00
Gregory Nutt
92d8243153
apps/system/critmon: Fix some bugs found in initial testing. Stack size must be configurable to avoid issues with the simulator.
2018-11-24 17:56:23 -06:00
Gregory Nutt
943abb19d2
apps/system/critmon: Add a daemon on monitor critical sections.
2018-11-24 13:35:53 -06:00