David Ahern 347ed9903a perf kvm: Use strtol for walking guestmount directory
Only want to process directories under the guestmnount directory that
have a pid as a name (ie, all digits). Other entries in the guestmount
directory should be ignored.  There is already a check that requires the
first character of each entry to be a digit, but atoi is used to convert
the directory name to a pid. For example if guestmount contains a
directory with the name 1foo, atoi converts it to a pid of 1 and a
machine is created with a pid of 1. This is wrong; this directory really
should be ignored. Use strtol to do that.

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/1343616875-6455-1-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2012-08-03 10:35:23 -03:00
..
2011-02-16 13:30:48 +01:00
2012-02-13 23:17:40 -02: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-06-19 13:06:18 -03:00
2012-06-19 13:06:18 -03:00
2012-06-19 13:06:19 -03:00
2012-07-25 11:33:17 -03:00
2012-08-01 18:42:54 -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