/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) 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 | 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 …]
|
D | thread.h | 89 int thread__set_namespaces(struct thread *thread, u64 timestamp, 92 int __thread__set_comm(struct thread *thread, const char *comm, u64 timestamp, 95 u64 timestamp) in thread__set_comm() argument 97 return __thread__set_comm(thread, comm, timestamp, false); in thread__set_comm() 107 int thread__fork(struct thread *thread, struct thread *parent, u64 timestamp, bool do_maps_clone);
|
D | ordered-events.h | 10 u64 timestamp; member 56 u64 timestamp, u64 file_offset); 59 int ordered_events__flush_time(struct ordered_events *oe, u64 timestamp);
|
D | comm.c | 108 struct comm *comm__new(const char *str, u64 timestamp, bool exec) in comm__new() argument 115 comm->start = timestamp; in comm__new() 127 int comm__override(struct comm *comm, const char *str, u64 timestamp, bool exec) in comm__override() argument 137 comm->start = timestamp; in comm__override()
|
D | arm-spe.c | 85 u64 timestamp; member 233 sample->time = speq->timestamp; in arm_spe_prep_sample() 363 static int arm_spe_run_decoder(struct arm_spe_queue *speq, u64 *timestamp) in arm_spe_run_decoder() argument 389 if (!spe->timeless_decoding && speq->timestamp >= *timestamp) { in arm_spe_run_decoder() 390 *timestamp = speq->timestamp; in arm_spe_run_decoder() 435 speq->timestamp = record->timestamp; in arm_spe__setup_queue() 436 ret = auxtrace_heap__add(&spe->heap, queue_nr, speq->timestamp); in arm_spe__setup_queue() 512 static int arm_spe_process_queues(struct arm_spe *spe, u64 timestamp) in arm_spe_process_queues() argument 525 if (spe->heap.heap_array[0].ordinal >= timestamp) in arm_spe_process_queues() 536 if (ts > timestamp) in arm_spe_process_queues() [all …]
|
D | s390-cpumsf.c | 317 memcpy(&ts, &te->timestamp[idx], sizeof(ts)); in trailer_timestamp() 335 memcpy(&local.timestamp, te->timestamp, sizeof(te->timestamp)); in s390_cpumsf_trailer_show() 842 static int s390_cpumsf_process_queues(struct s390_cpumsf *sf, u64 timestamp) in s390_cpumsf_process_queues() argument 855 if (sf->heap.heap_array[0].ordinal >= timestamp) in s390_cpumsf_process_queues() 865 if (ts > timestamp) in s390_cpumsf_process_queues() 866 ts = timestamp; in s390_cpumsf_process_queues() 868 ts = timestamp; in s390_cpumsf_process_queues() 886 pid_t pid, pid_t tid, u64 ip, u64 timestamp) in s390_cpumsf_synth_error() argument 894 code, cpu, pid, tid, ip, msg, timestamp); in s390_cpumsf_synth_error() 919 u64 timestamp = sample->time; in s390_cpumsf_process_event() local [all …]
|
D | intel-pt.c | 168 u64 timestamp; member 1243 if (state->timestamp) in intel_pt_setup_queue() 1247 ptq->timestamp = state->timestamp; in intel_pt_setup_queue() 1249 queue_nr, ptq->timestamp); in intel_pt_setup_queue() 1253 ptq->timestamp < ptq->sel_timestamp) in intel_pt_setup_queue() 1256 ret = auxtrace_heap__add(&pt->heap, queue_nr, ptq->timestamp); in intel_pt_setup_queue() 1317 sample->time = tsc_to_perf_time(ptq->timestamp, &pt->tc); in intel_pt_prep_b_sample() 1822 u64 timestamp = 0; in intel_pt_synth_pebs_sample() local 1825 timestamp = items->timestamp; in intel_pt_synth_pebs_sample() 1827 timestamp = ptq->timestamp; in intel_pt_synth_pebs_sample() [all …]
|
D | jitdump.h | 44 uint64_t timestamp; /* timestamp */ member 62 uint64_t timestamp; member
|
D | s390-cpumcf-kernel.h | 41 unsigned long timestamp; /* 128-191 Timestamp (TOD) */ member
|
D | s390-cpumsf-kernel.h | 58 unsigned char timestamp[16]; /* 16 - 31 timestamp */ member
|
D | s390-sample-raw.c | 92 te.timestamp = be64_to_cpu(tep->timestamp); in s390_cpumcfdg_dumptrail() 106 te.cfvn, te.csvn, te.cpu_speed, te.timestamp); in s390_cpumcfdg_dumptrail()
|
D | jitdump.c | 174 header.timestamp = bswap_64(header.timestamp); in jit_open() 184 (unsigned long long)header.timestamp, in jit_open() 276 prefix->timestamp = bswap_64(prefix->timestamp); in jit_get_next_entry() 370 static uint64_t convert_timestamp(struct jit_buf_desc *jd, uint64_t timestamp) in convert_timestamp() argument 376 return timestamp; in convert_timestamp() 398 return tsc_to_perf_time(timestamp, &tc); in convert_timestamp() 490 id->time = convert_timestamp(jd, jr->load.p.timestamp); in jit_repipe_code_load() 582 id->time = convert_timestamp(jd, jr->load.p.timestamp); in jit_repipe_code_move()
|
/tools/perf/util/intel-pt-decoder/ |
D | intel-pt-decoder.c | 129 uint64_t timestamp; member 520 decoder->sample_timestamp = decoder->timestamp; in intel_pt_update_sample_time() 528 decoder->timestamp = 0; in intel_pt_reposition() 677 uint64_t timestamp; member 708 uint64_t timestamp; in intel_pt_calc_cyc_cb() local 752 timestamp = data->ctc_timestamp + in intel_pt_calc_cyc_cb() 755 timestamp = data->ctc_timestamp + in intel_pt_calc_cyc_cb() 761 if (timestamp < data->timestamp) in intel_pt_calc_cyc_cb() 765 data->timestamp = timestamp; in intel_pt_calc_cyc_cb() 778 timestamp = pkt_info->packet.payload | in intel_pt_calc_cyc_cb() [all …]
|
D | intel-pt-decoder.h | 182 uint64_t timestamp; member 209 uint64_t timestamp; member 265 int intel_pt_fast_forward(struct intel_pt_decoder *decoder, uint64_t timestamp);
|
/tools/perf/bench/ |
D | inject-buildid.c | 172 static ssize_t synthesize_mmap(struct bench_data *data, struct bench_dso *dso, u64 timestamp) in synthesize_mmap() argument 206 id_hdr_ptr[ts_idx] = timestamp; in synthesize_mmap() 214 id_hdr_ptr[ts_idx] = timestamp; in synthesize_mmap() 218 static ssize_t synthesize_sample(struct bench_data *data, struct bench_dso *dso, u64 timestamp) in synthesize_sample() argument 225 .time = timestamp, in synthesize_sample() 366 u64 timestamp = rand() % 1000000; in inject_build_id() local 369 if (synthesize_mmap(data, dso, timestamp) < 0) in inject_build_id() 373 if (synthesize_sample(data, dso, timestamp + k * 1000) < 0) in inject_build_id()
|
/tools/lib/traceevent/ |
D | kbuffer-parse.c | 44 unsigned long long timestamp; member 323 kbuf->timestamp += delta; in old_update_pointers() 398 kbuf->timestamp = delta; in update_pointers() 400 kbuf->timestamp += delta; in update_pointers() 494 *ts = kbuf->timestamp; in kbuffer_next_event() 520 kbuf->timestamp = read_8(kbuf, ptr); in kbuffer_load_subbuffer() 597 *ts = kbuf->timestamp; in kbuffer_read_event() 609 return kbuf->timestamp; in kbuffer_timestamp()
|
/tools/perf/util/cs-etm-decoder/ |
D | cs-etm-decoder.c | 278 if (!packet_queue->timestamp) in cs_etm_decoder__do_soft_timestamp() 281 packet_queue->timestamp = packet_queue->next_timestamp; in cs_etm_decoder__do_soft_timestamp() 310 if (packet_queue->timestamp) { in cs_etm_decoder__do_hard_timestamp() 311 packet_queue->next_timestamp = elem->timestamp; in cs_etm_decoder__do_hard_timestamp() 322 packet_queue->timestamp = elem->timestamp - packet_queue->instr_count; in cs_etm_decoder__do_hard_timestamp() 323 packet_queue->next_timestamp = elem->timestamp; in cs_etm_decoder__do_hard_timestamp() 336 packet_queue->timestamp = 0; in cs_etm_decoder__reset_timestamp()
|
/tools/perf/ |
D | builtin-timechart.c | 130 u64 timestamp; member 242 static void pid_fork(struct timechart *tchart, int pid, int ppid, u64 timestamp) in pid_fork() argument 251 p->start_time = timestamp; in pid_fork() 253 p->current->start_time = timestamp; in pid_fork() 254 p->current->state_since = timestamp; in pid_fork() 258 static void pid_exit(struct timechart *tchart, int pid, u64 timestamp) in pid_exit() argument 262 p->end_time = timestamp; in pid_exit() 264 p->current->end_time = timestamp; in pid_exit() 347 static void c_state_start(int cpu, u64 timestamp, int state) in c_state_start() argument 349 cpus_cstate_start_times[cpu] = timestamp; in c_state_start() [all …]
|
D | builtin-sched.c | 87 u64 timestamp; member 359 get_new_event(struct task_desc *task, u64 timestamp) in get_new_event() argument 365 event->timestamp = timestamp; in get_new_event() 387 u64 timestamp, u64 duration) in add_sched_event_run() argument 401 event = get_new_event(task, timestamp); in add_sched_event_run() 410 u64 timestamp, struct task_desc *wakee) in add_sched_event_wakeup() argument 414 event = get_new_event(task, timestamp); in add_sched_event_wakeup() 437 u64 timestamp, u64 task_state __maybe_unused) in add_sched_event_sleep() argument 439 struct sched_atom *event = get_new_event(task, timestamp); in add_sched_event_sleep() 843 u64 timestamp0, timestamp = sample->time; in replay_switch_event() local [all …]
|
/tools/include/uapi/linux/ |
D | erspan.h | 21 __be32 timestamp; member
|
/tools/perf/jvmti/ |
D | jvmti_agent.c | 315 header.timestamp = perf_get_timestamp(); in jvmti_open() 344 rec.p.timestamp = perf_get_timestamp(); in jvmti_close() 381 rec.p.timestamp = perf_get_timestamp(); in jvmti_write_code() 444 rec.p.timestamp = perf_get_timestamp(); in jvmti_write_debug_info()
|