summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/setup.py
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2012-10-16 14:51:04 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-10-17 11:45:38 -0300
commit356712f6e296fdae1edae51b96b485ed830bdc0c (patch)
treec39d432024ac279c23ae4d9083fc103b1fcc7125 /tools/perf/util/setup.py
parent743df75ff10630f1f2a461f0f4b51f601f53ec44 (diff)
downloadop-kernel-dev-356712f6e296fdae1edae51b96b485ed830bdc0c.zip
op-kernel-dev-356712f6e296fdae1edae51b96b485ed830bdc0c.tar.gz
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. Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-vrvp3azmbfzexnpmkhmvtzzc@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/setup.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud