1. 27 11月, 2010 3 次提交
  2. 23 11月, 2010 1 次提交
  3. 21 11月, 2010 23 次提交
  4. 18 11月, 2010 1 次提交
  5. 17 11月, 2010 10 次提交
  6. 16 11月, 2010 2 次提交
    • D
      Add support for generating a systemtap tapset static probes · 2834c3e0
      Daniel P. Berrange 提交于
      This introduces generation of a qemu.stp/qemu-system-XXX.stp
      files which provides tapsets with friendly names for static
      probes & their arguments. Instead of
      
          probe process("qemu").mark("qemu_malloc") {
              printf("Malloc %d %p\n", $arg1, $arg2);
          }
      
      It is now possible todo
      
          probe qemu.system.i386.qemu_malloc {
              printf("Malloc %d %p\n", size, ptr);
          }
      
      There is one tapset defined per target arch.
      
      * Makefile: Generate a qemu.stp file for systemtap
      * tracetool: Support for generating systemtap tapsets
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      2834c3e0
    • D
      Add a DTrace tracing backend targetted for SystemTAP compatability · 4addb112
      Daniel P. Berrange 提交于
      This introduces a new tracing backend that targets the SystemTAP
      implementation of DTrace userspace tracing. The core functionality
      should be applicable and standard across any DTrace implementation
      on Solaris, OS-X, *BSD, but the Makefile rules will likely need
      some small additional changes to cope with OS specific build
      requirements.
      
      This backend builds a little differently from the other tracing
      backends. Specifically there is no 'trace.c' file, because the
      'dtrace' command line tool generates a '.o' file directly from
      the dtrace probe definition file. The probe definition is usually
      named with a '.d' extension but QEMU uses '.d' files for its
      external makefile dependancy tracking, so this uses '.dtrace' as
      the extension for the probe definition file.
      
      The 'tracetool' program gains the ability to generate a trace.h
      file for DTrace, and also to generate the trace.d file containing
      the dtrace probe definition.
      
      Example usage of a dtrace probe in systemtap looks like:
      
        probe process("qemu").mark("qemu_malloc") {
          printf("Malloc %d %p\n", $arg1, $arg2);
        }
      
      * .gitignore: Ignore trace-dtrace.*
      * Makefile: Extra rules for generating DTrace files
      * Makefile.obj: Don't build trace.o for DTrace, use
        trace-dtrace.o generated by 'dtrace' instead
      * tracetool: Support for generating DTrace data files
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      4addb112