anchao opened a new pull request, #2882: URL: https://github.com/apache/nuttx-apps/pull/2882
## Summary mlearning/tflite-micro: add a config option to redirect micro log to syslog new config option TFLITEMICRO_SYSLOG to redirect micro log to syslog Signed-off-by: chao an <[email protected]> ## Impact N/A ## Testing sim/tflm ``` $ cmake -B build -DBOARD_CONFIG=sim/tflm -GNinja ``` ``` nsh> tflm_hello [ 3.720000] [ 4] 0 (id=0): size=16, offset=0, first_used=0 last_used=1 [ 3.720000] [ 4] 1 (id=1): size=64, offset=64, first_used=1 last_used=2 [ 3.720000] [ 4] 2 (id=2): size=64, offset=0, first_used=2 last_used=3 [ 3.720000] [ 4] 3 (id=3): size=16, offset=64, first_used=3 last_used=3 [ 3.720000] [ 4] 0: 0000000000...................................................................... (1k) [ 3.720000] [ 4] 1: 0000000000..............................1111111111111111111111111111111111111111 (1k) [ 3.720000] [ 4] 2: 22222222222222222222222222222222222222221111111111111111111111111111111111111111 (1k) [ 3.720000] [ 4] 3: 22222222222222222222222222222222222222223333333333.............................. (1k) [ 3.720000] [ 4] [ 3.720000] [ 4] "Unique Tag","Total ticks across all events with that tag." [ 3.720000] [ 4] FULLY_CONNECTED, 0 [ 3.720000] [ 4] "total number of ticks", 0 [ 3.720000] [ 4] [ 3.720000] [ 4] [RecordingMicroAllocator] Arena allocation total 2344 bytes [ 3.720000] [ 4] [RecordingMicroAllocator] Arena allocation head 128 bytes [ 3.720000] [ 4] [RecordingMicroAllocator] Arena allocation tail 2216 bytes [ 3.720000] [ 4] [RecordingMicroAllocator] 'TfLiteEvalTensor data' used 240 bytes with alignment overhead (requested 240 bytes for 10 allocations) [ 3.720000] [ 4] [RecordingMicroAllocator] 'Persistent TfLiteTensor data' used 128 bytes with alignment overhead (requested 128 bytes for 2 tensors) [ 3.720000] [ 4] [RecordingMicroAllocator] 'Persistent buffer data' used 1152 bytes with alignment overhead (requested 1100 bytes for 7 allocations) [ 3.720000] [ 4] [RecordingMicroAllocator] 'NodeAndRegistration struct' used 192 bytes with alignment overhead (requested 192 bytes for 3 NodeAndRegistration structs) [ 3.720000] [ 4] 0 (id=0): size=16, offset=0, first_used=0 last_used=1 [ 3.720000] [ 4] 1 (id=1): size=64, offset=64, first_used=1 last_used=2 [ 3.720000] [ 4] 2 (id=2): size=64, offset=0, first_used=2 last_used=3 [ 3.720000] [ 4] 3 (id=3): size=16, offset=64, first_used=3 last_used=3 [ 3.720000] [ 4] 0: 0000000000...................................................................... (1k) [ 3.720000] [ 4] 1: 0000000000..............................1111111111111111111111111111111111111111 (1k) [ 3.720000] [ 4] 2: 22222222222222222222222222222222222222221111111111111111111111111111111111111111 (1k) [ 3.720000] [ 4] 3: 22222222222222222222222222222222222222223333333333.............................. (1k) [ 3.720000] [ 4] 0 (id=0): size=16, offset=16, first_used=0 last_used=1 [ 3.720000] [ 4] 1 (id=1): size=16, offset=0, first_used=1 last_used=2 [ 3.720000] [ 4] 2 (id=2): size=16, offset=16, first_used=2 last_used=3 [ 3.720000] [ 4] 3 (id=3): size=16, offset=0, first_used=3 last_used=3 [ 3.720000] [ 4] 0: ................0000000000000000................................................ (1k) [ 3.720000] [ 4] 1: 11111111111111110000000000000000................................................ (1k) [ 3.720000] [ 4] 2: 11111111111111112222222222222222................................................ (1k) [ 3.720000] [ 4] 3: 33333333333333332222222222222222................................................ (1k) [ 3.720000] [ 4] ~~~ALL TESTS PASSED~~~ nsh> poweroff ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
