OSDN Git Service

perf tools: Use sscanf for parsing /proc/pid/maps
authorNamhyung Kim <namhyung@kernel.org>
Sun, 11 Nov 2012 14:20:50 +0000 (23:20 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 14 Nov 2012 19:51:40 +0000 (16:51 -0300)
commit6064803313bad9ae4cae233a9d56678adb2b6e7c
tree599a60fbd594921acc0357df2d01370c10e45fea
parent0020ce23864d16f66e5667013b8b43d1df3e142e
perf tools: Use sscanf for parsing /proc/pid/maps

When reading those files to synthesize MMAP events.  It makes the code
shorter and cleaner.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1352643651-13891-1-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/event.c