nuttx-apps/examples/noteprintf/Kconfig
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

31 lines
699 B
Plaintext

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config EXAMPLES_NOTEPRINTF
tristate "\"Note printf!\" example"
default n
depends on SCHED_INSTRUMENTATION_DUMP
---help---
Enable the \"Note printf!\" example
if EXAMPLES_NOTEPRINTF
config EXAMPLES_NOTEPRINTF_PROGNAME
string "Program name"
default "noteprintf"
---help---
This is the name of the program that will be used when the NSH ELF
program is installed.
config EXAMPLES_NOTEPRINTF_PRIORITY
int "Note printf task priority"
default 100
config EXAMPLES_NOTEPRINTF_STACKSIZE
int "Note printf stack size"
default DEFAULT_TASK_STACKSIZE
endif