/external/linux-tools-perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
H A D | Util.py | 22 def nsecs(secs, nsecs): function 23 return secs * NSECS_PER_SEC + nsecs 25 def nsecs_secs(nsecs): 26 return nsecs / NSECS_PER_SEC 28 def nsecs_nsecs(nsecs): 29 return nsecs % NSECS_PER_SEC 31 def nsecs_str(nsecs): 32 str = "%5u.%09u" % (nsecs_secs(nsecs), nsecs_nsecs(nsecs)), [all...] |
H A D | Core.py | 113 self.nsecs = common_nsecs 118 return (self.secs * (10 ** 9)) + self.nsecs 121 return "%d.%d" % (self.secs, int(self.nsecs / 1000))
|
/external/linux-tools-perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/ |
H A D | Util.pm | 17 avg nsecs nsecs_secs nsecs_nsecs nsecs_usecs print_nsecs 32 sub nsecs subroutine 34 my ($secs, $nsecs) = @_; 36 return $secs * $NSECS_PER_SEC + $nsecs; 40 my ($nsecs) = @_; 42 return $nsecs / $NSECS_PER_SEC; 46 my ($nsecs) = @_; 48 return $nsecs % $NSECS_PER_SEC; 52 my ($nsecs) = @_; 54 my $str = sprintf("%5u.%09u", nsecs_secs($nsecs), nsecs_nsec [all...] |
/external/kernel-headers/original/asm-x86/ |
H A D | delay.h | 15 extern void __ndelay(unsigned long nsecs);
|
/external/linux-tools-perf/scripts/perl/ |
H A D | check-perf-trace.pl | 102 my ($event_name, $cpu, $secs, $nsecs, $pid, $comm) = @_; 105 $event_name, $cpu, $secs, $nsecs, $pid, $comm);
|
H A D | wakeup-latency.pl | 37 my $switch_ts = nsecs($common_secs, $common_nsecs); 57 $last_wakeup{$target_cpu}{ts} = nsecs($common_secs, $common_nsecs);
|
/external/linux-tools-perf/scripts/python/ |
H A D | check-perf-trace.py | 60 def print_header(event_name, cpu, secs, nsecs, pid, comm): 62 (event_name, cpu, secs, nsecs, pid, comm),
|
H A D | futex-contention.py | 32 thread_blocktime[tid] = nsecs(s, ns) 37 elapsed = nsecs(s, ns) - thread_blocktime[tid]
|
H A D | netdev-times.py | 230 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec) 236 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec) 242 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec) 247 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 252 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, irq, ret) 256 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 262 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 268 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 274 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 280 event_info = (name, context, cpu, nsecs(se [all...] |
/external/kernel-headers/original/linux/ |
H A D | ktime.h | 71 * @nsecs: nanoseconds to set 75 static inline ktime_t ktime_set(const long secs, const unsigned long nsecs) argument 81 return (ktime_t) { .tv64 = (s64)secs * NSEC_PER_SEC + (s64)nsecs }; 138 static inline ktime_t ktime_set(const long secs, const unsigned long nsecs) argument 140 return (ktime_t) { .tv = { .sec = secs, .nsec = nsecs } };
|
/external/linux-tools-perf/util/scripting-engines/ |
H A D | trace-event-perl.c | 263 unsigned long long nsecs = sample->time; local 278 s = nsecs / NSECS_PER_SEC; 279 ns = nsecs - s * NSECS_PER_SEC; 324 XPUSHs(sv_2mortal(newSVuv(nsecs))); 554 "\tmy ($event_name, $cpu, $secs, $nsecs, $pid, $comm) = @_;\n\n" 556 "$event_name, $cpu, $secs, $nsecs, $pid, $comm);\n}");
|
H A D | trace-event-python.c | 224 unsigned long long nsecs = sample->time; local 249 s = nsecs / NSECS_PER_SEC; 250 ns = nsecs - s * NSECS_PER_SEC; 582 "event_name, cpu, secs, nsecs, pid, comm):\n" 584 "(event_name, cpu, secs, nsecs, pid, comm),\n");
|
/external/linux-tools-perf/ |
H A D | builtin-script.c | 228 unsigned long long nsecs; local 254 nsecs = sample->time; 255 secs = nsecs / NSECS_PER_SEC; 256 nsecs -= secs * NSECS_PER_SEC; 257 usecs = nsecs / NSECS_PER_USEC;
|
H A D | builtin-sched.c | 179 static void burn_nsecs(u64 nsecs) argument 185 } while (T1 + run_measurement_overhead < T0 + nsecs); 188 static void sleep_nsecs(u64 nsecs) argument 192 ts.tv_nsec = nsecs % 999999999; 193 ts.tv_sec = nsecs / 999999999; 212 printf("run measurement overhead: %" PRIu64 " nsecs\n", min_delta); 230 printf("sleep measurement overhead: %" PRIu64 " nsecs\n", min_delta); 654 printf("the run test took %" PRIu64 " nsecs\n", T1 - T0); 660 printf("the sleep test took %" PRIu64 " nsecs\n", T1 - T0); 856 printf(" ... switch from %s/%d to %s/%d [ran %" PRIu64 " nsecs]\ [all...] |
/external/netperf/ |
H A D | netlib.c | 3525 long nsecs; 3526 nsecs = (*end) - (*begin); 3527 return(nsecs/1000); 3498 long nsecs; local
|