From: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
To: "Liu, Eric E" <eric.e.liu@intel.com>
Cc: kvm-ppc-devel@lists.sourceforge.net,
kvm-devel@lists.sourceforge.net,
Hollis Blanchard <hollisb@us.ibm.com>
Subject: Re: [kvm-ppc-devel] [kvm-devel] [PATCH 1/5]Add some trace markers
Date: Fri, 18 Apr 2008 06:08:37 +0000 [thread overview]
Message-ID: <48083AE5.5020800@linux.vnet.ibm.com> (raw)
In-Reply-To: <9D7649D18729DE4BB2BD7B494F7FEDC201295294@pdsmsx415.ccr.corp.intel.com>
Liu, Eric E wrote:
> Hollis Blanchard wrote:
>> On Wednesday 16 April 2008 01:45:34 Liu, Eric E wrote:
[...]
>> Actually... we could have kvmtrace itself insert the metadata, so
>> there would be no chance of it being overwritten in the kernel
>> buffers. The header could be written in tip_open_output(), and update
>> fs_size accordingly.
>>
> Yes, let kvmtrace insert the metadata is more reasonable.
>
I wanted to note that the kvmtrace tool should, but not need to know everything about the data format.
I think of e.g. changing kernel implementations that change endianess or even flags we don't yet know, but we might need in the future.
What about adding another debugfs entry the kernel can use to expose the "kvmtrace-metadata" defined by the kernel implementation.
The kvmtrace tool could then use that to build up the record by using one entry for kernel defined metadata and another to add any metadata that would be defined by kvmtrace tool itself.
what about that one:
struct metadata {
u32 kmagic; /* stores kernel defined metadata read from debugfs entry */
u32 umagic; /* stores userspace tool defined metadata */
u32 extra; /* it is redundant, only use to fit into record. */
}
That should give us the flexibility to keep the format if we get more metadata requirements in the future.
--
Grüsse / regards,
Christian Ehrhardt
IBM Linux Technology Center, Open Virtualization
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
kvm-ppc-devel mailing list
kvm-ppc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel
WARNING: multiple messages have this Message-ID (diff)
From: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
To: "Liu, Eric E" <eric.e.liu@intel.com>
Cc: kvm-ppc-devel@lists.sourceforge.net,
kvm-devel@lists.sourceforge.net,
Hollis Blanchard <hollisb@us.ibm.com>
Subject: Re: [kvm-ppc-devel] [PATCH 1/5]Add some trace markers and exposeinterfaces in kernel for tracing
Date: Fri, 18 Apr 2008 08:08:37 +0200 [thread overview]
Message-ID: <48083AE5.5020800@linux.vnet.ibm.com> (raw)
In-Reply-To: <9D7649D18729DE4BB2BD7B494F7FEDC201295294@pdsmsx415.ccr.corp.intel.com>
Liu, Eric E wrote:
> Hollis Blanchard wrote:
>> On Wednesday 16 April 2008 01:45:34 Liu, Eric E wrote:
[...]
>> Actually... we could have kvmtrace itself insert the metadata, so
>> there would be no chance of it being overwritten in the kernel
>> buffers. The header could be written in tip_open_output(), and update
>> fs_size accordingly.
>>
> Yes, let kvmtrace insert the metadata is more reasonable.
>
I wanted to note that the kvmtrace tool should, but not need to know everything about the data format.
I think of e.g. changing kernel implementations that change endianess or even flags we don't yet know, but we might need in the future.
What about adding another debugfs entry the kernel can use to expose the "kvmtrace-metadata" defined by the kernel implementation.
The kvmtrace tool could then use that to build up the record by using one entry for kernel defined metadata and another to add any metadata that would be defined by kvmtrace tool itself.
what about that one:
struct metadata {
u32 kmagic; /* stores kernel defined metadata read from debugfs entry */
u32 umagic; /* stores userspace tool defined metadata */
u32 extra; /* it is redundant, only use to fit into record. */
}
That should give us the flexibility to keep the format if we get more metadata requirements in the future.
--
Grüsse / regards,
Christian Ehrhardt
IBM Linux Technology Center, Open Virtualization
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
next prev parent reply other threads:[~2008-04-18 6:08 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-09 10:01 [PATCH 1/5]Add some trace markers and expose interfaces in kernel for tracing Liu, Eric E
2008-04-15 20:57 ` Hollis Blanchard
2008-04-16 3:13 ` [PATCH 1/5]Add some trace markers and exposeinterfaces " Liu, Eric E
2008-04-16 5:34 ` [kvm-ppc-devel] [kvm-devel] [PATCH 1/5]Add some trace markers Hollis Blanchard
2008-04-16 5:34 ` [PATCH 1/5]Add some trace markers and exposeinterfaces in kernel for tracing Hollis Blanchard
2008-04-16 6:45 ` [kvm-ppc-devel] [kvm-devel] [PATCH 1/5]Add some trace markers Liu, Eric E
2008-04-16 6:45 ` [PATCH 1/5]Add some trace markers and exposeinterfaces in kernel for tracing Liu, Eric E
2008-04-17 21:59 ` [kvm-ppc-devel] [kvm-devel] [PATCH 1/5]Add some trace markers Hollis Blanchard
2008-04-17 21:59 ` [kvm-ppc-devel] [PATCH 1/5]Add some trace markers and exposeinterfaces in kernel for tracing Hollis Blanchard
2008-04-18 1:41 ` [kvm-ppc-devel] [kvm-devel] [PATCH 1/5]Add some trace markers Liu, Eric E
2008-04-18 1:41 ` [kvm-ppc-devel] [PATCH 1/5]Add some trace markers and exposeinterfaces in kernel for tracing Liu, Eric E
2008-04-18 6:08 ` Christian Ehrhardt [this message]
2008-04-18 6:08 ` Christian Ehrhardt
2008-04-20 5:38 ` [kvm-ppc-devel] [kvm-devel] [PATCH 1/5]Add some trace markers Liu, Eric E
2008-04-20 5:38 ` [kvm-ppc-devel] [PATCH 1/5]Add some trace markers and exposeinterfaces in kernel for tracing Liu, Eric E
2008-04-21 21:22 ` [kvm-ppc-devel] [kvm-devel] [PATCH 1/5]Add some trace markers Hollis Blanchard
2008-04-21 21:22 ` [kvm-ppc-devel] [PATCH 1/5]Add some trace markers and exposeinterfaces in kernel for tracing Hollis Blanchard
2008-04-22 2:20 ` [kvm-ppc-devel] [kvm-devel] [PATCH 1/5]Add some trace markers Liu, Eric E
2008-04-22 2:20 ` [kvm-ppc-devel] [PATCH 1/5]Add some trace markers and exposeinterfaces in kernel for tracing Liu, Eric E
2008-04-17 18:34 ` [kvm-ppc-devel] [kvm-devel] [PATCH 1/5]Add some trace markers Hollis Blanchard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48083AE5.5020800@linux.vnet.ibm.com \
--to=ehrhardt@linux.vnet.ibm.com \
--cc=eric.e.liu@intel.com \
--cc=hollisb@us.ibm.com \
--cc=kvm-devel@lists.sourceforge.net \
--cc=kvm-ppc-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.