Home
last modified time | relevance | path

Searched full:timestamp (Results 1 – 25 of 363) sorted by relevance

12345678910>>...15

/Zephyr-latest/samples/drivers/misc/timeaware_gpio/
DREADME.rst41 [TGPIO] timestamp: 0000000000000000, event count: 0000000000000000
42 [TGPIO] timestamp: 0000000148a3cf31, event count: 0000000000000001
43 [TGPIO] timestamp: 0000000149c8c731, event count: 0000000000000002
44 [TGPIO] timestamp: 000000014aedbf31, event count: 0000000000000003
45 [TGPIO] timestamp: 000000014c12b731, event count: 0000000000000004
46 [TGPIO] timestamp: 000000014d37af31, event count: 0000000000000005
47 [TGPIO] timestamp: 000000014e5ca731, event count: 0000000000000006
48 [TGPIO] timestamp: 000000014f819f31, event count: 0000000000000007
49 [TGPIO] timestamp: 0000000150a69731, event count: 0000000000000008
50 [TGPIO] timestamp: 0000000151cb8f31, event count: 0000000000000009
[all …]
/Zephyr-latest/samples/boards/nordic/nrf53_sync_rtc/
DREADME.rst16 core. In the context of the IPC interrupt handler, network core is logging timestamp
19 and once procedure is completed timestamps are synchronized. Network core timestamp
63 [00:00:00.054,534] <inf> main: Local timestamp: 1787, application core timestamp: 10056
64 [00:00:00.104,553] <inf> main: Local timestamp: 3426, application core timestamp: 11695
65 [00:00:00.154,571] <inf> main: Local timestamp: 5065, application core timestamp: 13334
66 [00:00:00.204,589] <inf> main: Local timestamp: 6704, application core timestamp: 14973
67 [00:00:00.254,608] <inf> main: Local timestamp: 8343, application core timestamp: 16612
68 [00:00:00.514,892] <inf> sync_rtc: Updated timestamp to synchronized RTC by 8270 ticks (252380us)
69 [00:00:00.557,006] <inf> main: Local timestamp: 18252, application core timestamp: 18251
70 [00:00:00.607,025] <inf> main: Local timestamp: 19891, application core timestamp: 19890
[all …]
Dsample.yaml23 - "sync_rtc: Updated timestamp to synchronized RTC by .* ticks"
25 - "main: Local timestamp: .*, application core timestamp:"
/Zephyr-latest/tests/benchmarks/cmsis_dsp/common/
Dbenchmark_common.h18 static ALWAYS_INLINE void benchmark_begin(uint32_t *irq_key, uint32_t *timestamp) in benchmark_begin() argument
20 ARG_UNUSED(timestamp); in benchmark_begin()
30 static ALWAYS_INLINE uint32_t benchmark_end(uint32_t irq_key, uint32_t timestamp) in benchmark_end() argument
47 static ALWAYS_INLINE void benchmark_begin(uint32_t *irq_key, uint32_t *timestamp) in benchmark_begin() argument
54 /* Read timestamp for the beginning of benchmark */ in benchmark_begin()
57 /* Store timestamp */ in benchmark_begin()
58 *timestamp = now; in benchmark_begin()
61 static ALWAYS_INLINE uint32_t benchmark_end(uint32_t irq_key, uint32_t timestamp) in benchmark_end() argument
65 /* Read timestamp for the end of benchmark */ in benchmark_end()
72 return now - timestamp; in benchmark_end()
/Zephyr-latest/include/zephyr/logging/
Dlog_output_custom.h42 * @brief Prototype of a printer function that can print the given timestamp
59 * to a timestamp when LOG_OUTPUT_FORMAT_CUSTOM_TIMESTAMP
64 * const log_timestamp_t timestamp,
66 * return printer(output, "%d ", timestamp);
71 * @param timestamp
72 * @param printer The printing function to use when formatting the timestamp.
75 const log_timestamp_t timestamp,
78 /** @brief Format the timestamp with a external function.
84 * @param timestamp
85 * @param printer The printing function to use when formatting the timestamp.
[all …]
/Zephyr-latest/soc/intel/intel_adsp/ace/
Dtimestamp.c28 int intel_adsp_get_timestamp(uint32_t tsctrl, struct intel_adsp_timestamp *timestamp) in intel_adsp_get_timestamp() argument
45 /* Abort if any timestamp capture in progress */ in intel_adsp_get_timestamp()
65 /* Start new timestamp capture by setting one of mutually exclusive in intel_adsp_get_timestamp()
71 /* Wait for timestamp capture to complete */ in intel_adsp_get_timestamp()
79 /* Copy the timestamp data from HW registers to the snapshot buffer in intel_adsp_get_timestamp()
80 * provided by caller. As NTK bit is high at this stage, the timestamp in intel_adsp_get_timestamp()
83 timestamp->iscs = sys_read32(ISCS_ADDR); in intel_adsp_get_timestamp()
84 timestamp->lscs = sys_read64(LSCS_ADDR); in intel_adsp_get_timestamp()
85 timestamp->dwccs = sys_read64(DWCCS_ADDR); in intel_adsp_get_timestamp()
86 timestamp->artcs = sys_read64(ARTCS_ADDR); in intel_adsp_get_timestamp()
[all …]
/Zephyr-latest/subsys/net/lib/sntp/
Dsntp_pkt.h30 uint32_t orig_tm_s; /* Originate timestamp seconds */
31 uint32_t orig_tm_f; /* Originate timestamp seconds fraction */
32 uint32_t rx_tm_s; /* Receive timestamp seconds */
33 uint32_t rx_tm_f; /* Receive timestamp seconds fraction */
34 uint32_t tx_tm_s; /* Transmit timestamp seconds */
35 uint32_t tx_tm_f; /* Transmit timestamp seconds fraction */
DKconfig13 bool "Calculate SNTP uncertainty and set uptime timestamp"
15 Get a more reliable timestamp by supplying the sntp_time struct with an
16 uptime timestamp of when the time was valid and an uncertainty of the
18 seconds,fraction +/- uncertainty at uptime timestamp.
/Zephyr-latest/include/zephyr/net/
Dptp_time.h36 * @brief (Generalized) Precision Time Protocol Timestamp format.
38 * @details This structure represents a timestamp according to the Precision
48 * local clock ("LocalClock") at which the message timestamp point passes a
52 * The exact definitions of the <em>message timestamp point</em> and
55 * For (g)PTP the media-specific message timestamp points and reference planes
58 * context-specific message timestamp point and reference plane, defined below
68 * (e.g. an ethernet peripheral with hardware timestamp support or a radio
88 * to be sent over the medium (timed TX). A future timestamp and a duration,
92 * In Zephyr this timestamp structure is currently used in the following
95 * section 11): the reference plane and message timestamp points are as
[all …]
/Zephyr-latest/subsys/logging/
DKconfig.formatting42 bool "Disable MIPI Sys-T protocol timestamp"
44 Remove the timestamp from the MIPI Sys-T protocol.
170 Selected by log backends that supports timestamp formatting.
173 bool "Timestamp formatting in the backend"
177 When enabled timestamp is formatted.
180 prompt "Timestamp format mode"
185 bool "Format timestamp in time format"
187 When enabled timestamp is formatted to hh:mm:ss.ms,us.
190 bool "Format timestamp in date format"
193 When enabled timestamp is formatted to YYYY-MM-DD hh:mm:ss.ms,us.
[all …]
/Zephyr-latest/tests/subsys/logging/log_link_order/src/
Dmain.c24 static log_timestamp_t timestamp; variable
46 return timestamp++; in timestamp_get()
56 timestamp = 0; in log_setup()
84 zassert_equal(msg->log.hdr.timestamp, exp_timestamp, "%d: got:%d, exp:%d", in check_msg()
85 line, (int)msg->log.hdr.timestamp, exp_timestamp); in check_msg()
109 log2.hdr.timestamp = timestamp_get(); in ZTEST()
123 /* Get timestamp for second message before first. Simulate that it is in ZTEST()
137 * earlier timestamp. in ZTEST()
140 log2.hdr.timestamp = t; in ZTEST()
156 /* Get timestamp for second message before first. Simulate that it is in ZTEST()
[all …]
/Zephyr-latest/tests/benchmarks/latency_measure/src/
Devents.c45 timestamp.cycles = timing_cycles_get(&start, &finish); in event_ops_entry()
59 timestamp.cycles = timing_cycles_get(&start, &finish); in event_ops_entry()
73 timestamp.cycles = timing_cycles_get(&start, &finish); in event_ops_entry()
87 timestamp.cycles = timing_cycles_get(&start, &finish); in event_ops_entry()
103 timestamp.sample = timing_timestamp_get(); in start_thread_entry()
111 timestamp.sample = timing_timestamp_get(); in start_thread_entry()
134 /* 3. Record the final timestamp */ in alt_thread_entry()
137 mid = timestamp.sample; in alt_thread_entry()
150 /* 6. Record the final timestamp */ in alt_thread_entry()
153 mid = timestamp.sample; in alt_thread_entry()
[all …]
Dcondvar.c34 /* 1. Get the first timestamp and block on condvar */ in start_thread_entry()
43 sum[0] += timing_cycles_get(&start, &timestamp.sample); in start_thread_entry()
44 sum[1] += timing_cycles_get(&timestamp.sample, &finish); in start_thread_entry()
51 timestamp.cycles = sum[0]; in start_thread_entry()
54 timestamp.cycles = sum[1]; in start_thread_entry()
64 /* 2. Get midpoint timestamp and signal the condvar */ in alt_thread_entry()
66 timestamp.sample = timing_timestamp_get(); in alt_thread_entry()
113 cycles = timestamp.cycles; in condvar_blocking_ops()
124 cycles = timestamp.cycles; in condvar_blocking_ops()
Dfifo.c61 timestamp.cycles = put_sum; in fifo_put_get_thread_entry()
64 timestamp.cycles = get_sum; in fifo_put_get_thread_entry()
86 timestamp.cycles = put_sum; in fifo_put_get_thread_entry()
89 timestamp.cycles = get_sum; in fifo_put_get_thread_entry()
121 cycles = timestamp.cycles; in fifo_ops()
132 cycles = timestamp.cycles; in fifo_ops()
145 cycles = timestamp.cycles; in fifo_ops()
155 cycles = timestamp.cycles; in fifo_ops()
193 mid = timestamp.sample; in alt_thread_entry()
214 mid = timestamp.sample; in alt_thread_entry()
[all …]
Dlifo.c61 timestamp.cycles = put_sum; in lifo_put_get_thread_entry()
64 timestamp.cycles = get_sum; in lifo_put_get_thread_entry()
86 timestamp.cycles = put_sum; in lifo_put_get_thread_entry()
89 timestamp.cycles = get_sum; in lifo_put_get_thread_entry()
121 cycles = timestamp.cycles; in lifo_ops()
132 cycles = timestamp.cycles; in lifo_ops()
145 cycles = timestamp.cycles; in lifo_ops()
155 cycles = timestamp.cycles; in lifo_ops()
193 mid = timestamp.sample; in alt_thread_entry()
214 mid = timestamp.sample; in alt_thread_entry()
[all …]
Dthread.c42 timestamp.sample = timing_timestamp_get(); in alt_thread_entry()
50 timestamp.sample = timing_timestamp_get(); in alt_thread_entry()
55 timestamp.sample = timing_timestamp_get(); in alt_thread_entry()
125 finish = timestamp.sample; in start_thread_entry()
134 start = timestamp.sample; in start_thread_entry()
145 finish = timestamp.sample; in start_thread_entry()
156 timestamp.cycles = thread_create_sum; in start_thread_entry()
159 timestamp.cycles = thread_start_sum; in start_thread_entry()
162 timestamp.cycles = thread_suspend_sum; in start_thread_entry()
165 timestamp.cycles = thread_resume_sum; in start_thread_entry()
[all …]
Dsema_test_signal_release.c40 /* 5. Share the <mid> timestamp. */ in alt_thread_entry()
42 timestamp.sample = mid; in alt_thread_entry()
75 /* 3. Get the <finish> timestamp. */ in start_thread_entry()
81 * timestamp. in start_thread_entry()
86 /* 7. Retrieve the <mid> timestamp */ in start_thread_entry()
88 mid = timestamp.sample; in start_thread_entry()
98 timestamp.cycles = take_sum; in start_thread_entry()
102 timestamp.cycles = give_sum; in start_thread_entry()
139 cycles = timestamp.cycles; in sema_context_switch()
157 cycles = timestamp.cycles; in sema_context_switch()
[all …]
Dthread_switch_yield.c23 #include <zephyr/timestamp.h>
39 /* 3. Obtain the 'finish' timestamp */ in alt_thread_entry()
41 timestamp.sample = timing_timestamp_get(); in alt_thread_entry()
66 /* 1. Get 'start' timestamp */ in start_thread_entry()
74 /* 5. Get the 'finish' timestamp obtained in <alt_thread> */ in start_thread_entry()
76 finish = timestamp.sample; in start_thread_entry()
89 timestamp.cycles = sum; in start_thread_entry()
130 sum = timestamp.cycles; in thread_switch_yield_common()
/Zephyr-latest/soc/intel/intel_adsp/ace/include/
Dadsp_timestamp.h12 /* Captured timestamp data - contains a copy of all DfTTS snapshot registers. */
25 * @param timestamp Captured timestamp data
27 int intel_adsp_get_timestamp(uint32_t tsctrl, struct intel_adsp_timestamp *timestamp);
/Zephyr-latest/tests/benchmarks/cmsis_dsp/basicmath/src/
Df32.c152 uint32_t irq_key, timestamp, timespan; in ZTEST() local
160 benchmark_begin(&irq_key, &timestamp); in ZTEST()
168 timespan = benchmark_end(irq_key, timestamp); in ZTEST()
179 uint32_t irq_key, timestamp, timespan; in ZTEST() local
187 benchmark_begin(&irq_key, &timestamp); in ZTEST()
195 timespan = benchmark_end(irq_key, timestamp); in ZTEST()
206 uint32_t irq_key, timestamp, timespan; in ZTEST() local
214 benchmark_begin(&irq_key, &timestamp); in ZTEST()
222 timespan = benchmark_end(irq_key, timestamp); in ZTEST()
233 uint32_t irq_key, timestamp, timespan; in ZTEST() local
[all …]
Dq15.c88 uint32_t irq_key, timestamp, timespan; in ZTEST() local
96 benchmark_begin(&irq_key, &timestamp); in ZTEST()
102 timespan = benchmark_end(irq_key, timestamp); in ZTEST()
113 uint32_t irq_key, timestamp, timespan; in ZTEST() local
121 benchmark_begin(&irq_key, &timestamp); in ZTEST()
127 timespan = benchmark_end(irq_key, timestamp); in ZTEST()
138 uint32_t irq_key, timestamp, timespan; in ZTEST() local
146 benchmark_begin(&irq_key, &timestamp); in ZTEST()
152 timespan = benchmark_end(irq_key, timestamp); in ZTEST()
163 uint32_t irq_key, timestamp, timespan; in ZTEST() local
[all …]
Dq31.c152 uint32_t irq_key, timestamp, timespan; in ZTEST() local
160 benchmark_begin(&irq_key, &timestamp); in ZTEST()
166 timespan = benchmark_end(irq_key, timestamp); in ZTEST()
177 uint32_t irq_key, timestamp, timespan; in ZTEST() local
185 benchmark_begin(&irq_key, &timestamp); in ZTEST()
191 timespan = benchmark_end(irq_key, timestamp); in ZTEST()
202 uint32_t irq_key, timestamp, timespan; in ZTEST() local
210 benchmark_begin(&irq_key, &timestamp); in ZTEST()
216 timespan = benchmark_end(irq_key, timestamp); in ZTEST()
227 uint32_t irq_key, timestamp, timespan; in ZTEST() local
[all …]
Dq7.c88 uint32_t irq_key, timestamp, timespan; in ZTEST() local
96 benchmark_begin(&irq_key, &timestamp); in ZTEST()
102 timespan = benchmark_end(irq_key, timestamp); in ZTEST()
113 uint32_t irq_key, timestamp, timespan; in ZTEST() local
121 benchmark_begin(&irq_key, &timestamp); in ZTEST()
127 timespan = benchmark_end(irq_key, timestamp); in ZTEST()
138 uint32_t irq_key, timestamp, timespan; in ZTEST() local
146 benchmark_begin(&irq_key, &timestamp); in ZTEST()
152 timespan = benchmark_end(irq_key, timestamp); in ZTEST()
163 uint32_t irq_key, timestamp, timespan; in ZTEST() local
[all …]
/Zephyr-latest/include/zephyr/sensing/
Dsensing_datatypes.h30 * timestamp of readings[0] is
32 * timestamp of readings[1] is
33 * timestamp of readings[0] + readings[1].timestamp_delta.
35 * Since timestamp unit is micro seconds, the max 'timestamp_delta' (uint32_t)
48 /** Base timestamp of this data readings, unit is micro seconds */
72 /** Timestamp delta of the reading. Unit is micro seconds. */
101 /** Timestamp delta of the reading. Unit is micro seconds. */
121 /** Timestamp delta of the reading. Unit is micro seconds. */
/Zephyr-latest/samples/drivers/misc/timeaware_gpio/src/
Dmain.c12 * b. How to timestamp a pulse on an input pin
59 /* Configure external timestamp for input pulses */ in main()
62 printk("[TGPIO] external timestamp configuration failed\n"); in main()
67 /* Read timestamp and event counter values */ in main()
69 printk("[TGPIO] timestamp: %016llx, event count: %016llx\n", ts, ec); in main()

12345678910>>...15