Home
last modified time | relevance | path

Searched refs:nsec (Results 1 – 9 of 9) sorted by relevance

/tools/testing/radix-tree/
Dbenchmark.c19 long long nsec; in benchmark_iter() local
38 nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + in benchmark_iter()
42 if (loops == 1 && nsec * 5 < NSEC_PER_SEC) { in benchmark_iter()
43 loops = NSEC_PER_SEC / nsec / 4 + 1; in benchmark_iter()
48 nsec /= loops; in benchmark_iter()
49 return nsec; in benchmark_iter()
57 long long nsec; in benchmark_insert() local
66 nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + in benchmark_insert()
70 size, step, nsec); in benchmark_insert()
78 long long nsec; in benchmark_tagging() local
[all …]
/tools/perf/scripts/python/
Dnetdev-times.py232 def irq__softirq_entry(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument
235 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
238 def irq__softirq_exit(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument
241 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
244 def irq__softirq_raise(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument
247 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
250 def irq__irq_handler_entry(name, context, cpu, sec, nsec, pid, comm, argument
252 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
256 def irq__irq_handler_exit(name, context, cpu, sec, nsec, pid, comm, callchain, irq, ret): argument
257 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, irq, ret)
[all …]
Dpowerpc-hcalls.py173 def powerpc__hcall_exit(name, context, cpu, sec, nsec, pid, comm, callchain, argument
176 diff = nsecs(sec, nsec) - d_enter[cpu][opcode]
197 def powerpc__hcall_entry(event_name, context, cpu, sec, nsec, pid, comm, argument
200 d_enter[cpu][opcode] = nsecs(sec, nsec)
202 d_enter[cpu] = {opcode: nsecs(sec, nsec)}
Dnet_dropmonitor.py72 def skb__kfree_skb(name, context, cpu, sec, nsec, pid, comm, callchain, argument
Dcompaction-times.py48 def ns(sec, nsec): argument
49 return (sec * 1000000000) + nsec
/tools/testing/selftests/mqueue/
Dmq_perf_tests.c358 nsec = ((middle.tv_sec - start.tv_sec) * 1000000000) + \
360 send_total.tv_nsec += nsec; \
365 nsec = ((end.tv_sec - middle.tv_sec) * 1000000000) + \
367 recv_total.tv_nsec += nsec; \
433 unsigned long long nsec; in perf_test_thread() local
465 nsec = ((unsigned long long)send_total.tv_sec * 1000000000 + in perf_test_thread()
467 printf("\t\t\t\t\t\t%lld nsec/msg\n", nsec); in perf_test_thread()
470 nsec = ((unsigned long long)recv_total.tv_sec * 1000000000 + in perf_test_thread()
472 printf("\t\t\t\t\t\t%lld nsec/msg\n", nsec); in perf_test_thread()
491 nsec = ((unsigned long long)(end.tv_sec - start.tv_sec) * in perf_test_thread()
[all …]
/tools/testing/selftests/ptp/
Dtestptp.c113 return t->sec * 1000000000LL + t->nsec; in pctns()
374 event.t.sec, event.t.nsec); in main()
424 perout_request.period.nsec = perout % NSEC_PER_SEC; in main()
429 perout_request.on.nsec = pulsewidth % NSEC_PER_SEC; in main()
434 perout_request.phase.nsec = perout_phase % NSEC_PER_SEC; in main()
437 perout_request.start.nsec = 0; in main()
496 (pct+2*i)->sec, (pct+2*i)->nsec); in main()
498 (pct+2*i+1)->sec, (pct+2*i+1)->nsec); in main()
500 (pct+2*i+2)->sec, (pct+2*i+2)->nsec); in main()
/tools/perf/util/
Dtime-utils.c539 nsec = timestamp % NSEC_PER_SEC; in timestamp__scnprintf_nsec() local
541 return scnprintf(buf, sz, "%" PRIu64 ".%09" PRIu64, sec, nsec); in timestamp__scnprintf_nsec()
/tools/perf/
Dbuiltin-script.c635 unsigned long nsec; in tod_scnprintf() local
659 nsec = tod_ns - sec * NSEC_PER_SEC; in tod_scnprintf()
667 snprintf(buf, buflen, "%s.%09lu", date, nsec); in tod_scnprintf()
670 date, nsec / NSEC_PER_USEC); in tod_scnprintf()