David Ahern 5cd95c2db4 perf kvm: Set name for VM process in guest machine
COMM events are not generated in the context of a guest machine, so the
thread name is never set for the VMM process. For example, the qemu-kvm
name applies to the process in the host machine, not the guest machine.
So, samples for guest machines are currently displayed as:

    99.67%     :5671  [unknown]         [g] 0xffffffff81366b41

where 5671 is the pid of the VMM. With this patch the samples in the guest
machine are shown as:

    18.43%  [guest/5671]  [unknown]           [g] 0xffffffff810d68b7

Tested-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1342826756-64663-3-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2012-07-25 11:27:55 -03:00
..
2011-02-16 13:30:48 +01:00
2012-02-13 23:17:40 -02:00
2012-06-19 13:06:22 -03:00
2012-06-19 13:06:18 -03:00
2010-08-21 11:22:47 -03:00
2012-06-29 13:31:27 -03:00
2012-06-18 12:13:26 +02:00
2010-05-14 20:05:21 -03:00
2012-01-24 19:47:37 -02:00
2012-07-18 11:17:17 +02:00
2012-06-19 13:06:18 -03:00
2012-06-19 13:06:18 -03:00
2012-06-19 13:06:19 -03:00
2012-05-17 12:32:54 -03:00
2012-05-02 15:20:30 -03:00
2012-06-19 13:06:19 -03:00