summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorStephane Eranian <eranian@google.com>2010-09-21 00:45:01 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-10-04 17:24:51 +0200
commit0f940cb7d970f4fd569bb5f9f49774422f2ccbee (patch)
tree9817e433fede031b46ec7640ac3449c63e15dc31 /arch/x86
parentperf ui hist browser: Fix segfault on 'a' for annotate (diff)
downloadlinux-0f940cb7d970f4fd569bb5f9f49774422f2ccbee.tar.xz
linux-0f940cb7d970f4fd569bb5f9f49774422f2ccbee.zip
perf trace scripting: Fix extern struct definitions
Both python_scripting_ops and perl_scripting_ops have two global definitions. One in trace-event-scripting.c and one in their respective scripting-engine modules. The issue is that depending on the linker order one definition or the other is chosen. One is uninitialized (bss), while the other is initialized. If the uninitialized version is chosen, then perf does not function properly. This patch fixes this by adding the extern prefix to the definitions in trace-event-scripting.c. Cc: David S. Miller <davem@davemloft.net> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Robert Richter <robert.richter@amd.com> LKML-Reference: <4c97e41a.078fd80a.7a8b.3cc9@mx.google.com> Signed-off-by: Stephane Eranian <eranian@google.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions