/linux/tools/perf/util/ |
A D | ordered-events.c | 21 u64 timestamp = new->timestamp; in queue_event() local 31 oe->max_timestamp = timestamp; in queue_event() 40 if (last->timestamp <= timestamp) { in queue_event() 41 while (last->timestamp <= timestamp) { in queue_event() 52 while (last->timestamp > timestamp) { in queue_event() 179 new->timestamp = timestamp; in ordered_events__new_event() 199 if (!timestamp || timestamp == ~0ULL) in ordered_events__queue() 267 u64 timestamp) in __ordered_events__flush() argument 304 oe->next_flush += (last->timestamp - first->timestamp) / 2; in __ordered_events__flush() 309 oe->next_flush = timestamp; in __ordered_events__flush() [all …]
|
A D | time-utils.c | 422 if (timestamp == 0) in perf_time__skip_sample() 426 if ((ptime->start && timestamp < ptime->start) || in perf_time__skip_sample() 427 (ptime->end && timestamp > ptime->end)) { in perf_time__skip_sample() 435 int num, u64 timestamp) in perf_time__ranges_skip_sample() argument 440 if ((!ptime_buf) || (timestamp == 0) || (num == 0)) in perf_time__ranges_skip_sample() 452 if (timestamp >= ptime->start && in perf_time__ranges_skip_sample() 453 (timestamp <= ptime->end || !ptime->end)) { in perf_time__ranges_skip_sample() 530 u64 sec = timestamp / NSEC_PER_SEC; in timestamp__scnprintf_usec() 531 u64 usec = (timestamp % NSEC_PER_SEC) / NSEC_PER_USEC; in timestamp__scnprintf_usec() 538 u64 sec = timestamp / NSEC_PER_SEC, in timestamp__scnprintf_nsec() [all …]
|
A D | arm-spe.c | 91 u64 timestamp; member 548 if (record->timestamp > speq->timestamp) in arm_spe_run_decoder() 549 speq->timestamp = record->timestamp; in arm_spe_run_decoder() 556 if (!spe->timeless_decoding && speq->timestamp >= *timestamp) { in arm_spe_run_decoder() 557 *timestamp = speq->timestamp; in arm_spe_run_decoder() 602 speq->timestamp = record->timestamp; in arm_spe__setup_queue() 678 if (ts > timestamp) in arm_spe_process_queues() 679 ts = timestamp; in arm_spe_process_queues() 681 ts = timestamp; in arm_spe_process_queues() 754 u64 timestamp; in arm_spe_process_event() local [all …]
|
A D | thread.c | 173 static int __thread__set_namespaces(struct thread *thread, u64 timestamp, in __thread__set_namespaces() argument 184 if (timestamp && curr) { in __thread__set_namespaces() 191 curr->end_time = timestamp; in __thread__set_namespaces() 197 int thread__set_namespaces(struct thread *thread, u64 timestamp, in thread__set_namespaces() argument 203 ret = __thread__set_namespaces(thread, timestamp, event); in thread__set_namespaces() 240 u64 timestamp, bool exec) in ____thread__set_comm() argument 246 int err = comm__override(curr, str, timestamp, exec); in ____thread__set_comm() 250 new = comm__new(str, timestamp, exec); in ____thread__set_comm() 264 int __thread__set_comm(struct thread *thread, const char *str, u64 timestamp, in __thread__set_comm() argument 270 ret = ____thread__set_comm(thread, str, timestamp, exec); in __thread__set_comm() [all …]
|
A D | time-utils.h | 22 bool perf_time__skip_sample(struct perf_time_interval *ptime, u64 timestamp); 25 int num, u64 timestamp); 38 int timestamp__scnprintf_usec(u64 timestamp, char *buf, size_t sz); 39 int timestamp__scnprintf_nsec(u64 timestamp, char *buf, size_t sz);
|
/linux/drivers/net/can/spi/mcp251xfd/ |
A D | mcp251xfd-timestamp.c | 17 u32 timestamp = 0; in mcp251xfd_timestamp_read() local 21 err = mcp251xfd_get_timestamp(priv, ×tamp); in mcp251xfd_timestamp_read() 27 return timestamp; in mcp251xfd_timestamp_read() 35 priv = container_of(delayed_work, struct mcp251xfd_priv, timestamp); in mcp251xfd_timestamp_work() 38 schedule_delayed_work(&priv->timestamp, in mcp251xfd_timestamp_work() 43 struct sk_buff *skb, u32 timestamp) in mcp251xfd_skb_set_timestamp() argument 48 ns = timecounter_cyc2time(&priv->tc, timestamp); in mcp251xfd_skb_set_timestamp() 63 INIT_DELAYED_WORK(&priv->timestamp, mcp251xfd_timestamp_work); in mcp251xfd_timestamp_init() 64 schedule_delayed_work(&priv->timestamp, in mcp251xfd_timestamp_init() 70 cancel_delayed_work_sync(&priv->timestamp); in mcp251xfd_timestamp_stop()
|
/linux/arch/alpha/kernel/ |
A D | err_common.c | 91 union el_timestamp timestamp; in el_process_header_subpacket() local 109 timestamp.as_int = 0; in el_process_header_subpacket() 116 timestamp = header->by_type.sys_event.timestamp; in el_process_header_subpacket() 123 timestamp = header->by_type.err_halt.timestamp; in el_process_header_subpacket() 129 timestamp.as_int = 0; in el_process_header_subpacket() 143 el_print_timestamp(×tamp); in el_process_header_subpacket() 169 el_print_timestamp(union el_timestamp *timestamp) in el_print_timestamp() argument 171 if (timestamp->as_int) in el_print_timestamp() 174 timestamp->b.month, timestamp->b.day, in el_print_timestamp() 175 timestamp->b.year, timestamp->b.hour, in el_print_timestamp() [all …]
|
/linux/drivers/net/can/dev/ |
A D | rx-offload.c | 12 u32 timestamp; member 90 cb_pos->timestamp, cb_new->timestamp, in __skb_queue_add_sort() 91 cb_new->timestamp - cb_pos->timestamp, in __skb_queue_add_sort() 115 return cb_b->timestamp - cb_a->timestamp; in can_rx_offload_compare() 145 u32 timestamp; in can_rx_offload_offload_one() local 152 skb = offload->mailbox_read(offload, n, ×tamp, drop); in can_rx_offload_offload_one() 169 cb->timestamp = timestamp; in can_rx_offload_offload_one() 222 struct sk_buff *skb, u32 timestamp) in can_rx_offload_queue_sorted() argument 233 cb->timestamp = timestamp; in can_rx_offload_queue_sorted() 243 unsigned int idx, u32 timestamp, in can_rx_offload_get_echo_skb() argument [all …]
|
/linux/tools/perf/util/intel-pt-decoder/ |
A D | intel-pt-decoder.c | 852 if (timestamp < data->timestamp) in intel_pt_calc_cyc_cb() 856 data->timestamp = timestamp; in intel_pt_calc_cyc_cb() 874 if (timestamp < data->timestamp) in intel_pt_calc_cyc_cb() 880 data->timestamp = timestamp; in intel_pt_calc_cyc_cb() 1570 decoder->timestamp = timestamp; in intel_pt_calc_tsc_timestamp() 1581 timestamp = decoder->timestamp; in intel_pt_calc_tsc_timestamp() 1591 timestamp = decoder->timestamp; in intel_pt_calc_tsc_timestamp() 1599 decoder->timestamp = timestamp; in intel_pt_calc_tsc_timestamp() 1733 if (timestamp < decoder->timestamp) in intel_pt_calc_mtc_timestamp() 1737 decoder->timestamp = timestamp; in intel_pt_calc_mtc_timestamp() [all …]
|
/linux/include/trace/events/ |
A D | power_cpu_migrate.h | 11 TP_PROTO(u64 timestamp, \ 14 TP_ARGS(timestamp, \ 23 __field(u64, timestamp ) 28 __entry->timestamp = timestamp; 33 (unsigned long long)__entry->timestamp,
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
A D | clock.h | 66 u64 timestamp) in mlx5_timecounter_cyc2time() argument 74 nsec = timecounter_cyc2time(&timer->tc, timestamp); in mlx5_timecounter_cyc2time() 83 u64 timestamp) in mlx5_real_time_cyc2time() argument 85 u64 time = REAL_TIME_TO_NS(timestamp >> 32, timestamp & 0xFFFFFFFF); in mlx5_real_time_cyc2time() 98 u64 timestamp) in mlx5_timecounter_cyc2time() argument 104 u64 timestamp) in mlx5_real_time_cyc2time() argument
|
/linux/drivers/platform/chrome/ |
A D | cros_ec_sensorhub_ring.c | 364 sample->timestamp) in cros_ec_sensor_ring_check_for_past_timestamp() 366 sample->timestamp = in cros_ec_sensor_ring_check_for_past_timestamp() 370 sample->timestamp; in cros_ec_sensor_ring_check_for_past_timestamp() 404 s64 a = in->timestamp; in cros_ec_sensor_ring_process_event() 434 fifo_info->timestamp, in cros_ec_sensor_ring_process_event() 472 fifo_info->timestamp, in cros_ec_sensor_ring_process_event() 494 out->timestamp = now; in cros_ec_sensor_ring_process_event() 718 s64 timestamp; in cros_ec_sensor_ring_spread_add_legacy() local 727 timestamp = out->timestamp; in cros_ec_sensor_ring_spread_add_legacy() 747 timestamp += time_period; in cros_ec_sensor_ring_spread_add_legacy() [all …]
|
/linux/drivers/iio/imu/inv_mpu6050/ |
A D | inv_mpu_ring.c | 29 s64 timestamp, size_t nb) in inv_mpu6050_update_period() argument 51 delta = div_s64(timestamp - st->it_timestamp, divider); in inv_mpu6050_update_period() 66 st->data_timestamp = timestamp - interval; in inv_mpu6050_update_period() 70 st->it_timestamp = timestamp; in inv_mpu6050_update_period() 124 s64 timestamp; in inv_mpu6050_read_fifo() local 180 inv_mpu6050_update_period(st, pf->timestamp, nb); in inv_mpu6050_read_fifo() 191 timestamp = inv_mpu6050_get_timestamp(st); in inv_mpu6050_read_fifo() 192 iio_push_to_buffers_with_timestamp(indio_dev, st->data, timestamp); in inv_mpu6050_read_fifo()
|
/linux/Documentation/networking/ |
A D | timestamping.rst | 25 timestamp as struct timespec in nsec resolution. 34 reading the looped packet receive timestamp. 52 Always use SO_TIMESTAMP_NEW timestamp to always get timestamp in 65 Always use SO_TIMESTAMPNS_NEW timestamp to always get timestamp in 127 timestamp taken immediately before send() from this timestamp. On 237 each containing just one timestamp. 367 Always use SO_TIMESTAMPING_NEW timestamp to always get timestamp in 419 case the timestamp is stored in ts[0]. 645 PTP TX timestamp register (or sometimes a FIFO) where the timestamp 704 timestamp is available. [all …]
|
/linux/drivers/iio/imu/inv_icm42600/ |
A D | inv_icm42600_timestamp.c | 113 size_t sensor_nb, int64_t timestamp) in inv_icm42600_timestamp_interrupt() argument 128 it->up = timestamp; in inv_icm42600_timestamp_interrupt() 140 if (ts->timestamp == 0) { in inv_icm42600_timestamp_interrupt() 143 ts->timestamp = it->up - interval; in inv_icm42600_timestamp_interrupt() 152 delta = it->lo - ts->timestamp; in inv_icm42600_timestamp_interrupt() 162 ts->timestamp += delta; in inv_icm42600_timestamp_interrupt() 187 if (ts->timestamp != 0) { in inv_icm42600_timestamp_apply_odr() 193 ts->timestamp = ts->it.up - interval; in inv_icm42600_timestamp_apply_odr()
|
A D | inv_icm42600_timestamp.h | 46 int64_t timestamp; member 63 size_t sensor_nb, int64_t timestamp); 68 ts->timestamp += ts->period; in inv_icm42600_timestamp_pop() 69 return ts->timestamp; in inv_icm42600_timestamp_pop() 82 ts->timestamp = 0; in inv_icm42600_timestamp_reset()
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/timer/ |
A D | base.c | 79 if (alarm->timestamp > nvkm_timer_read(tmr)) { in nvkm_timer_alarm_trigger() 81 tmr->func->alarm_init(tmr, alarm->timestamp); in nvkm_timer_alarm_trigger() 82 if (alarm->timestamp > nvkm_timer_read(tmr)) in nvkm_timer_alarm_trigger() 121 alarm->timestamp = nvkm_timer_read(tmr) + nsec; in nvkm_timer_alarm() 123 if (list->timestamp > alarm->timestamp) in nvkm_timer_alarm() 132 tmr->func->alarm_init(tmr, alarm->timestamp); in nvkm_timer_alarm() 138 WARN_ON(alarm->timestamp <= nvkm_timer_read(tmr)); in nvkm_timer_alarm()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
A D | fw_tracer.h | 60 u64 timestamp; member 118 u32 timestamp; member 142 u64 timestamp; member 147 u32 timestamp; member 165 u8 timestamp[0x7]; member 172 u8 timestamp[0x7]; member
|
/linux/Documentation/trace/postprocess/ |
A D | trace-vmscan-postprocess.pl | 261 my $timestamp = $_[0]; 263 my ($sec, $usec) = split (/\./, $timestamp); 271 my $timestamp; 281 $timestamp = $4; 306 $timestamp = timestamp_to_ms($timestamp); 308 $perprocesspid{$process_pid}->{STATE_DIRECT_BEGIN} = $timestamp; 327 $timestamp = timestamp_to_ms($timestamp); 344 $timestamp = timestamp_to_ms($timestamp); 346 $perprocesspid{$process_pid}->{STATE_KSWAPD_BEGIN} = $timestamp; 359 $timestamp = timestamp_to_ms($timestamp); [all …]
|
/linux/drivers/net/wireless/ath/ath9k/ |
A D | link.c | 312 unsigned int timestamp = jiffies_to_msecs(jiffies); in ath_ani_calibrate() local 343 common->ani.longcal_timer = timestamp; in ath_ani_calibrate() 350 common->ani.shortcal_timer = timestamp; in ath_ani_calibrate() 351 common->ani.resetcal_timer = timestamp; in ath_ani_calibrate() 354 if ((timestamp - common->ani.resetcal_timer) >= in ath_ani_calibrate() 358 common->ani.resetcal_timer = timestamp; in ath_ani_calibrate() 365 common->ani.checkani_timer = timestamp; in ath_ani_calibrate() 425 unsigned long timestamp = jiffies_to_msecs(jiffies); in ath_start_ani() local 432 common->ani.longcal_timer = timestamp; in ath_start_ani() 433 common->ani.shortcal_timer = timestamp; in ath_start_ani() [all …]
|
/linux/drivers/media/v4l2-core/ |
A D | v4l2-compat-ioctl32.c | 297 } timestamp; member 420 .timestamp.tv_sec = vb32.timestamp.tv_sec, in get_v4l2_buffer32() 421 .timestamp.tv_usec = vb32.timestamp.tv_usec, in get_v4l2_buffer32() 465 .timestamp.tv_sec = vb32.timestamp.tv_sec, in get_v4l2_buffer32_time32() 466 .timestamp.tv_usec = vb32.timestamp.tv_usec, in get_v4l2_buffer32_time32() 507 .timestamp.tv_sec = vb->timestamp.tv_sec, in put_v4l2_buffer32() 508 .timestamp.tv_usec = vb->timestamp.tv_usec, in put_v4l2_buffer32() 552 .timestamp.tv_sec = vb->timestamp.tv_sec, in put_v4l2_buffer32_time32() 553 .timestamp.tv_usec = vb->timestamp.tv_usec, in put_v4l2_buffer32_time32() 766 } timestamp; member [all …]
|
/linux/drivers/s390/scsi/ |
A D | zfcp_diag.c | 52 hdr->timestamp = jiffies - msecs_to_jiffies(diag->max_age); in zfcp_diag_adapter_setup() 61 hdr->timestamp = jiffies - msecs_to_jiffies(diag->max_age); in zfcp_diag_adapter_setup() 95 if (!time_after_eq(capture_timestamp, hdr->timestamp)) in zfcp_diag_update_xdata() 98 hdr->timestamp = capture_timestamp; in zfcp_diag_update_xdata() 209 if (!time_after_eq(now, hdr->timestamp)) in __zfcp_diag_test_buffer_age_isfresh() 212 if (jiffies_to_msecs(now - hdr->timestamp) >= diag->max_age) in __zfcp_diag_test_buffer_age_isfresh()
|
/linux/drivers/net/ethernet/qlogic/qed/ |
A D | qed_ptp.c | 103 static int qed_ptp_hw_read_rx_ts(struct qed_dev *cdev, u64 *timestamp) in qed_ptp_hw_read_rx_ts() argument 109 *timestamp = 0; in qed_ptp_hw_read_rx_ts() 117 *timestamp = qed_rd(p_hwfn, p_ptt, NIG_REG_LLH_PTP_HOST_BUF_TS_MSB); in qed_ptp_hw_read_rx_ts() 118 *timestamp <<= 32; in qed_ptp_hw_read_rx_ts() 119 *timestamp |= val; in qed_ptp_hw_read_rx_ts() 129 static int qed_ptp_hw_read_tx_ts(struct qed_dev *cdev, u64 *timestamp) in qed_ptp_hw_read_tx_ts() argument 135 *timestamp = 0; in qed_ptp_hw_read_tx_ts() 144 *timestamp = qed_rd(p_hwfn, p_ptt, NIG_REG_TX_LLH_PTP_BUF_TS_MSB); in qed_ptp_hw_read_tx_ts() 145 *timestamp <<= 32; in qed_ptp_hw_read_tx_ts() 146 *timestamp |= val; in qed_ptp_hw_read_tx_ts()
|
/linux/fs/udf/ |
A D | ecma_167.h | 70 struct timestamp { struct 226 struct timestamp recordingDateAndTime; 357 struct timestamp recordingDateAndTime; 436 struct timestamp recordingDateAndTime; 572 struct timestamp accessTime; 573 struct timestamp modificationTime; 574 struct timestamp attrTime; 800 struct timestamp accessTime; 801 struct timestamp modificationTime; 802 struct timestamp createTime; [all …]
|
/linux/usr/ |
A D | gen_initramfs.sh | 240 timestamp= 242 timestamp="$(date -d"$KBUILD_BUILD_TIMESTAMP" +%s || :)" 243 if test -n "$timestamp"; then 244 timestamp="-t $timestamp" 247 usr/gen_init_cpio $timestamp $cpio_list > $output
|