chao an
feb6ede434
sched/cpu: replace up_cpu_index() to this_cpu()
...
In SMP mode, up_cpu_index()/this_cpu() are the same, both return the index of the physical core.
In AMP mode, up_cpu_index() will return the index of the physical core, and this_cpu() will always return 0
| #ifdef CONFIG_SMP
| # define this_cpu() up_cpu_index()
| #elif defined(CONFIG_AMP)
| # define this_cpu() (0)
| #else
| # define this_cpu() (0)
| #endif
Signed-off-by: chao an <anchao@lixiang.com>
2024-03-21 18:52:35 +08:00
chao an
4e62d0005a
sched: replace some global variables to macro
...
replace to macro will help to extend the scheduling implementation
Signed-off-by: chao an <anchao@lixiang.com>
2024-03-21 18:51:25 +08:00
yinshengkai
ddb87d3b86
clock: replace all up_perf_xx with perf_xx
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-10-02 16:11:43 +02:00
raiden00pl
dbc28cbf75
note_sysview.c: note_sysview_initialize should return error value
2023-08-02 08:05:37 -07:00
Xiang Xiao
dbd13c2aca
drivers/segger: Rename serial device from /dev/rttx to /dev/ttyRx
...
follow the serial driver naming convention
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-15 18:38:08 -03:00
wangming9
a7fc26124d
arch/arm64: the arm64 perf interface supports pmu
...
Summary:
- Support arm64 pmu api, Currently only the cycle counter function is supported.
- Using ARM64 PMU hardware capability to implement perf interface, modify all
perf interface related code.
- Support for pmu init under smp.
Signed-off-by: wangming9 <wangming9@xiaomi.com>
2023-04-10 16:23:49 -03:00
yinshengkai
64e7e43f1f
drivers/note: adjust the note_driver_ops definition
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-03-21 12:13:38 -03:00
yinshengkai
2e4c4822eb
segger/sysview: add up_perf_freq result chaeck
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-01-06 15:06:15 +08:00
yinshengkai
8f823ce320
sergger: add note_ prefix to sysview
...
change 1: rename sysview.c to note_sysview.c
change 2: add note_ prefix to sysview's public function
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-01-05 22:04:52 +08:00
Xiang Xiao
c36640e205
drivers/segger: Rename nuttx/note/note_sysview.h to nuttx/segger/sysview.h
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-14 21:24:13 +02:00
Peter van der Perk
f72f7ebee0
Sysview add prefix kconfig to add an option to decouple sched_note calls
2022-12-08 17:49:55 +01:00
zhangyuan21
18266c1012
nuttx/sched: use pid to check idle task
...
Pid is more appropriate than the flink pointer to determine idle task,
when we want to use other data structure to optimize the task list.
2022-10-31 17:53:08 +09:00
raiden00pl
c4c2c46ebf
note_sysview.c: fix compilation if CONFIG_SCHED_INSTRUMENTATION_FILTER not defined
2022-04-02 22:24:43 +08:00
raiden00pl
a984de6098
note_sysview.c: fix compilation for CONFIG_TASK_NAME_SIZE == 0
2022-04-02 22:24:43 +08:00
chao.an
d6bbe4f6a5
segger/sysview: add syscall support
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-03-09 22:32:39 +08:00
chao.an
e04ccba78a
note/sysview: add Segger System View support
...
Reference:
https://www.segger.com/products/development-tools/systemview
https://github.com/SEGGERMicro/SystemView
https://github.com/SEGGERMicro/RTT
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-01-29 17:26:04 +08:00