Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
tracing.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6#ifndef ZEPHYR_INCLUDE_TRACING_TRACING_H_
7#define ZEPHYR_INCLUDE_TRACING_TRACING_H_
8
9#include <zephyr/kernel.h>
10
11#include "tracking.h"
12
13#if defined CONFIG_SEGGER_SYSTEMVIEW
14#include "tracing_sysview.h"
15#elif defined CONFIG_TRACING_CTF
16#include "tracing_ctf.h"
17#elif defined CONFIG_TRACING_TEST
18#include "tracing_test.h"
19#elif defined CONFIG_TRACING_USER
20#include "tracing_user.h"
21#else
49#define sys_port_trace_k_thread_foreach_enter()
50
54#define sys_port_trace_k_thread_foreach_exit()
55
59#define sys_port_trace_k_thread_foreach_unlocked_enter()
60
64#define sys_port_trace_k_thread_foreach_unlocked_exit()
65
70#define sys_port_trace_k_thread_create(new_thread)
71
75#define sys_port_trace_k_thread_user_mode_enter()
76
82#define sys_port_trace_k_thread_join_enter(thread, timeout)
83
89#define sys_port_trace_k_thread_join_blocking(thread, timeout)
90
97#define sys_port_trace_k_thread_join_exit(thread, timeout, ret)
98
103#define sys_port_trace_k_thread_sleep_enter(timeout)
104
110#define sys_port_trace_k_thread_sleep_exit(timeout, ret)
111
116#define sys_port_trace_k_thread_msleep_enter(ms)
117
123#define sys_port_trace_k_thread_msleep_exit(ms, ret)
124
129#define sys_port_trace_k_thread_usleep_enter(us)
130
136#define sys_port_trace_k_thread_usleep_exit(us, ret)
137
142#define sys_port_trace_k_thread_busy_wait_enter(usec_to_wait)
143
148#define sys_port_trace_k_thread_busy_wait_exit(usec_to_wait)
149
153#define sys_port_trace_k_thread_yield()
154
159#define sys_port_trace_k_thread_wakeup(thread)
160
165#define sys_port_trace_k_thread_start(thread)
166
171#define sys_port_trace_k_thread_abort(thread)
172
177#define sys_port_trace_k_thread_abort_enter(thread)
178
183#define sys_port_trace_k_thread_abort_exit(thread)
184
189#define sys_port_trace_k_thread_priority_set(thread)
190
196#define sys_port_trace_k_thread_suspend_enter(thread)
197
203#define sys_port_trace_k_thread_suspend_exit(thread)
204
210#define sys_port_trace_k_thread_resume_enter(thread)
211
217#define sys_port_trace_k_thread_resume_exit(thread)
218
222#define sys_port_trace_k_thread_sched_lock()
223
227#define sys_port_trace_k_thread_sched_unlock()
228
234#define sys_port_trace_k_thread_name_set(thread, ret)
235
239#define sys_port_trace_k_thread_switched_out()
240
244#define sys_port_trace_k_thread_switched_in()
245
250#define sys_port_trace_k_thread_ready(thread)
251
256#define sys_port_trace_k_thread_pend(thread)
257
262#define sys_port_trace_k_thread_info(thread)
263
268#define sys_port_trace_k_thread_sched_wakeup(thread)
269
274#define sys_port_trace_k_thread_sched_abort(thread)
275
281#define sys_port_trace_k_thread_sched_priority_set(thread, prio)
282
287#define sys_port_trace_k_thread_sched_ready(thread)
288
293#define sys_port_trace_k_thread_sched_pend(thread)
294
299#define sys_port_trace_k_thread_sched_resume(thread)
300
305#define sys_port_trace_k_thread_sched_suspend(thread)
306
307 /* end of subsys_tracing_apis_thread */
308
319#define sys_port_trace_k_work_init(work)
320
326#define sys_port_trace_k_work_submit_to_queue_enter(queue, work)
327
334#define sys_port_trace_k_work_submit_to_queue_exit(queue, work, ret)
335
340#define sys_port_trace_k_work_submit_enter(work)
341
347#define sys_port_trace_k_work_submit_exit(work, ret)
348
353#define sys_port_trace_k_work_flush_enter(work)
354
360#define sys_port_trace_k_work_flush_blocking(work, timeout)
361
367#define sys_port_trace_k_work_flush_exit(work, ret)
368
373#define sys_port_trace_k_work_cancel_enter(work)
374
380#define sys_port_trace_k_work_cancel_exit(work, ret)
381
387#define sys_port_trace_k_work_cancel_sync_enter(work, sync)
388
394#define sys_port_trace_k_work_cancel_sync_blocking(work, sync)
395
402#define sys_port_trace_k_work_cancel_sync_exit(work, sync, ret)
403
404 /* end of subsys_tracing_apis_work */
405
416#define sys_port_trace_k_work_queue_init(queue)
417
422#define sys_port_trace_k_work_queue_start_enter(queue)
423
428#define sys_port_trace_k_work_queue_start_exit(queue)
429
435#define sys_port_trace_k_work_queue_stop_enter(queue, timeout)
436
442#define sys_port_trace_k_work_queue_stop_blocking(queue, timeout)
443
450#define sys_port_trace_k_work_queue_stop_exit(queue, timeout, ret)
451
456#define sys_port_trace_k_work_queue_drain_enter(queue)
457
463#define sys_port_trace_k_work_queue_drain_exit(queue, ret)
464
469#define sys_port_trace_k_work_queue_unplug_enter(queue)
470
476#define sys_port_trace_k_work_queue_unplug_exit(queue, ret)
477
478 /* end of subsys_tracing_apis_work_q */
479
490#define sys_port_trace_k_work_delayable_init(dwork)
491
498#define sys_port_trace_k_work_schedule_for_queue_enter(queue, dwork, delay)
499
507#define sys_port_trace_k_work_schedule_for_queue_exit(queue, dwork, delay, ret)
508
514#define sys_port_trace_k_work_schedule_enter(dwork, delay)
515
522#define sys_port_trace_k_work_schedule_exit(dwork, delay, ret)
523
530#define sys_port_trace_k_work_reschedule_for_queue_enter(queue, dwork, delay)
531
539#define sys_port_trace_k_work_reschedule_for_queue_exit(queue, dwork, delay, ret)
540
546#define sys_port_trace_k_work_reschedule_enter(dwork, delay)
547
554#define sys_port_trace_k_work_reschedule_exit(dwork, delay, ret)
555
561#define sys_port_trace_k_work_flush_delayable_enter(dwork, sync)
562
569#define sys_port_trace_k_work_flush_delayable_exit(dwork, sync, ret)
570
575#define sys_port_trace_k_work_cancel_delayable_enter(dwork)
576
582#define sys_port_trace_k_work_cancel_delayable_exit(dwork, ret)
583
589#define sys_port_trace_k_work_cancel_delayable_sync_enter(dwork, sync)
590
597#define sys_port_trace_k_work_cancel_delayable_sync_exit(dwork, sync, ret)
598
599 /* end of subsys_tracing_apis_work_delayable */
600
611#define sys_port_trace_k_work_poll_init_enter(work)
612
617#define sys_port_trace_k_work_poll_init_exit(work)
618
625#define sys_port_trace_k_work_poll_submit_to_queue_enter(work_q, work, timeout)
626
633#define sys_port_trace_k_work_poll_submit_to_queue_blocking(work_q, work, timeout)
634
642#define sys_port_trace_k_work_poll_submit_to_queue_exit(work_q, work, timeout, ret)
643
649#define sys_port_trace_k_work_poll_submit_enter(work, timeout)
650
657#define sys_port_trace_k_work_poll_submit_exit(work, timeout, ret)
658
663#define sys_port_trace_k_work_poll_cancel_enter(work)
664
670#define sys_port_trace_k_work_poll_cancel_exit(work, ret)
671
672 /* end of subsys_tracing_apis_work_poll */
673
684#define sys_port_trace_k_poll_api_event_init(event)
685
690#define sys_port_trace_k_poll_api_poll_enter(events)
691
697#define sys_port_trace_k_poll_api_poll_exit(events, ret)
698
703#define sys_port_trace_k_poll_api_signal_init(signal)
704
709#define sys_port_trace_k_poll_api_signal_reset(signal)
710
715#define sys_port_trace_k_poll_api_signal_check(signal)
716
722#define sys_port_trace_k_poll_api_signal_raise(signal, ret)
723
724 /* end of subsys_tracing_apis_poll */
725
737#define sys_port_trace_k_sem_init(sem, ret)
738
743#define sys_port_trace_k_sem_give_enter(sem)
744
749#define sys_port_trace_k_sem_give_exit(sem)
750
756#define sys_port_trace_k_sem_take_enter(sem, timeout)
757
763#define sys_port_trace_k_sem_take_blocking(sem, timeout)
764
771#define sys_port_trace_k_sem_take_exit(sem, timeout, ret)
772
777#define sys_port_trace_k_sem_reset(sem)
778
779 /* end of subsys_tracing_apis_sem */
780
792#define sys_port_trace_k_mutex_init(mutex, ret)
793
799#define sys_port_trace_k_mutex_lock_enter(mutex, timeout)
800
806#define sys_port_trace_k_mutex_lock_blocking(mutex, timeout)
807
814#define sys_port_trace_k_mutex_lock_exit(mutex, timeout, ret)
815
820#define sys_port_trace_k_mutex_unlock_enter(mutex)
821
825#define sys_port_trace_k_mutex_unlock_exit(mutex, ret)
826
827 /* end of subsys_tracing_apis_mutex */
828
840#define sys_port_trace_k_condvar_init(condvar, ret)
841
846#define sys_port_trace_k_condvar_signal_enter(condvar)
847
853#define sys_port_trace_k_condvar_signal_blocking(condvar, timeout)
854
860#define sys_port_trace_k_condvar_signal_exit(condvar, ret)
861
866#define sys_port_trace_k_condvar_broadcast_enter(condvar)
867
873#define sys_port_trace_k_condvar_broadcast_exit(condvar, ret)
874
879#define sys_port_trace_k_condvar_wait_enter(condvar)
880
886#define sys_port_trace_k_condvar_wait_exit(condvar, ret)
887
888 /* end of subsys_tracing_apis_condvar */
889
900#define sys_port_trace_k_queue_init(queue)
901
906#define sys_port_trace_k_queue_cancel_wait(queue)
907
913#define sys_port_trace_k_queue_queue_insert_enter(queue, alloc)
914
921#define sys_port_trace_k_queue_queue_insert_blocking(queue, alloc, timeout)
922
929#define sys_port_trace_k_queue_queue_insert_exit(queue, alloc, ret)
930
935#define sys_port_trace_k_queue_append_enter(queue)
936
941#define sys_port_trace_k_queue_append_exit(queue)
942
947#define sys_port_trace_k_queue_alloc_append_enter(queue)
948
954#define sys_port_trace_k_queue_alloc_append_exit(queue, ret)
955
960#define sys_port_trace_k_queue_prepend_enter(queue)
961
966#define sys_port_trace_k_queue_prepend_exit(queue)
967
972#define sys_port_trace_k_queue_alloc_prepend_enter(queue)
973
979#define sys_port_trace_k_queue_alloc_prepend_exit(queue, ret)
980
985#define sys_port_trace_k_queue_insert_enter(queue)
986
992#define sys_port_trace_k_queue_insert_blocking(queue, timeout)
993
998#define sys_port_trace_k_queue_insert_exit(queue)
999
1004#define sys_port_trace_k_queue_append_list_enter(queue)
1005
1011#define sys_port_trace_k_queue_append_list_exit(queue, ret)
1012
1017#define sys_port_trace_k_queue_merge_slist_enter(queue)
1018
1024#define sys_port_trace_k_queue_merge_slist_exit(queue, ret)
1025
1031#define sys_port_trace_k_queue_get_enter(queue, timeout)
1032
1038#define sys_port_trace_k_queue_get_blocking(queue, timeout)
1039
1046#define sys_port_trace_k_queue_get_exit(queue, timeout, ret)
1047
1052#define sys_port_trace_k_queue_remove_enter(queue)
1053
1059#define sys_port_trace_k_queue_remove_exit(queue, ret)
1060
1065#define sys_port_trace_k_queue_unique_append_enter(queue)
1066
1073#define sys_port_trace_k_queue_unique_append_exit(queue, ret)
1074
1080#define sys_port_trace_k_queue_peek_head(queue, ret)
1081
1087#define sys_port_trace_k_queue_peek_tail(queue, ret)
1088
1089 /* end of subsys_tracing_apis_queue */
1090
1101#define sys_port_trace_k_fifo_init_enter(fifo)
1102
1107#define sys_port_trace_k_fifo_init_exit(fifo)
1108
1113#define sys_port_trace_k_fifo_cancel_wait_enter(fifo)
1114
1119#define sys_port_trace_k_fifo_cancel_wait_exit(fifo)
1120
1126#define sys_port_trace_k_fifo_put_enter(fifo, data)
1127
1133#define sys_port_trace_k_fifo_put_exit(fifo, data)
1134
1140#define sys_port_trace_k_fifo_alloc_put_enter(fifo, data)
1141
1148#define sys_port_trace_k_fifo_alloc_put_exit(fifo, data, ret)
1149
1156#define sys_port_trace_k_fifo_put_list_enter(fifo, head, tail)
1157
1164#define sys_port_trace_k_fifo_put_list_exit(fifo, head, tail)
1165
1171#define sys_port_trace_k_fifo_alloc_put_slist_enter(fifo, list)
1172
1178#define sys_port_trace_k_fifo_alloc_put_slist_exit(fifo, list)
1179
1185#define sys_port_trace_k_fifo_get_enter(fifo, timeout)
1186
1193#define sys_port_trace_k_fifo_get_exit(fifo, timeout, ret)
1194
1199#define sys_port_trace_k_fifo_peek_head_enter(fifo)
1200
1206#define sys_port_trace_k_fifo_peek_head_exit(fifo, ret)
1207
1212#define sys_port_trace_k_fifo_peek_tail_enter(fifo)
1213
1219#define sys_port_trace_k_fifo_peek_tail_exit(fifo, ret)
1220
1221 /* end of subsys_tracing_apis_fifo */
1222
1233#define sys_port_trace_k_lifo_init_enter(lifo)
1234
1239#define sys_port_trace_k_lifo_init_exit(lifo)
1240
1246#define sys_port_trace_k_lifo_put_enter(lifo, data)
1247
1253#define sys_port_trace_k_lifo_put_exit(lifo, data)
1254
1260#define sys_port_trace_k_lifo_alloc_put_enter(lifo, data)
1261
1268#define sys_port_trace_k_lifo_alloc_put_exit(lifo, data, ret)
1269
1275#define sys_port_trace_k_lifo_get_enter(lifo, timeout)
1276
1283#define sys_port_trace_k_lifo_get_exit(lifo, timeout, ret)
1284
1285 /* end of subsys_tracing_apis_lifo */
1286
1297#define sys_port_trace_k_stack_init(stack)
1298
1303#define sys_port_trace_k_stack_alloc_init_enter(stack)
1304
1310#define sys_port_trace_k_stack_alloc_init_exit(stack, ret)
1311
1316#define sys_port_trace_k_stack_cleanup_enter(stack)
1317
1323#define sys_port_trace_k_stack_cleanup_exit(stack, ret)
1324
1329#define sys_port_trace_k_stack_push_enter(stack)
1330
1336#define sys_port_trace_k_stack_push_exit(stack, ret)
1337
1343#define sys_port_trace_k_stack_pop_enter(stack, timeout)
1344
1350#define sys_port_trace_k_stack_pop_blocking(stack, timeout)
1351
1358#define sys_port_trace_k_stack_pop_exit(stack, timeout, ret)
1359
1360 /* end of subsys_tracing_apis_stack */
1361
1372#define sys_port_trace_k_msgq_init(msgq)
1373
1378#define sys_port_trace_k_msgq_alloc_init_enter(msgq)
1379
1385#define sys_port_trace_k_msgq_alloc_init_exit(msgq, ret)
1386
1391#define sys_port_trace_k_msgq_cleanup_enter(msgq)
1392
1398#define sys_port_trace_k_msgq_cleanup_exit(msgq, ret)
1399
1405#define sys_port_trace_k_msgq_put_enter(msgq, timeout)
1406
1412#define sys_port_trace_k_msgq_put_blocking(msgq, timeout)
1413
1420#define sys_port_trace_k_msgq_put_exit(msgq, timeout, ret)
1421
1427#define sys_port_trace_k_msgq_get_enter(msgq, timeout)
1428
1434#define sys_port_trace_k_msgq_get_blocking(msgq, timeout)
1435
1442#define sys_port_trace_k_msgq_get_exit(msgq, timeout, ret)
1443
1449#define sys_port_trace_k_msgq_peek(msgq, ret)
1450
1455#define sys_port_trace_k_msgq_purge(msgq)
1456
1457 /* end of subsys_tracing_apis_msgq */
1458
1469#define sys_port_trace_k_mbox_init(mbox)
1470
1476#define sys_port_trace_k_mbox_message_put_enter(mbox, timeout)
1477
1483#define sys_port_trace_k_mbox_message_put_blocking(mbox, timeout)
1484
1491#define sys_port_trace_k_mbox_message_put_exit(mbox, timeout, ret)
1492
1498#define sys_port_trace_k_mbox_put_enter(mbox, timeout)
1499
1506#define sys_port_trace_k_mbox_put_exit(mbox, timeout, ret)
1507
1513#define sys_port_trace_k_mbox_async_put_enter(mbox, sem)
1514
1520#define sys_port_trace_k_mbox_async_put_exit(mbox, sem)
1521
1527#define sys_port_trace_k_mbox_get_enter(mbox, timeout)
1528
1534#define sys_port_trace_k_mbox_get_blocking(mbox, timeout)
1535
1542#define sys_port_trace_k_mbox_get_exit(mbox, timeout, ret)
1543
1548#define sys_port_trace_k_mbox_data_get(rx_msg)
1549
1550 /* end of subsys_tracing_apis_mbox */
1551
1564#define sys_port_trace_k_pipe_init(pipe, buffer, size)
1565
1570#define sys_port_trace_k_pipe_reset_enter(pipe)
1571
1576#define sys_port_trace_k_pipe_reset_exit(pipe)
1577
1582#define sys_port_trace_k_pipe_close_enter(pipe)
1583
1588#define sys_port_trace_k_pipe_close_exit(pipe)
1589
1597#define sys_port_trace_k_pipe_write_enter(pipe, data, len, timeout)
1598
1604#define sys_port_trace_k_pipe_write_blocking(pipe, timeout)
1605
1611#define sys_port_trace_k_pipe_write_exit(pipe, ret)
1612
1620#define sys_port_trace_k_pipe_read_enter(pipe, data, len, timeout)
1621
1627#define sys_port_trace_k_pipe_read_blocking(pipe, timeout)
1628
1634#define sys_port_trace_k_pipe_read_exit(pipe, ret)
1635
1640#define sys_port_trace_k_pipe_cleanup_enter(pipe)
1641
1647#define sys_port_trace_k_pipe_cleanup_exit(pipe, ret)
1648
1653#define sys_port_trace_k_pipe_alloc_init_enter(pipe)
1654
1660#define sys_port_trace_k_pipe_alloc_init_exit(pipe, ret)
1661
1666#define sys_port_trace_k_pipe_flush_enter(pipe)
1667
1672#define sys_port_trace_k_pipe_flush_exit(pipe)
1673
1678#define sys_port_trace_k_pipe_buffer_flush_enter(pipe)
1679
1684#define sys_port_trace_k_pipe_buffer_flush_exit(pipe)
1685
1691#define sys_port_trace_k_pipe_put_enter(pipe, timeout)
1692
1698#define sys_port_trace_k_pipe_put_blocking(pipe, timeout)
1699
1706#define sys_port_trace_k_pipe_put_exit(pipe, timeout, ret)
1707
1713#define sys_port_trace_k_pipe_get_enter(pipe, timeout)
1714
1720#define sys_port_trace_k_pipe_get_blocking(pipe, timeout)
1721
1728#define sys_port_trace_k_pipe_get_exit(pipe, timeout, ret)
1729
1730 /* end of subsys_tracing_apis_pipe */
1731
1742#define sys_port_trace_k_heap_init(h)
1743
1749#define sys_port_trace_k_heap_aligned_alloc_enter(h, timeout)
1750
1756#define sys_port_trace_k_heap_aligned_alloc_blocking(h, timeout)
1757
1764#define sys_port_trace_k_heap_aligned_alloc_exit(h, timeout, ret)
1765
1771#define sys_port_trace_k_heap_alloc_enter(h, timeout)
1772
1779#define sys_port_trace_k_heap_alloc_exit(h, timeout, ret)
1780
1786#define sys_port_trace_k_heap_calloc_enter(h, timeout)
1787
1794#define sys_port_trace_k_heap_calloc_exit(h, timeout, ret)
1795
1800#define sys_port_trace_k_heap_free(h)
1801
1809#define sys_port_trace_k_heap_realloc_enter(h, ptr, bytes, timeout)
1810
1819#define sys_port_trace_k_heap_realloc_exit(h, ptr, bytes, timeout, ret)
1820
1825#define sys_port_trace_k_heap_sys_k_aligned_alloc_enter(heap)
1826
1832#define sys_port_trace_k_heap_sys_k_aligned_alloc_exit(heap, ret)
1833
1838#define sys_port_trace_k_heap_sys_k_malloc_enter(heap)
1839
1845#define sys_port_trace_k_heap_sys_k_malloc_exit(heap, ret)
1846
1852#define sys_port_trace_k_heap_sys_k_free_enter(heap, heap_ref)
1853
1859#define sys_port_trace_k_heap_sys_k_free_exit(heap, heap_ref)
1860
1865#define sys_port_trace_k_heap_sys_k_calloc_enter(heap)
1866
1872#define sys_port_trace_k_heap_sys_k_calloc_exit(heap, ret)
1873
1879#define sys_port_trace_k_heap_sys_k_realloc_enter(heap, ptr)
1880
1887#define sys_port_trace_k_heap_sys_k_realloc_exit(heap, ptr, ret)
1888
1889 /* end of subsys_tracing_apis_heap */
1890
1902#define sys_port_trace_k_mem_slab_init(slab, rc)
1903
1909#define sys_port_trace_k_mem_slab_alloc_enter(slab, timeout)
1910
1916#define sys_port_trace_k_mem_slab_alloc_blocking(slab, timeout)
1917
1924#define sys_port_trace_k_mem_slab_alloc_exit(slab, timeout, ret)
1925
1930#define sys_port_trace_k_mem_slab_free_enter(slab)
1931
1936#define sys_port_trace_k_mem_slab_free_exit(slab)
1937
1938 /* end of subsys_tracing_apis_mslab */
1939
1950#define sys_port_trace_k_timer_init(timer)
1951
1958#define sys_port_trace_k_timer_start(timer, duration, period)
1959
1964#define sys_port_trace_k_timer_stop(timer)
1965
1970#define sys_port_trace_k_timer_status_sync_enter(timer)
1971
1977#define sys_port_trace_k_timer_status_sync_blocking(timer, timeout)
1978
1984#define sys_port_trace_k_timer_status_sync_exit(timer, result)
1985
1986 /* end of subsys_tracing_apis_timer */
1987
1998#define sys_port_trace_k_event_init(event)
1999
2006#define sys_port_trace_k_event_post_enter(event, events, events_mask)
2007
2014#define sys_port_trace_k_event_post_exit(event, events, events_mask)
2015
2023#define sys_port_trace_k_event_wait_enter(event, events, options, timeout)
2024
2032#define sys_port_trace_k_event_wait_blocking(event, events, options, timeout)
2033
2040#define sys_port_trace_k_event_wait_exit(event, events, ret)
2041
2042 /* end of subsys_tracing_apis_event */
2043
2054#define sys_port_trace_pm_system_suspend_enter(ticks)
2055
2061#define sys_port_trace_pm_system_suspend_exit(ticks, state)
2062
2063 /* end of subsys_tracing_apis_pm_system */
2064
2075#define sys_port_trace_pm_device_runtime_get_enter(dev)
2076
2082#define sys_port_trace_pm_device_runtime_get_exit(dev, ret)
2083
2088#define sys_port_trace_pm_device_runtime_put_enter(dev)
2089
2095#define sys_port_trace_pm_device_runtime_put_exit(dev, ret)
2096
2102#define sys_port_trace_pm_device_runtime_put_async_enter(dev, delay)
2103
2110#define sys_port_trace_pm_device_runtime_put_async_exit(dev, delay, ret)
2111
2116#define sys_port_trace_pm_device_runtime_enable_enter(dev)
2117
2123#define sys_port_trace_pm_device_runtime_enable_exit(dev, ret)
2124
2129#define sys_port_trace_pm_device_runtime_disable_enter(dev)
2130
2136#define sys_port_trace_pm_device_runtime_disable_exit(dev, ret)
2137
2138 /* end of subsys_tracing_apis_pm_device_runtime */
2139
2151#define sys_port_trace_net_recv_data_enter(iface, pkt)
2152
2159#define sys_port_trace_net_recv_data_exit(iface, pkt, ret)
2160
2165#define sys_port_trace_net_send_data_enter(pkt)
2166
2172#define sys_port_trace_net_send_data_exit(pkt, ret)
2173
2179#define sys_port_trace_net_rx_time(pkt, end_time)
2180
2186#define sys_port_trace_net_tx_time(pkt, end_time)
2187
2188 /* end of subsys_tracing_apis_net */
2189
2203#define sys_port_trace_socket_init(socket, family, type, proto)
2204
2209#define sys_port_trace_socket_close_enter(socket)
2210
2216#define sys_port_trace_socket_close_exit(socket, ret)
2217
2223#define sys_port_trace_socket_shutdown_enter(socket, how)
2224
2230#define sys_port_trace_socket_shutdown_exit(socket, ret)
2231
2238#define sys_port_trace_socket_bind_enter(socket, addr, addrlen)
2239
2245#define sys_port_trace_socket_bind_exit(socket, ret)
2246
2253#define sys_port_trace_socket_connect_enter(socket, addr, addrlen)
2254
2260#define sys_port_trace_socket_connect_exit(socket, ret)
2261
2267#define sys_port_trace_socket_listen_enter(socket, backlog)
2268
2274#define sys_port_trace_socket_listen_exit(socket, ret)
2275
2280#define sys_port_trace_socket_accept_enter(socket)
2281
2289#define sys_port_trace_socket_accept_exit(socket, addr, addrlen, ret)
2290
2299#define sys_port_trace_socket_sendto_enter(socket, len, flags, dest_addr, addrlen)
2300
2306#define sys_port_trace_socket_sendto_exit(socket, ret)
2307
2314#define sys_port_trace_socket_sendmsg_enter(socket, msg, flags)
2315
2321#define sys_port_trace_socket_sendmsg_exit(socket, ret)
2322
2331#define sys_port_trace_socket_recvfrom_enter(socket, max_len, flags, addr, addrlen)
2332
2340#define sys_port_trace_socket_recvfrom_exit(socket, src_addr, addrlen, ret)
2341
2348#define sys_port_trace_socket_recvmsg_enter(socket, msg, flags)
2349
2356#define sys_port_trace_socket_recvmsg_exit(socket, msg, ret)
2357
2364#define sys_port_trace_socket_fcntl_enter(socket, cmd, flags)
2365
2371#define sys_port_trace_socket_fcntl_exit(socket, ret)
2372
2378#define sys_port_trace_socket_ioctl_enter(socket, req)
2379
2385#define sys_port_trace_socket_ioctl_exit(socket, ret)
2386
2393#define sys_port_trace_socket_poll_enter(fds, nfds, timeout)
2394
2401#define sys_port_trace_socket_poll_exit(fds, nfds, ret)
2402
2409#define sys_port_trace_socket_getsockopt_enter(socket, level, optname)
2410
2420#define sys_port_trace_socket_getsockopt_exit(socket, level, optname, optval, optlen, ret)
2421
2430#define sys_port_trace_socket_setsockopt_enter(socket, level, optname, optval, optlen)
2431
2437#define sys_port_trace_socket_setsockopt_exit(socket, ret)
2438
2443#define sys_port_trace_socket_getpeername_enter(socket)
2444
2452#define sys_port_trace_socket_getpeername_exit(socket, addr, addrlen, ret)
2453
2458#define sys_port_trace_socket_getsockname_enter(socket)
2459
2467#define sys_port_trace_socket_getsockname_exit(socket, addr, addrlen, ret)
2468
2476#define sys_port_trace_socket_socketpair_enter(family, type, proto, sv)
2477
2484#define sys_port_trace_socket_socketpair_exit(socket_A, socket_B, ret)
2485
2486 /* end of subsys_tracing_apis_socket */
2487
2494/*
2495 * @brief Called by user to generate named events
2496 *
2497 * @param name name of event. Tracing subsystems may place a limit on
2498 * the length of this string
2499 * @param arg0 arbitrary user-provided data for this event
2500 * @param arg1 arbitrary user-provided data for this event
2501 */
2502#define sys_trace_named_event(name, arg0, arg1)
2503
2504 /* end of subsys_tracing_apis_named */
2505
2518#define sys_port_trace_gpio_pin_interrupt_configure_enter(port, pin, flags)
2519
2526#define sys_port_trace_gpio_pin_interrupt_configure_exit(port, pin, ret)
2527
2534#define sys_port_trace_gpio_pin_configure_enter(port, pin, flags)
2535
2542#define sys_port_trace_gpio_pin_configure_exit(port, pin, ret)
2543
2551#define sys_port_trace_gpio_port_get_direction_enter(port, map, inputs, outputs)
2552
2558#define sys_port_trace_gpio_port_get_direction_exit(port, ret)
2559
2566#define sys_port_trace_gpio_pin_get_config_enter(port, pin, flags)
2567
2574#define sys_port_trace_gpio_pin_get_config_exit(port, pin, ret)
2575
2581#define sys_port_trace_gpio_port_get_raw_enter(port, value)
2582
2588#define sys_port_trace_gpio_port_get_raw_exit(port, ret)
2589
2596#define sys_port_trace_gpio_port_set_masked_raw_enter(port, mask, value)
2597
2603#define sys_port_trace_gpio_port_set_masked_raw_exit(port, ret)
2604
2610#define sys_port_trace_gpio_port_set_bits_raw_enter(port, pins)
2611
2617#define sys_port_trace_gpio_port_set_bits_raw_exit(port, ret)
2618
2624#define sys_port_trace_gpio_port_clear_bits_raw_enter(port, pins)
2625
2631#define sys_port_trace_gpio_port_clear_bits_raw_exit(port, ret)
2632
2638#define sys_port_trace_gpio_port_toggle_bits_enter(port, pins)
2639
2645#define sys_port_trace_gpio_port_toggle_bits_exit(port, ret)
2646
2653#define sys_port_trace_gpio_init_callback_enter(callback, handler, pin_mask)
2654
2659#define sys_port_trace_gpio_init_callback_exit(callback)
2660
2666#define sys_port_trace_gpio_add_callback_enter(port, callback)
2667
2673#define sys_port_trace_gpio_add_callback_exit(port, ret)
2674
2680#define sys_port_trace_gpio_remove_callback_enter(port, callback)
2681
2687#define sys_port_trace_gpio_remove_callback_exit(port, ret)
2688
2693#define sys_port_trace_gpio_get_pending_int_enter(dev)
2694
2700#define sys_port_trace_gpio_get_pending_int_exit(dev, ret)
2701
2708#define sys_port_trace_gpio_fire_callbacks_enter(list, port, pins)
2709
2715#define sys_port_trace_gpio_fire_callback(port, callback)
2716
2717 /* end of subsys_tracing_apis_gpio */
2718
2719#if defined(CONFIG_PERCEPIO_TRACERECORDER)
2720#include "tracing_tracerecorder.h"
2721#else
2726
2731
2736
2741#endif /* CONFIG_PERCEPIO_TRACERECORDER */
2742
2746#define sys_trace_sys_init_enter(entry, level)
2747
2751#define sys_trace_sys_init_exit(entry, level, result)
2752
2753 /* end of subsys_tracing_apis */
2754
2755 /* end of subsys_tracing */
2756
2757#endif
2758#endif /* ZEPHYR_INCLUDE_TRACING_TRACING_H_ */
void sys_trace_isr_exit_to_scheduler(void)
Called when exiting an ISR and switching to scheduler.
void sys_trace_isr_enter(void)
Called when entering an ISR.
void sys_trace_isr_exit(void)
Called when exiting an ISR.
void sys_trace_idle(void)
Called when the cpu enters the idle state.
Public kernel APIs.