/external/linux-tools-perf/src/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/ |
D | Util.pm | 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_nsecs($nsecs));
|
/external/linux-tools-perf/src/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
D | Util.py | 22 def nsecs(secs, nsecs): function 23 return secs * NSECS_PER_SEC + nsecs 25 def nsecs_secs(nsecs): argument 26 return nsecs / NSECS_PER_SEC 28 def nsecs_nsecs(nsecs): argument 29 return nsecs % NSECS_PER_SEC 31 def nsecs_str(nsecs): argument 32 str = "%5u.%09u" % (nsecs_secs(nsecs), nsecs_nsecs(nsecs)),
|
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/src/tools/perf/scripts/python/ |
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(sec, nsec), pid, comm, [all …]
|
D | futex-contention.py | 32 thread_blocktime[tid] = nsecs(s, ns) 37 elapsed = nsecs(s, ns) - thread_blocktime[tid]
|
D | check-perf-trace.py | 60 def print_header(event_name, cpu, secs, nsecs, pid, comm): argument 62 (event_name, cpu, secs, nsecs, pid, comm),
|
/external/linux-tools-perf/src/tools/perf/Documentation/ |
D | perf-script-perl.txt | 99 $common_nsecs the nsecs portion of the event timestamp 208 nsecs($secs, $nsecs) - returns total nsecs given secs/nsecs pair 209 nsecs_secs($nsecs) - returns whole secs portion given nsecs 210 nsecs_nsecs($nsecs) - returns nsecs remainder given nsecs 211 nsecs_str($nsecs) - returns printable string in the form secs.nsecs
|
D | perf-script-python.txt | 157 def print_header(event_name, cpu, secs, nsecs, pid, comm): 159 (event_name, cpu, secs, nsecs, pid, comm), 495 common_nsecs the nsecs portion of the event timestamp 612 nsecs(secs, nsecs) - returns total nsecs given secs/nsecs pair 613 nsecs_secs(nsecs) - returns whole secs portion given nsecs 614 nsecs_nsecs(nsecs) - returns nsecs remainder given nsecs 615 nsecs_str(nsecs) - returns printable string in the form secs.nsecs
|
/external/linux-tools-perf/src/tools/perf/scripts/perl/ |
D | wakeup-latency.pl | 37 my $switch_ts = nsecs($common_secs, $common_nsecs); 57 $last_wakeup{$target_cpu}{ts} = nsecs($common_secs, $common_nsecs);
|
D | check-perf-trace.pl | 102 my ($event_name, $cpu, $secs, $nsecs, $pid, $comm) = @_; 105 $event_name, $cpu, $secs, $nsecs, $pid, $comm);
|
/external/linux-tools-perf/src/tools/perf/util/scripting-engines/ |
D | trace-event-perl.c | 275 unsigned long long nsecs = sample->time; in perl_process_tracepoint() local 291 s = nsecs / NSECS_PER_SEC; in perl_process_tracepoint() 292 ns = nsecs - s * NSECS_PER_SEC; in perl_process_tracepoint() 339 XPUSHs(sv_2mortal(newSVuv(nsecs))); in perl_process_tracepoint()
|
D | trace-event-python.c | 252 unsigned long long nsecs = sample->time; in python_process_tracepoint() local 275 s = nsecs / NSECS_PER_SEC; in python_process_tracepoint() 276 ns = nsecs - s * NSECS_PER_SEC; in python_process_tracepoint()
|
/external/linux-tools-perf/src/tools/perf/ |
D | builtin-script.c | 289 unsigned long long nsecs; in print_sample_start() local 315 nsecs = sample->time; in print_sample_start() 316 secs = nsecs / NSECS_PER_SEC; in print_sample_start() 317 nsecs -= secs * NSECS_PER_SEC; in print_sample_start() 318 usecs = nsecs / NSECS_PER_USEC; in print_sample_start()
|
D | builtin-sched.c | 183 static void burn_nsecs(struct perf_sched *sched, u64 nsecs) in burn_nsecs() argument 189 } while (T1 + sched->run_measurement_overhead < T0 + nsecs); in burn_nsecs() 192 static void sleep_nsecs(u64 nsecs) in sleep_nsecs() argument 196 ts.tv_nsec = nsecs % 999999999; in sleep_nsecs() 197 ts.tv_sec = nsecs / 999999999; in sleep_nsecs()
|
/external/netperf/ |
D | netlib.c | 3498 long nsecs; in delta_micro() local 3499 nsecs = (*end) - (*begin); in delta_micro() 3500 return(nsecs/1000); in delta_micro()
|
/external/linux-tools-perf/src/tools/lib/traceevent/ |
D | event-parse.c | 4453 unsigned long nsecs; in pevent_print_event() local 4462 nsecs = record->ts - secs * NSECS_PER_SEC; in pevent_print_event() 4488 usecs = nsecs; in pevent_print_event() 4491 usecs = (nsecs + 500) / NSECS_PER_USEC; in pevent_print_event()
|