Neo Xu
0ed4ca1767
noteprintf: fix compile warnings
...
noteprintf_main.c:52:7: warning: unused variable 'binary' [-Wunused-variable]
52 | } binary =
Fix typo of sched.
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2024-10-25 16:13:30 +02:00
yinshengkai
a7011eb6f6
examples: fix noteprint compile error
...
The sched_note_string/bprintf/dump interfaces have been removed and replaced with printf and event
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-25 16:13:30 +02:00
xuxin19
32b417a8f7
cmake:refine cmake build for apps/examples
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-08-17 01:15:17 +08:00
simbit18
478ad2c782
apps/examples/noteprintf/Makefile: fix nxstyle
...
fix error: Relative file path does not match actual file
2023-03-17 03:23:12 +01:00
yinshengkai
4f04151f17
exampels/note: modify SCHED_NOTE_XXX -> sched_note_xxx
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-03-02 11:20:40 +08:00
Xiang Xiao
a29d9ea9da
fsutils/examples: Include unistd.h explicitly
...
to get the prototypes or macros are defined in it
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-05 08:46:59 +02:00
Xiang Xiao
af2741317a
examples/noteprintf: Change CONFIG_LIBC_LONG_LONG to CONFIG_HAVE_LONG_LONG
...
follow the kernel side change:
https://github.com/apache/incubator-nuttx/pull/6613
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-20 22:22:49 +03:00
chao.an
90484a33e9
sched/trace: correct the note print format
...
note print should with Instruction pointer.
e.g:
trace_printk("hello NuttX");
trace dump:
hello-6 [000] .... 23080.367994: 0xc044a005: hello NuttX
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-04-03 18:04:28 +08:00
zhanghu6
2bd3a1701c
sched note: printf API example
...
test API:
void sched_note_string(FAR const char *buf);
void sched_note_dump(uint32_t module, uint8_t event,
FAR const void *buf, size_t len);
void sched_note_printf(FAR const char *fmt, ...) printflike(1, 2);
void sched_note_bprintf(uint32_t module, uint8_t event,
FAR const char *fmt, ...) printflike(3, 4);
https://github.com/apache/incubator-nuttx/pull/4963
suggestion:
1. add "&" after the command when running this example.
2. must enable SCHED_INSTRUMENTATION_DUMP, and that enable CONFIG_SYSTEM_TRACE can help you view log.
2021-12-19 20:29:52 -06:00