aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2012-10-16 14:51:04 -0300
committerArnaldo Carvalho de Melo <[email protected]>2012-10-29 12:36:46 -0200
commit0da2e9c24804d787cbc919b3e0d28ee7c00240ff (patch)
treed480571278f5952b3f22e43ebb6c75cd0416db5a /lib/memory-notifier-error-inject.c
parent0089fa9831f3752869143c7928adb94ac6353085 (diff)
perf python: Initialize 'page_size' variable
The commit 0c1fe6b: 'perf tools: Have the page size value available for all tools' Broke the python binding because the global variable 'page_size' is initialized on the main() routine, that is not called when using just the python binding, causing evlist.mmap() to fail because it expects that variable to be initialized to the system's page size. Fix it by initializing it on the binding init routine. Reported-by: David Ahern <[email protected]> Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions