Home
last modified time | relevance | path

Searched refs:time (Results 1 – 25 of 200) sorted by relevance

12345678

/tools/perf/scripts/python/
Dstat-cpi.py10 def get_key(time, event, cpu, thread): argument
11 return "%d-%s-%d-%d" % (time, event, cpu, thread)
13 def store_key(time, cpu, thread): argument
14 if (time not in times):
15 times.append(time)
23 def store(time, event, cpu, thread, val, ena, run): argument
27 store_key(time, cpu, thread)
28 key = get_key(time, event, cpu, thread)
31 def get(time, event, cpu, thread): argument
32 key = get_key(time, event, cpu, thread)
[all …]
Dnetdev-times.py308 (name, context, cpu, time, pid, comm, irq, irq_name) = event_info
311 irq_record = {'irq':irq, 'name':irq_name, 'cpu':cpu, 'irq_ent_t':time}
315 (name, context, cpu, time, pid, comm, irq, ret) = event_info
321 irq_record.update({'irq_ext_t':time})
327 (name, context, cpu, time, pid, comm, vec) = event_info
336 irq_event_list.append({'time':time, 'event':'sirq_raise'})
341 (name, context, cpu, time, pid, comm, vec) = event_info
342 net_rx_dic[cpu] = {'sirq_ent_t':time, 'event_list':[]}
345 (name, context, cpu, time, pid, comm, vec) = event_info
357 rec_data = {'sirq_ent_t':sirq_ent_t, 'sirq_ext_t':time,
[all …]
Dsctop.py13 import os, sys, time
89 time.sleep(interval)
Dpowerpc-hcalls.py166 time = output[opcode]['time']
171 print(print_ptrn % (h_name, cnt, min_t, max_t, time//cnt))
/tools/testing/selftests/timers/
Dvalid-adjtimex.c205 tmx.time.tv_sec = offset / NSEC_PER_SEC; in set_offset()
206 tmx.time.tv_usec = offset % NSEC_PER_SEC; in set_offset()
208 if (offset < 0 && tmx.time.tv_usec) { in set_offset()
209 tmx.time.tv_sec -= 1; in set_offset()
210 tmx.time.tv_usec += NSEC_PER_SEC; in set_offset()
213 tmx.time.tv_sec = offset / USEC_PER_SEC; in set_offset()
214 tmx.time.tv_usec = offset % USEC_PER_SEC; in set_offset()
216 if (offset < 0 && tmx.time.tv_usec) { in set_offset()
217 tmx.time.tv_sec -= 1; in set_offset()
218 tmx.time.tv_usec += USEC_PER_SEC; in set_offset()
[all …]
Dset-2038.c48 int settime(long long time) in settime() argument
53 now.tv_sec = (time_t)time; in settime()
58 printf("Setting time to 0x%lx: %d\n", (long)time, ret); in settime()
88 start = time(0); in main()
Dleap-a-day.c138 if (tx.time.tv_sec < next_leap) { in sigalarm()
142 tx.time.tv_sec, in sigalarm()
143 tx.time.tv_usec, in sigalarm()
151 tx.time.tv_sec, in sigalarm()
152 tx.time.tv_usec, in sigalarm()
328 now = tx.time.tv_sec; in main()
344 ctime_r(&tx.time.tv_sec, buf); in main()
349 tx.time.tv_usec, in main()
353 now = tx.time.tv_sec; in main()
Dfreq-step.c34 double time; member
72 sample->time = ts1.tv_sec + ts1.tv_nsec / 1e9; in get_sample()
85 txc.time.tv_sec = 0; in reset_ntp_error()
86 txc.time.tv_usec = 0; in reset_ntp_error()
120 x = samples[i].time; in regress()
135 x = samples[i].time; in regress()
/tools/testing/kunit/
Dkunit.py13 import time
57 config_start = time.time()
59 config_end = time.time()
72 build_start = time.time()
77 build_end = time.time()
93 test_start = time.time()
98 test_end = time.time()
105 parse_start = time.time()
115 parse_end = time.time()
136 run_start = time.time()
[all …]
/tools/testing/selftests/rtc/
Drtctest.c174 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time); in TEST_F()
177 secs = timegm((struct tm *)&alarm.time) + ALARM_DELTA; in TEST_F()
178 gmtime_r(&secs, (struct tm *)&alarm.time); in TEST_F()
193 alarm.time.tm_mday, alarm.time.tm_mon + 1, in TEST_F()
194 alarm.time.tm_year + 1900, alarm.time.tm_hour, in TEST_F()
195 alarm.time.tm_min, alarm.time.tm_sec); in TEST_F()
276 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time);
279 secs = timegm((struct tm *)&alarm.time) + 60 - alarm.time.tm_sec;
280 gmtime_r(&secs, (struct tm *)&alarm.time);
295 alarm.time.tm_mday, alarm.time.tm_mon + 1,
[all …]
Dsetdate.c26 const char *time = default_time; in main() local
30 time = argv[3]; in main()
50 sscanf(time, "%d:%d:%d", &new.tm_hour, &new.tm_min, &new.tm_sec); in main()
/tools/power/cpupower/bench/
DREADME-BENCH9 - Identify average reaction time of a governor to CPU load changes
13 - Possibly Real time priority testing? -> what happens if there are
35 will be run X time in a row (cycles):
48 Will increase load and sleep time by 25ms 5 times.
50 25ms load/sleep time repeated 20 times (cycles).
51 50ms load/sleep time repeated 20 times (cycles).
53 100ms load/sleep time repeated 20 times (cycles).
59 and the governor to test. The time the calculation really needed
60 with the dynamic freq scaling governor is compared with the time needed
87 50 50 50 50ms ->time
[all …]
/tools/perf/Documentation/
Dperf-sched.txt46 time (time between sched-out and next sched-in events for the task), the
47 task scheduling delay (time between wakeup and actually running) and run
48 time for the task:
50 time cpu task name wait time sch delay run time
140 Show visual aid for sched switches by CPU: 'i' marks idle time,
159 --time::
160 Only analyze samples within given time window: <start>,<stop>. Times
161 have the format seconds.microseconds. If start is not given (i.e., time
163 stop time is not given (i.e, time string is 'x.y,') then analysis goes
Dperf-kmem.txt68 --time=<start>,<stop>::
69 Only analyze samples within given time window: <start>,<stop>. Times
70 have the format seconds.microseconds. If start is not given (i.e., time
72 stop time is not given (i.e, time string is 'x.y,') then analysis goes
Dperf-diff.txt127 --time::
128 Analyze samples within given time window. It supports time
129 percent with multiple time ranges. Time string is 'a%/n,b%/m,...'
134 Select the second 10% time slice to diff:
136 perf diff --time 10%/2
138 Select from 0% to 10% time slice to diff:
140 perf diff --time 0%-10%
142 Select the first and the second 10% time slices to diff:
144 perf diff --time 10%/1,10%/2
148 perf diff --time 0%-10%,30%-40%
[all …]
Dperf-report.txt82 - dso: name of library or module executed at the time of sample
83 - dso_size: size of library or module executed at the time of sample
84 - symbol: name of function executed at the time of sample
85 - symbol_size: size of function executed at the time of sample
88 - cpu: cpu number the task ran at the time of sample
89 - socket: processor socket number the task ran at the time of sample
90 - srcline: filename and line number executed at the time of sample. The
109 - time: Separate the samples by time stamp with the resolution specified by
110 --time-quantum (default 100ms). Specify with overhead and before it.
144 - symbol_daddr: name of data symbol being executed on at the time of sample
[all …]
Dperf-script.txt118 comm, tid, pid, time, cpu, event, trace, ip, sym, dso, addr, symoff,
123 e.g., -F sw:comm,tid,time,ip,sym and -F trace:time,cpu,trace
145 -F trace: -F comm,tid,time,ip,sym
148 second invocation sets the fields to comm,tid,time,ip,sym. In this case a
155 -F comm,tid,time,ip,sym -F trace:
363 Use 9 decimal places when displaying time (i.e. show the nanoseconds)
369 --time::
370 Only analyze samples within given time window: <start>,<stop>. Times
371 have the format seconds.nanoseconds. If start is not given (i.e. time
373 stop time is not given (i.e. time string is 'x.y,') then analysis goes
[all …]
Dtips.txt39 To separate samples by time use perf report --sort time,overhead,sym
40 To set sample time separation other than 100ms with --sort time use --time-quantum
Dperf-kvm.txt61 handled time, samples, and so on.
112 number), time (sort by average time).
149 number), time (sort by average time).
157 a long time, because the file may be huge. A time out is needed
159 This option sets the time out limit. The default value is 500 ms.
/tools/power/acpi/os_specific/service_layers/
Dosunixxf.c721 struct timespec time; in acpi_os_wait_semaphore() local
785 if (clock_gettime(CLOCK_REALTIME, &time) == -1) { in acpi_os_wait_semaphore()
790 time.tv_sec += (msec_timeout / ACPI_MSEC_PER_SEC); in acpi_os_wait_semaphore()
791 time.tv_nsec += in acpi_os_wait_semaphore()
796 if (time.tv_nsec >= ACPI_NSEC_PER_SEC) { in acpi_os_wait_semaphore()
797 time.tv_sec += (time.tv_nsec / ACPI_NSEC_PER_SEC); in acpi_os_wait_semaphore()
798 time.tv_nsec = (time.tv_nsec % ACPI_NSEC_PER_SEC); in acpi_os_wait_semaphore()
801 while (((ret_val = sem_timedwait(sem, &time)) == -1) in acpi_os_wait_semaphore()
984 struct timeval time; in acpi_os_get_timer() local
988 gettimeofday(&time, NULL); in acpi_os_get_timer()
[all …]
/tools/laptop/dslm/
Ddslm.c58 static char *myctime(time_t time) in myctime() argument
60 char *ts = ctime(&time); in myctime()
84 start_time = last_time = time(0); in measure()
93 curr_time = time(0); in measure()
109 total_time = time(0) - start_time; in measure()
/tools/perf/ui/browsers/
Dres_sample.c50 timestamp__scnprintf_nsec(res_samples[i].time, tbuf, sizeof tbuf); in res_sample_browse()
68 n = timestamp__scnprintf_nsec(r->time - context_len, trange, sizeof trange); in res_sample_browse()
70 timestamp__scnprintf_nsec(r->time + context_len, trange + n, sizeof trange - n); in res_sample_browse()
72 timestamp__scnprintf_nsec(r->time, tsample, sizeof tsample); in res_sample_browse()
/tools/perf/
Dbuiltin-timechart.c186 u64 time; member
329 pid_fork(tchart, event->fork.pid, event->fork.ppid, event->fork.time); in process_fork_event()
339 pid_exit(tchart, event->fork.pid, event->fork.time); in process_exit_event()
415 we->time = timestamp; in sched_wakeup()
561 if (!tchart->first_time || tchart->first_time > sample->time) in process_sample_event()
562 tchart->first_time = sample->time; in process_sample_event()
563 if (tchart->last_time < sample->time) in process_sample_event()
564 tchart->last_time = sample->time; in process_sample_event()
586 c_state_end(tchart, cpu_id, sample->time); in process_sample_cpu_idle()
588 c_state_start(cpu_id, sample->time, state); in process_sample_cpu_idle()
[all …]
/tools/bpf/bpftool/
Dmap_perf_ring.c42 __u64 time; member
87 jsonw_uint(json_wtr, e->time); in print_bpf_output()
103 e->time / 1000000000ULL, e->time % 1000000000ULL, in print_bpf_output()
/tools/testing/selftests/powerpc/
Dharness.c99 void test_harness_set_timeout(uint64_t time) in test_harness_set_timeout() argument
101 timeout = time; in test_harness_set_timeout()

12345678