]> sourceware.org Git - systemtap.git/commit
Let probe_bench work on archs besides x86_64
authorJosh Stone <jistone@redhat.com>
Thu, 10 Jun 2010 01:44:42 +0000 (21:44 -0400)
committerJosh Stone <jistone@redhat.com>
Thu, 10 Jun 2010 01:52:41 +0000 (21:52 -0400)
commit6bff37abacf95b60a1d8d4c83c9e59e42ae1a7b9
tree4f229c4896e0e8af94ea223f7dcbe28b85aec6ca
parent18a4c1b66409e612192bc4188f3f91bbad97d79e
Let probe_bench work on archs besides x86_64

The cycles code is too x86_64-centric, but for now at least it's been
neutered to let other archs report basic timing numbers.

* scripts/probe_bench/bench.stp: Use get_cycles() instead of rdtsc().
* scripts/probe_bench/bench.c (rdtsc): Return 0 unless on x86_64.  This
  needs more work and inline assembly to fit more architectures.
scripts/probe_perf/bench.c
scripts/probe_perf/bench.stp
This page took 0.026751 seconds and 5 git commands to generate.