24 Mar, 2011
1 commit
-
Resolving the sample->id to an evsel since the most advanced tools,
report and annotate, and the others will too when they evolve to
properly support multi-event perf.data files.Good also because it does an extra validation, checking that the ID is
valid when present. When that is not the case, the overhead is just a
branch + function call (perf_evlist__id2evsel).Cc: Frederic Weisbecker
Cc: Ingo Molnar
Cc: Mike Galbraith
Cc: Paul Mackerras
Cc: Peter Zijlstra
Cc: Stephane Eranian
Cc: Tom Zanussi
LKML-Reference:
Signed-off-by: Arnaldo Carvalho de Melo
15 Mar, 2011
1 commit
-
Prepare for handling of samples for any event type.
Acked-by: Frederic Weisbecker
Cc: Frederic Weisbecker
Cc: Ingo Molnar
Cc: Paul Mackerras
Cc: Peter Zijlstra
Cc: Thomas Gleixner
LKML-Reference:
Signed-off-by: David Ahern
Signed-off-by: Arnaldo Carvalho de Melo
07 Feb, 2011
1 commit
-
GCC 4.6.0 in Fedora rawhide turned up some compile errors in tools/perf
due to the -Werror=unused-but-set-variable flag.I've gone through and annotated some of the assignments that had side
effects (ie: return value from a function) with the __used annotation,
and in some cases, just removed unused code.In a few cases, we were assigning something useful, but not using it in
later parts of the function.kyle@dreadnought:~/src% gcc --version
gcc (GCC) 4.6.0 20110122 (Red Hat 4.6.0-0.3)Cc: Ingo Molnar
LKML-Reference:
Signed-off-by: Kyle McMartin
[ committer note: Fixed up the annotation fixes, as that code moved recently ]
Signed-off-by: Arnaldo Carvalho de Melo
17 Nov, 2010
1 commit
-
Free the perf trace name space and rename the trace to 'script' which is a
better match for the scripting engine.Signed-off-by: Ingo Molnar
Signed-off-by: Thomas Gleixner
01 Jun, 2010
1 commit
-
trace_unhandled() callback does not allow to access event fields, this patch
resolves the problem.It can also been used as a more pythonic and flexible way for script writters
to demux event typesThis will for example greatly simplify pytimechart event demux.
Acked-by: Frederic Weisbecker
Acked-by: Tom Zanussi
Cc: Ingo Molnar ,
Cc: Frederic Weisbecker
Cc: Tom Zanussi
LKML-Reference:
Signed-off-by: Pierre Tardy
Signed-off-by: Arnaldo Carvalho de Melo
11 May, 2010
1 commit
-
Only print the script start/stop messages in verbose mode - users
normally don't care and it just clutters up the output.Cc: Frédéric Weisbecker
Cc: Ingo Molnar
LKML-Reference:
Signed-off-by: Tom Zanussi
Signed-off-by: Arnaldo Carvalho de Melo
03 Apr, 2010
1 commit
-
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
Cc: Arnaldo Carvalho de Melo
Cc: Roel Kluin
Cc: Frederic Weisbecker
Cc: rostedt@goodmis.org
LKML-Reference:
Signed-off-by: Ingo Molnar
25 Feb, 2010
2 commits
-
If we know the size of a tuple in advance, there's no need to resize
it - start out with the known size in the first place.Signed-off-by: Tom Zanussi
Cc: Ingo Molnar
Cc: Steven Rostedt
Cc: Keiichi KII
Cc: Peter Zijlstra
Cc: Paul Mackerras
Cc: Arnaldo Carvalho de Melo
LKML-Reference:
Signed-off-by: Frederic Weisbecker -
Add base support for Python scripting to perf trace.
Signed-off-by: Tom Zanussi
Cc: Ingo Molnar
Cc: Steven Rostedt
Cc: Keiichi KII
Cc: Peter Zijlstra
Cc: Paul Mackerras
Cc: Arnaldo Carvalho de Melo
LKML-Reference:
Signed-off-by: Frederic Weisbecker