| /tools/perf/util/ |
| D | ordered-events.c | 21 u64 timestamp = new->timestamp; in queue_event() local 27 pr_oe_time2(timestamp, "queue_event nr_events %u\n", oe->nr_events); in queue_event() 31 oe->max_timestamp = timestamp; in queue_event() 40 if (last->timestamp <= timestamp) { in queue_event() 41 while (last->timestamp <= timestamp) { in queue_event() 45 oe->max_timestamp = timestamp; in queue_event() 52 while (last->timestamp > timestamp) { in queue_event() 172 ordered_events__new_event(struct ordered_events *oe, u64 timestamp, in ordered_events__new_event() argument 179 new->timestamp = timestamp; in ordered_events__new_event() 195 u64 timestamp, u64 file_offset, const char *file_path) in ordered_events__queue() argument [all …]
|
| 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);
|
| D | time-utils.c | 419 bool perf_time__skip_sample(struct perf_time_interval *ptime, u64 timestamp) in perf_time__skip_sample() argument 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() 444 return perf_time__skip_sample(&ptime_buf[0], timestamp); 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() 528 int timestamp__scnprintf_usec(u64 timestamp, char *buf, size_t sz) in timestamp__scnprintf_usec() argument [all …]
|
| D | comm.h | 23 struct comm *comm__new(const char *str, u64 timestamp, bool exec); 25 int comm__override(struct comm *comm, const char *str, u64 timestamp,
|
| D | thread.c | 164 static int __thread__set_namespaces(struct thread *thread, u64 timestamp, in __thread__set_namespaces() argument 175 if (timestamp && curr) { in __thread__set_namespaces() 182 curr->end_time = timestamp; in __thread__set_namespaces() 188 int thread__set_namespaces(struct thread *thread, u64 timestamp, in thread__set_namespaces() argument 194 ret = __thread__set_namespaces(thread, timestamp, event); in thread__set_namespaces() 231 u64 timestamp, bool exec) in ____thread__set_comm() argument 237 int err = comm__override(curr, str, timestamp, exec); in ____thread__set_comm() 241 new = comm__new(str, timestamp, exec); in ____thread__set_comm() 255 int __thread__set_comm(struct thread *thread, const char *str, u64 timestamp, in __thread__set_comm() argument 261 ret = ____thread__set_comm(thread, str, timestamp, exec); in __thread__set_comm() [all …]
|
| D | ordered-events.h | 10 u64 timestamp; member 57 u64 timestamp, u64 file_offset, const char *file_path); 60 int ordered_events__flush_time(struct ordered_events *oe, u64 timestamp);
|
| D | arm-spe.c | 98 u64 timestamp; member 305 sample->time = tsc_to_perf_time(record->timestamp, &spe->tc); in arm_spe_prep_sample() 643 static int arm_spe_run_decoder(struct arm_spe_queue *speq, u64 *timestamp) in arm_spe_run_decoder() argument 705 if (record->timestamp > speq->timestamp) in arm_spe_run_decoder() 706 speq->timestamp = record->timestamp; in arm_spe_run_decoder() 713 if (!spe->timeless_decoding && speq->timestamp >= *timestamp) { in arm_spe_run_decoder() 714 *timestamp = speq->timestamp; in arm_spe_run_decoder() 759 speq->timestamp = record->timestamp; in arm_spe__setup_queue() 760 ret = auxtrace_heap__add(&spe->heap, queue_nr, speq->timestamp); in arm_spe__setup_queue() 811 static int arm_spe_process_queues(struct arm_spe *spe, u64 timestamp) in arm_spe_process_queues() argument [all …]
|
| D | s390-cpumsf.c | 318 memcpy(&ts, &te->timestamp[idx], sizeof(ts)); in trailer_timestamp() 336 memcpy(&local.timestamp, te->timestamp, sizeof(te->timestamp)); in s390_cpumsf_trailer_show() 843 static int s390_cpumsf_process_queues(struct s390_cpumsf *sf, u64 timestamp) in s390_cpumsf_process_queues() argument 856 if (sf->heap.heap_array[0].ordinal >= timestamp) in s390_cpumsf_process_queues() 866 if (ts > timestamp) in s390_cpumsf_process_queues() 867 ts = timestamp; in s390_cpumsf_process_queues() 869 ts = timestamp; in s390_cpumsf_process_queues() 887 pid_t pid, pid_t tid, u64 ip, u64 timestamp) in s390_cpumsf_synth_error() argument 895 code, cpu, pid, tid, ip, msg, timestamp); in s390_cpumsf_synth_error() 920 u64 timestamp = sample->time; in s390_cpumsf_process_event() local [all …]
|
| D | comm.c | 190 struct comm *comm__new(const char *str, u64 timestamp, bool exec) in comm__new() argument 197 comm->start = timestamp; in comm__new() 209 int comm__override(struct comm *comm, const char *str, u64 timestamp, bool exec) in comm__override() argument 219 comm->start = timestamp; in comm__override()
|
| D | jitdump.h | 44 uint64_t timestamp; /* timestamp */ member 62 uint64_t timestamp; member
|
| D | thread.h | 91 int thread__set_namespaces(struct thread *thread, u64 timestamp, 94 int __thread__set_comm(struct thread *thread, const char *comm, u64 timestamp, 97 u64 timestamp) in thread__set_comm() argument 99 return __thread__set_comm(thread, comm, timestamp, false); in thread__set_comm() 109 int thread__fork(struct thread *thread, struct thread *parent, u64 timestamp, bool do_maps_clone);
|
| D | intel-pt.c | 213 u64 timestamp; member 1416 static void intel_pt_first_timestamp(struct intel_pt *pt, u64 timestamp) in intel_pt_first_timestamp() argument 1420 pt->first_timestamp = timestamp; in intel_pt_first_timestamp() 1427 intel_pt_set_first_timestamp(ptq->decoder, timestamp); in intel_pt_first_timestamp() 1635 if (state->timestamp) in intel_pt_setup_queue() 1639 ptq->timestamp = state->timestamp; in intel_pt_setup_queue() 1641 queue_nr, ptq->timestamp); in intel_pt_setup_queue() 1645 ptq->timestamp < ptq->sel_timestamp) in intel_pt_setup_queue() 1648 ret = auxtrace_heap__add(&pt->heap, queue_nr, ptq->timestamp); in intel_pt_setup_queue() 1720 sample->time = tsc_to_perf_time(ptq->timestamp, &pt->tc); in intel_pt_prep_b_sample() [all …]
|
| D | s390-cpumcf-kernel.h | 43 unsigned long timestamp; /* 128-191 Timestamp (TOD) */ member
|
| /tools/perf/tests/shell/ |
| D | test_arm_coresight.sh | 207 arm_cs_etm_basic_test -e cs_etm/timestamp=0/ --per-thread 208 arm_cs_etm_basic_test -e cs_etm/timestamp=1/ --per-thread 209 arm_cs_etm_basic_test -e cs_etm/timestamp=0/ -a 210 arm_cs_etm_basic_test -e cs_etm/timestamp=1/ -a 211 arm_cs_etm_basic_test -e cs_etm/timestamp=0/ 212 arm_cs_etm_basic_test -e cs_etm/timestamp=1/
|
| /tools/perf/util/intel-pt-decoder/ |
| D | intel-pt-decoder.c | 155 uint64_t timestamp; member 621 decoder->sample_timestamp = decoder->timestamp; in intel_pt_update_sample_time() 630 decoder->timestamp = 0; in intel_pt_reposition() 780 uint64_t timestamp; member 811 uint64_t timestamp; in intel_pt_calc_cyc_cb() local 858 timestamp = data->ctc_timestamp + in intel_pt_calc_cyc_cb() 861 timestamp = data->ctc_timestamp + in intel_pt_calc_cyc_cb() 867 if (timestamp < data->timestamp) in intel_pt_calc_cyc_cb() 871 data->timestamp = timestamp; in intel_pt_calc_cyc_cb() 884 timestamp = pkt_info->packet.payload | in intel_pt_calc_cyc_cb() [all …]
|
| /tools/testing/selftests/bpf/progs/ |
| D | xdp_metadata.c | 23 __u64 *timestamp) __ksym; 39 u64 timestamp = -1; in rx() local 87 bpf_xdp_metadata_rx_timestamp(ctx, ×tamp); in rx() 88 if (timestamp == 0) in rx()
|
| /tools/perf/util/bpf_skel/ |
| D | kwork_top.bpf.c | 26 __u64 timestamp; member 146 delta = ts - pelem->timestamp; in on_sched_out() 167 pelem->timestamp = ts; in on_sched_in() 220 .timestamp = ts, in on_irq_handler_entry() 256 if (pelem && pelem->timestamp != 0) in on_irq_handler_exit() 257 delta = ts - pelem->timestamp; in on_irq_handler_exit() 292 .timestamp = ts, in on_softirq_entry() 329 delta = ts - pelem->timestamp; in on_softirq_exit()
|
| D | off_cpu.bpf.c | 24 __u64 timestamp; member 206 pelem->timestamp = ts; in off_cpu_stat() 213 if (pelem && pelem->timestamp) { in off_cpu_stat() 221 __u64 delta = ts - pelem->timestamp; in off_cpu_stat() 231 pelem->timestamp = 0; in off_cpu_stat()
|
| /tools/counter/ |
| D | counter_example.c | 85 event_data[0].timestamp, event_data[0].value, in main() 87 event_data[1].timestamp, event_data[1].value, in main()
|
| /tools/perf/bench/ |
| D | inject-buildid.c | 173 static ssize_t synthesize_mmap(struct bench_data *data, struct bench_dso *dso, u64 timestamp) in synthesize_mmap() argument 207 id_hdr_ptr[ts_idx] = timestamp; in synthesize_mmap() 215 id_hdr_ptr[ts_idx] = timestamp; in synthesize_mmap() 219 static ssize_t synthesize_sample(struct bench_data *data, struct bench_dso *dso, u64 timestamp) in synthesize_sample() argument 226 .time = timestamp, in synthesize_sample() 367 u64 timestamp = rand() % 1000000; in inject_build_id() local 370 if (synthesize_mmap(data, dso, timestamp) < 0) in inject_build_id() 374 if (synthesize_sample(data, dso, timestamp + k * 1000) < 0) in inject_build_id()
|
| /tools/perf/ |
| D | builtin-timechart.c | 133 u64 timestamp; member 255 static void pid_fork(struct timechart *tchart, int pid, int ppid, u64 timestamp) in pid_fork() argument 264 p->start_time = timestamp; in pid_fork() 266 p->current->start_time = timestamp; in pid_fork() 267 p->current->state_since = timestamp; in pid_fork() 271 static void pid_exit(struct timechart *tchart, int pid, u64 timestamp) in pid_exit() argument 275 p->end_time = timestamp; in pid_exit() 277 p->current->end_time = timestamp; in pid_exit() 357 static void c_state_start(int cpu, u64 timestamp, int state) in c_state_start() argument 359 cpus_cstate_start_times[cpu] = timestamp; in c_state_start() [all …]
|
| D | builtin-sched.c | 89 u64 timestamp; member 353 get_new_event(struct task_desc *task, u64 timestamp) in get_new_event() argument 359 event->timestamp = timestamp; in get_new_event() 381 u64 timestamp, u64 duration) in add_sched_event_run() argument 395 event = get_new_event(task, timestamp); in add_sched_event_run() 404 u64 timestamp, struct task_desc *wakee) in add_sched_event_wakeup() argument 408 event = get_new_event(task, timestamp); in add_sched_event_wakeup() 431 u64 timestamp, const char task_state __maybe_unused) in add_sched_event_sleep() argument 433 struct sched_atom *event = get_new_event(task, timestamp); in add_sched_event_sleep() 857 u64 timestamp0, timestamp = sample->time; in replay_switch_event() local [all …]
|
| /tools/tracing/latency/ |
| D | latency-collector.c | 1073 const struct timespec *timestamp, char *buffer, in __print_skipmessage() argument 1082 sec = timestamp->tv_sec; in __print_skipmessage() 1083 us = timestamp->tv_nsec / 1000; in __print_skipmessage() 1112 const struct timespec *timestamp, char *buffer, in print_skipmessage() argument 1116 __print_skipmessage(resize_msg, timestamp, buffer, bufspace, req, in print_skipmessage() 1120 static void print_lostmessage(const struct timespec *timestamp, char *buffer, in print_lostmessage() argument 1124 __print_skipmessage(NULL, timestamp, buffer, bufspace, req, true, in print_lostmessage() 1129 const struct timespec *timestamp, char *buffer, in print_tracefile() argument 1159 sec = timestamp->tv_sec; in print_tracefile() 1160 us = timestamp->tv_nsec / 1000; in print_tracefile() [all …]
|
| /tools/include/uapi/linux/ |
| D | erspan.h | 21 __be32 timestamp; member
|
| /tools/testing/selftests/net/tcp_ao/lib/ |
| D | repair.c | 109 len = sizeof(state->timestamp); in __test_sock_checkpoint() 110 ret = getsockopt(sk, SOL_TCP, TCP_TIMESTAMP, &state->timestamp, &len); in __test_sock_checkpoint() 111 if (ret || len != sizeof(state->timestamp)) in __test_sock_checkpoint() 213 &state->timestamp, opt_nr * sizeof(opts[0]))) in __test_sock_restore()
|