Re: [PATCH V3] perf tools: Change the default filenames for perf kvm diff to perf.data.xxx and perf.data.xxx.old

2013-12-10 Thread Dongsheng Yang
On 12/10/2013 10:38 PM, David Ahern wrote: On 12/11/13, 9:30 AM, Dongsheng Yang wrote: @@ -1001,8 +1002,28 @@ static int data_init(int argc, const char **argv) use_default = false; } } else if (perf_guest) { -defaults[0] = "perf.data.host"; -defaults

Re: [PATCH V3] perf tools: Change the default filenames for perf kvm diff to perf.data.xxx and perf.data.xxx.old

2013-12-10 Thread David Ahern
On 12/11/13, 9:30 AM, Dongsheng Yang wrote: @@ -1001,8 +1002,28 @@ static int data_init(int argc, const char **argv) use_default = false; } } else if (perf_guest) { - defaults[0] = "perf.data.host"; - defaults[1] = "perf.

[PATCH V3] perf tools: Change the default filenames for perf kvm diff to perf.data.xxx and perf.data.xxx.old

2013-12-10 Thread Dongsheng Yang
Command perf kvm diff is used to diff perf.data.host and perf.data.guest by default currently. But it is not a good default behavior. Example: # perf kvm --guestkallsyms /home/kallsyms --guestmodules /home/modules record -a sleep 1 [ perf record: Woken up 1 times to write data ]