[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4F333877.8050508@linux.vnet.ibm.com>
Date: Thu, 09 Feb 2012 11:07:35 +0800
From: Xiao Guangrong <xiaoguangrong@...ux.vnet.ibm.com>
To: David Ahern <dsahern@...il.com>
CC: Xiao Guangrong <xiaoguangrong.eric@...il.com>,
Avi Kivity <avi@...hat.com>,
Marcelo Tosatti <mtosatti@...hat.com>,
Ingo Molnar <mingo@...e.hu>,
Arnaldo Carvalho de Melo <acme@...radead.org>,
Stefan Hajnoczi <stefanha@...il.com>,
LKML <linux-kernel@...r.kernel.org>, KVM <kvm@...r.kernel.org>
Subject: Re: [PATCH v3 3/3] KVM: perf: kvm events analysis tool
On 02/08/2012 10:26 PM, David Ahern wrote:
>>>> +static int kvm_events_report(int vcpu)
>>>> +{
>>>> + init_kvm_event_record();
>>>> + init_kvm_tid_to_pid();
>>>> + verify_vcpu(vcpu);
>>>> + select_key();
>>>> + register_kvm_events_ops();
>>>> + setup_pager();
>>>
>>> I believe setup_pager is handled by perf.c
>>>
>>
>>
>> Hmm, i did not find it, could you please tell me where is it?
>> And, setup_pager is also used in other tools such 'perf sched',
>> 'perf lock'...
>>
>
> run_builtin() --> commit_pager_choice() --> setup_pager()
>
> It could be that the other commands need to be updated.
>
David,
Thanks for your review and explanation!
The code of commit_pager_choice():
static void commit_pager_choice(void)
{
switch (use_pager) {
case 0:
setenv("PERF_PAGER", "cat", 1);
break;
case 1:
/* setup_pager(); */
break;
default:
break;
}
}
setup_pager() is not called.
And it looks like kvm-events can not show the result properly if
i try to remove setup_pager.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists