| /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() 268 u64 timestamp) in __ordered_events__flush() argument 305 oe->next_flush += (last->timestamp - first->timestamp) / 2; in __ordered_events__flush() 310 oe->next_flush = timestamp; in __ordered_events__flush() [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);
|
| 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 | 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,
|
| A 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);
|
| A D | thread.c | 169 static int __thread__set_namespaces(struct thread *thread, u64 timestamp, in __thread__set_namespaces() argument 180 if (timestamp && curr) { in __thread__set_namespaces() 187 curr->end_time = timestamp; in __thread__set_namespaces() 193 int thread__set_namespaces(struct thread *thread, u64 timestamp, in thread__set_namespaces() argument 199 ret = __thread__set_namespaces(thread, timestamp, event); in thread__set_namespaces() 251 u64 timestamp, bool exec) in ____thread__set_comm() argument 258 int err = comm__override(curr, str, timestamp, exec); in ____thread__set_comm() 262 new = comm__new(str, timestamp, exec); in ____thread__set_comm() 276 int __thread__set_comm(struct thread *thread, const char *str, u64 timestamp, in __thread__set_comm() argument 282 ret = ____thread__set_comm(thread, str, timestamp, exec); in __thread__set_comm() [all …]
|
| A 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() 858 if (sf->heap.heap_array[0].ordinal >= timestamp) in s390_cpumsf_process_queues() 868 if (ts > timestamp) in s390_cpumsf_process_queues() 869 ts = timestamp; in s390_cpumsf_process_queues() 871 ts = timestamp; in s390_cpumsf_process_queues() 889 pid_t pid, pid_t tid, u64 ip, u64 timestamp) in s390_cpumsf_synth_error() argument 897 code, cpu, pid, tid, ip, msg, timestamp); in s390_cpumsf_synth_error() 922 u64 timestamp = sample->time; in s390_cpumsf_process_event() local 949 if (timestamp) { in s390_cpumsf_process_event() [all …]
|
| A D | comm.c | 192 struct comm *comm__new(const char *str, u64 timestamp, bool exec) in comm__new() argument 199 comm->start = timestamp; in comm__new() 211 int comm__override(struct comm *comm, const char *str, u64 timestamp, bool exec) in comm__override() argument 221 comm->start = timestamp; in comm__override()
|
| A D | jitdump.h | 44 uint64_t timestamp; /* timestamp */ member 62 uint64_t timestamp; member
|
| A D | arm-spe.c | 102 u64 timestamp; member 1082 if (record->timestamp > speq->timestamp) in arm_spe_run_decoder() 1083 speq->timestamp = record->timestamp; in arm_spe_run_decoder() 1090 if (!spe->timeless_decoding && speq->timestamp >= *timestamp) { in arm_spe_run_decoder() 1091 *timestamp = speq->timestamp; in arm_spe_run_decoder() 1136 speq->timestamp = record->timestamp; in arm_spe__setup_queue() 1212 if (ts > timestamp) in arm_spe_process_queues() 1213 ts = timestamp; in arm_spe_process_queues() 1215 ts = timestamp; in arm_spe_process_queues() 1288 u64 timestamp; in arm_spe_process_event() local [all …]
|
| A D | thread.h | 95 int thread__set_namespaces(struct thread *thread, u64 timestamp, 98 int __thread__set_comm(struct thread *thread, const char *comm, u64 timestamp, 101 u64 timestamp) in thread__set_comm() argument 103 return __thread__set_comm(thread, comm, timestamp, false); in thread__set_comm() 113 int thread__fork(struct thread *thread, struct thread *parent, u64 timestamp, bool do_maps_clone);
|
| /tools/perf/tests/shell/ |
| A 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/ |
| A D | intel-pt-decoder.c | 867 if (timestamp < data->timestamp) in intel_pt_calc_cyc_cb() 871 data->timestamp = timestamp; in intel_pt_calc_cyc_cb() 889 if (timestamp < data->timestamp) in intel_pt_calc_cyc_cb() 895 data->timestamp = timestamp; in intel_pt_calc_cyc_cb() 1813 decoder->timestamp = timestamp; in intel_pt_calc_tsc_timestamp() 1824 timestamp = decoder->timestamp; in intel_pt_calc_tsc_timestamp() 1834 timestamp = decoder->timestamp; in intel_pt_calc_tsc_timestamp() 1842 decoder->timestamp = timestamp; in intel_pt_calc_tsc_timestamp() 1971 if (timestamp < decoder->timestamp) in intel_pt_calc_mtc_timestamp() 1975 decoder->timestamp = timestamp; in intel_pt_calc_mtc_timestamp() [all …]
|
| /tools/perf/util/bpf_skel/ |
| A D | kwork_top.bpf.c | 28 __u64 timestamp; member 148 delta = ts - pelem->timestamp; in on_sched_out() 169 pelem->timestamp = ts; in on_sched_in() 222 .timestamp = ts, in on_irq_handler_entry() 258 if (pelem && pelem->timestamp != 0) in on_irq_handler_exit() 259 delta = ts - pelem->timestamp; in on_irq_handler_exit() 294 .timestamp = ts, in on_softirq_entry() 331 delta = ts - pelem->timestamp; in on_softirq_exit()
|
| A D | lock_data.h | 9 u64 timestamp; // The time while the owner acquires lock and contention is going on. member 14 u64 timestamp; member
|
| A D | lock_contention.bpf.c | 536 pelem->timestamp = bpf_ktime_get_ns(); in contention_begin() 584 .timestamp = pelem->timestamp, in contention_begin() 599 update_owner_stat(id, pelem->timestamp - otdata->timestamp, in contention_begin() 602 otdata->timestamp = pelem->timestamp; in contention_begin() 643 __u64 timestamp; in contention_end() local 671 timestamp = bpf_ktime_get_ns(); in contention_end() 672 duration = timestamp - pelem->timestamp; in contention_end() 685 update_owner_stat(otdata->stack_id, timestamp - otdata->timestamp, pelem->flags); in contention_end() 699 otdata->timestamp = timestamp; in contention_end()
|
| A D | syscall_summary.bpf.c | 17 u64 timestamp; member 113 st.timestamp = bpf_ktime_get_ns(); in sys_enter() 146 delta = bpf_ktime_get_ns() - st->timestamp; in sys_exit()
|
| A D | off_cpu.bpf.c | 32 __u64 timestamp; member 276 pelem->timestamp = ts; in off_cpu_stat() 293 if (pelem && pelem->timestamp) { in off_cpu_stat() 301 __u64 delta = ts - pelem->timestamp; in off_cpu_stat() 319 pelem->timestamp = 0; in off_cpu_stat()
|
| /tools/testing/selftests/bpf/progs/ |
| A D | net_timestamping.c | 120 u64 timestamp = bpf_ktime_get_ns(); in bpf_test_delay() local 163 val->sched_delay = timestamp - val->sendmsg_ns; in bpf_test_delay() 168 val->snd_sw_delay = timestamp - prior_ts; in bpf_test_delay() 173 val->ack_delay = timestamp - prior_ts; in bpf_test_delay() 193 u64 timestamp = bpf_ktime_get_ns(); in BPF_PROG() local 205 stg->sendmsg_ns = timestamp; in BPF_PROG()
|
| A D | xdp_metadata.c | 30 __u64 *timestamp) __ksym; 46 u64 timestamp = -1; in rx() local 94 bpf_xdp_metadata_rx_timestamp(ctx, ×tamp); in rx() 95 if (timestamp == 0) in rx()
|
| /tools/counter/ |
| A 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/ |
| A 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() 368 u64 timestamp = rand() % 1000000; in inject_build_id() local 371 if (synthesize_mmap(data, dso, timestamp) < 0) in inject_build_id() 375 if (synthesize_sample(data, dso, timestamp + k * 1000) < 0) in inject_build_id()
|
| /tools/perf/ |
| A D | builtin-timechart.c | 133 u64 timestamp; member 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() 275 p->end_time = timestamp; in pid_exit() 277 p->current->end_time = timestamp; in pid_exit() 372 pwr->end_time = timestamp; in c_state_end() 381 u64 timestamp) in p_state_end() argument 390 pwr->end_time = timestamp; in p_state_end() 434 we->time = timestamp; in sched_wakeup() [all …]
|
| A D | builtin-sched.c | 87 u64 timestamp; member 361 event->timestamp = timestamp; in get_new_event() 383 u64 timestamp, u64 duration) in add_sched_event_run() argument 432 u64 timestamp) in add_sched_event_sleep() argument 864 delta = timestamp - timestamp0; in replay_switch_event() 1049 u64 timestamp) in add_sched_out_event() argument 1208 u64 timestamp = sample->time; in latency_runtime_event() local 1243 u64 timestamp = sample->time; in latency_wakeup_event() local 1287 atom->wake_up_time = timestamp; in latency_wakeup_event() 1301 u64 timestamp = sample->time; in latency_migrate_task_event() local [all …]
|
| /tools/tracing/latency/ |
| A 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() 1159 sec = timestamp->tv_sec; in print_tracefile() 1160 us = timestamp->tv_nsec / 1000; in print_tracefile() 1462 struct timespec timestamp; in tracing_loop() local 1527 ×tamp); in tracing_loop() 1528 print_lostmessage(×tamp, buffer, in tracing_loop() 1558 struct timespec timestamp; in do_printloop() local 1578 print_lostmessage(×tamp, buffer, bufspace, in do_printloop() [all …]
|