kernel_optimize_test/tools/perf/util
Tom Zanussi b1dcc03cb8 perf/scripts: Tuple was set from long in both branches in python_process_event()
This is a fix to the signed/unsigned field handling in the
Python scripting engine, based on a patch from Roel Kluin.

Basically, Python wants to use a PyInt (which is internally a
long) if it can i.e. if the value will fit into that type.  If
not, it stores it into a PyLong, which isn't actually a long,
but an arbitrary-precision integer variable.

The code below is similar to to what Python does internally, and
it seems to work as expected on the x86 and x86_64 sytems I
tested it on.

Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Roel Kluin <roel.kluin@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: rostedt@goodmis.org
LKML-Reference: <1270184305.6422.10.camel@tropicana>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2010-04-02 21:32:16 +02:00
..
include
scripting-engines perf/scripts: Tuple was set from long in both branches in python_process_event() 2010-04-02 21:32:16 +02:00
abspath.c
alias.c
build-id.c
build-id.h
cache.h
callchain.c
callchain.h
color.c
color.h
config.c
cpumap.c perf tools: Fix sparse CPU numbering related bugs 2010-03-11 13:36:53 +01:00
cpumap.h perf tools: Fix sparse CPU numbering related bugs 2010-03-11 13:36:53 +01:00
ctype.c
debug.c
debug.h
debugfs.c
debugfs.h
environment.c
event.c
event.h perf session: Add storage for seperating event types in report 2010-03-10 13:53:48 +01:00
exec_cmd.c
exec_cmd.h
generate-cmdlist.sh
header.c
header.h
help.c
help.h
hist.c Merge branch 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2010-03-18 16:52:46 -07:00
hist.h perf session: Change perf_session post processing functions to take histogram tree 2010-03-10 13:53:49 +01:00
levenshtein.c
levenshtein.h
map.c
map.h
pager.c
parse-events.c
parse-events.h
parse-options.c
parse-options.h
path.c
PERF-VERSION-GEN
probe-event.c perf probe: Fix need_dwarf flag if lazy matching is used 2010-03-13 08:32:22 +01:00
probe-event.h
probe-finder.c perf probe: Use original address instead of CU-based address 2010-03-16 10:02:19 +01:00
probe-finder.h perf probe: Use original address instead of CU-based address 2010-03-16 10:02:19 +01:00
quote.c
quote.h
run-command.c
run-command.h
session.c perf session: Add storage for seperating event types in report 2010-03-10 13:53:48 +01:00
session.h perf session: Add storage for seperating event types in report 2010-03-10 13:53:48 +01:00
sigchain.c
sigchain.h
sort.c
sort.h
strbuf.c
strbuf.h
string.c
string.h
strlist.c
strlist.h
svghelper.c
svghelper.h
symbol.c perf top: Improve the autosizing of column lenghts 2010-03-16 09:52:36 +01:00
symbol.h perf top: Improve the autosizing of column lenghts 2010-03-16 09:52:36 +01:00
thread.c perf report: Print the map table just after samples for which no map was found 2010-03-10 13:53:52 +01:00
thread.h perf report: Print the map table just after samples for which no map was found 2010-03-10 13:53:52 +01:00
trace-event-info.c
trace-event-parse.c
trace-event-read.c
trace-event-scripting.c
trace-event.h
types.h
usage.c
util.c
util.h
values.c
values.h
wrapper.c