Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932676AbZKXKe3 (ORCPT ); Tue, 24 Nov 2009 05:34:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932637AbZKXKe2 (ORCPT ); Tue, 24 Nov 2009 05:34:28 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57630 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932621AbZKXKe1 (ORCPT ); Tue, 24 Nov 2009 05:34:27 -0500 Message-ID: <4B0BB6B1.5010302@redhat.com> Date: Tue, 24 Nov 2009 12:34:25 +0200 From: Avi Kivity User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Thunderbird/3.0b4 MIME-Version: 1.0 To: Johannes Berg CC: kvm , linux-kernel , Steven Rostedt Subject: Re: kvmmmu tracing References: <1258974375.7094.158.camel@johannes.local> <4B0BAC76.3080202@redhat.com> <1259057130.3985.1.camel@johannes.local> In-Reply-To: <1259057130.3985.1.camel@johannes.local> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1213 Lines: 37 On 11/24/2009 12:05 PM, Johannes Berg wrote: > On Tue, 2009-11-24 at 11:50 +0200, Avi Kivity wrote: > >> On 11/23/2009 01:06 PM, Johannes Berg wrote: >> >>> Commit f691fe1da7e2715137d21ae5a80bec64db4625db is really broken wrt. >>> the userspace interface for tracing because of the weird >>> KVM_MMU_PAGE_PRINTK macro. >>> >>> >>> >> Can you explain what is wrong with it? >> > It's a big C expression that trace-cmd can't parse :) > Um, C can be easily parsed with a C compiler. I don't think you can expect it to be a plain format string and argument list. >> Is userspace reading mmutrace.h? When the structure attributes can be >> exported via /sys/kernel/debug/tracing? >> > Yes ... look > at /sys/kernel/debug/tracing/events/kvmmmu/kvm_mmu_unsync_page/format > for instance. > You can fall back to using the attributes to build your own format string. -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/