From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Ehrhardt Subject: Re: kvmtrace? Date: Mon, 07 Jul 2008 16:07:05 +0200 Message-ID: <48722309.7020500@linux.vnet.ibm.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org To: Jun Koi Return-path: Received: from mtagate6.uk.ibm.com ([195.212.29.139]:7038 "EHLO mtagate6.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753199AbYGGOIR (ORCPT ); Mon, 7 Jul 2008 10:08:17 -0400 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate6.uk.ibm.com (8.13.8/8.13.8) with ESMTP id m67E778i047712 for ; Mon, 7 Jul 2008 14:07:07 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v9.0) with ESMTP id m67E76t02363532 for ; Mon, 7 Jul 2008 15:07:06 +0100 Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m67E767h013778 for ; Mon, 7 Jul 2008 15:07:06 +0100 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Jun Koi wrote: > Hi, > > Could anybody explain a bit about kvmtrace? I cannot find any doc on > it anywhere. > > - Is there any short usage instruction for kvmtrace? > =20 I don't know if there is an official doc yet, but you can just start=20 with the simple version like: ./kvmtrace -o outfile -w 5 which traces for 5 seconds to outfile.* After that you can cat that file and pipe it to kvmtrace_format which=20 converts it to a readable file: cat outfile.kvmtrace.0 | ./kvmtrace_format formats formats is a simple file defining how to present the trace records. > - Which kind of data kvmtrace can collect? > =20 Due to the structure of the "formats" file (lockated in=20 kvm-userspace/user/formats) this is also a list of the event types=20 currently tracked - it is readable ascii and lists event+additional dat= a=20 reported. Both kvmtrace (c) & kvmtrace_formats (python) are not very big (yet) so= =20 if you want to go further just look into the code. While I'm sure that=20 it will grow in complexity in the future it's clearly arranged and easy= =20 to read atm. > Many thanks, > Jun > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > =20 --=20 Gr=FCsse / regards,=20 Christian Ehrhardt IBM Linux Technology Center, Open Virtualization