Re: [libvirt] [PATCH 00/13] Add multiple trace backend function and add new ftrace backend for libvirt

2014-04-08 Thread yangzy.f...@cn.fujitsu.com
-Original Message- From: libvir-list-boun...@redhat.com [mailto:libvir-list-boun...@redhat.com] On Behalf Of yangzy.f...@cn.fujitsu.com Sent: Tuesday, April 01, 2014 5:28 PM To: libvir-list@redhat.com Subject: Re: [libvirt] [PATCH 00/13] Add multiple trace backend function

Re: [libvirt] [PATCH 00/13] Add multiple trace backend function and add new ftrace backend for libvirt

2014-04-01 Thread yangzy.f...@cn.fujitsu.com
-Original Message- From: libvir-list-boun...@redhat.com [mailto:libvir-list-boun...@redhat.com] On Behalf Of Daniel P. Berrange Sent: Saturday, March 22, 2014 12:37 AM To: Yang, Zhiyong/杨 志勇 Cc: libvir-list@redhat.com; Xinghai Yu Subject: Re: [libvirt] [PATCH 00/13] Add multiple

Re: [libvirt] [PATCH 00/13] Add multiple trace backend function and add new ftrace backend for libvirt

2014-03-17 Thread yangzy.f...@cn.fujitsu.com
[...] (For what it's worth, there are several different ways of executing systemtap scripts automatically at startup. There is an initscript. With the next version, its docs will move into 'man 8 systemtap', and grows a new 'onboot' option, to modules load even earlier at initramfs time via

[libvirt] [PATCH 02/13] Makefile.am: Add new multiple trace backend supporting framework

2014-03-10 Thread yangzy.f...@cn.fujitsu.com
From: Xinghai Yu yuxing...@cn.fujitsu.com Add the new multiple trace backend framework, and the 'Dtrace' should be one of the trace backends libvirt supporting. Using the macro exported by configure.ac to decide which trace backend to build for libvirt. We got 2 trace macros below:

[libvirt] [PATCH 01/13] configure.ac: Define new macro 'WITH_TRACE_PROBES' to indicate trace function are available

2014-03-10 Thread yangzy.f...@cn.fujitsu.com
From: Xinghai Yu yuxing...@cn.fujitsu.com Define new 'WITH_TRACE_PROBES' macros which indicate the trace function are available and this macro will be used in Makefile.am and source codes. Signed-off-by: Xinghai Yu yuxing...@cn.fujitsu.com --- config-post.h | 2 +- configure.ac | 4 2

[libvirt] [PATCH 04/13] src: Add scripts 'tracetool' to supporting the translation from tracepoint files to multiple trace backend supporting files

2014-03-10 Thread yangzy.f...@cn.fujitsu.com
From: Xinghai Yu yuxing...@cn.fujitsu.com This 'tracetool' is used for converting the tracepoint format file to all other files we need to supporting dtrace, ftrace or them together. Signed-off-by: Yang Zhiyong yangzy.f...@cn.fujitsu.com Signed-off-by: Xinghai Yu yuxing...@cn.fujitsu.com Cc

[libvirt] [PATCH 09/13] src/locking/lock_daemon.c: Init ftrace backend in program 'virtlockd'

2014-03-10 Thread yangzy.f...@cn.fujitsu.com
From: Xinghai Yu yuxing...@cn.fujitsu.com Signed-off-by: Xinghai Yu yuxing...@cn.fujitsu.com --- src/locking/lock_daemon.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/locking/lock_daemon.c b/src/locking/lock_daemon.c index e047751..2de5331 100644 ---

[libvirt] [PATCH 00/13] Add multiple trace backend function and add new ftrace backend for libvirt

2014-03-10 Thread yangzy.f...@cn.fujitsu.com
From: Xinghai Yu yuxing...@cn.fujitsu.com This patch set will let libvirt to support multiple trace backend function and add a new 'ftrace' backend at the same time. Then, libvirt would have 2 trace backend: dtrace, ftrace.They can be used alone or together. Patchs 1,2,3,4,5 are used for

[libvirt] [PATCH 07/13] src/libvirt.c: Init ftrace backend in libvirt library so that programs containing it can use ftrace

2014-03-10 Thread yangzy.f...@cn.fujitsu.com
From: Xinghai Yu yuxing...@cn.fujitsu.com Signed-off-by: Xinghai Yu yuxing...@cn.fujitsu.com --- src/libvirt.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/libvirt.c b/src/libvirt.c index a385935..5d519d4 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -69,6 +69,10 @@

[libvirt] [PATCH 13/13] src/security/virt-aa-helper.c: Init ftrace backend in program 'virt-aa-helper'

2014-03-10 Thread yangzy.f...@cn.fujitsu.com
From: Xinghai Yu yuxing...@cn.fujitsu.com Signed-off-by: Xinghai Yu yuxing...@cn.fujitsu.com --- src/security/virt-aa-helper.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c index e7f1359..fa8894f 100644 ---

[libvirt] [PATCH 08/13] src/qemu/qemu_driver.c: Init ftrace backend in qemu driver so that qemu driver can support ftrace

2014-03-10 Thread yangzy.f...@cn.fujitsu.com
From: Xinghai Yu yuxing...@cn.fujitsu.com Signed-off-by: Xinghai Yu yuxing...@cn.fujitsu.com --- src/qemu/qemu_driver.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 9aad2dc..6c5299f 100644 --- a/src/qemu/qemu_driver.c +++

[libvirt] [PATCH 05/13] daemon, src: Use new tracepoint function calls to replace old PROBE macro calls to support multiple trace function

2014-03-10 Thread yangzy.f...@cn.fujitsu.com
From: Xinghai Yu yuxing...@cn.fujitsu.com Remove the macro PROBE's definition in 'internal.h' and repalce the old 'PROBE' calls with new tracepoint function in source codes. Preprocess judgement by 'WITH_TRACE_PROBES' is to avoid the undefined errors which come from 'virt-login-shell' which

[libvirt] [PATCH 06/13] configure.ac, Makefile.am, src: Add new ftrace backend

2014-03-10 Thread yangzy.f...@cn.fujitsu.com
From: Xinghai Yu yuxing...@cn.fujitsu.com Using the macro exported by configure.ac to decide which trace backend to build for libvirt. We got 3 trace macros now: WITH_TRACE_PROBES, if --with-ftrace or --with-dtrace option was set, this macro would be true and it tell the codes that we will use

[libvirt] [PATCH 12/13] src/lxc/lxc_controller.c: Init ftrace backend in program 'libvirt_lxc'

2014-03-10 Thread yangzy.f...@cn.fujitsu.com
From: Xinghai Yu yuxing...@cn.fujitsu.com Signed-off-by: Xinghai Yu yuxing...@cn.fujitsu.com --- src/lxc/lxc_controller.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/lxc/lxc_controller.c b/src/lxc/lxc_controller.c index 5ca960f..e726afd 100644 --- a/src/lxc/lxc_controller.c

[libvirt] [PATCH 03/13] src: Use new tracepoint declaration files to replace the old dtrace declaration files to support multiple trace function

2014-03-10 Thread yangzy.f...@cn.fujitsu.com
From: Xinghai Yu yuxing...@cn.fujitsu.com In order to support multiple trace backend, we have to quit the existing dtrace points definition files for they are only used by dtrace and their format are not easy to use for supporting multiple trace backend. The new tracepoint format files can

[libvirt] [PATCH 10/13] src/util/iohelper.c: Init ftrace backend in program 'libvirt_iohelper'

2014-03-10 Thread yangzy.f...@cn.fujitsu.com
From: Xinghai Yu yuxing...@cn.fujitsu.com Signed-off-by: Xinghai Yu yuxing...@cn.fujitsu.com --- src/util/iohelper.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/util/iohelper.c b/src/util/iohelper.c index 9610063..3b33c07 100644 --- a/src/util/iohelper.c +++

[libvirt] [PATCH 11/13] src/storage/parthelper.c: Init ftrace backend in program 'libvirt_parthelper'

2014-03-10 Thread yangzy.f...@cn.fujitsu.com
From: Xinghai Yu yuxing...@cn.fujitsu.com Signed-off-by: Xinghai Yu yuxing...@cn.fujitsu.com --- src/storage/parthelper.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/storage/parthelper.c b/src/storage/parthelper.c index c04f1bd..e9b56fe 100644 --- a/src/storage/parthelper.c