<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/tools/perf/util/scripting-engines/trace-event-python.c, branch linux-2.6.35.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-2.6.35.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-2.6.35.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2010-06-01T09:12:35+00:00</updated>
<entry>
<title>perf scripts python: Give field dict to unhandled callback</title>
<updated>2010-06-01T09:12:35+00:00</updated>
<author>
<name>Pierre Tardy</name>
<email>tardyp@gmail.com</email>
</author>
<published>2010-05-31T21:12:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=c02514850d67be8db6b2b6658cbc23ac1fbf8bc7'/>
<id>urn:sha1:c02514850d67be8db6b2b6658cbc23ac1fbf8bc7</id>
<content type='text'>
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 types

This will for example greatly simplify pytimechart event demux.

Acked-by: Frederic Weisbecker &lt;fweisbec@gmail.com&gt;
Acked-by: Tom Zanussi &lt;tzanussi@gmail.com&gt;
Cc: Ingo Molnar &lt;mingo@elte.hu&gt;,
Cc: Frederic Weisbecker &lt;fweisbec@gmail.com&gt;
Cc: Tom Zanussi &lt;tzanussi@gmail.com&gt;
LKML-Reference: &lt;1275340329-2397-1-git-send-email-tardyp@gmail.com&gt;
Signed-off-by: Pierre Tardy &lt;tardyp@gmail.com&gt;
Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
</content>
</entry>
<entry>
<title>perf/trace/scripting: don't show script start/stop messages by default</title>
<updated>2010-05-10T22:50:59+00:00</updated>
<author>
<name>Tom Zanussi</name>
<email>tzanussi@gmail.com</email>
</author>
<published>2010-05-10T04:46:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3824a4e8da9791f4eed99d69bfcdb3b42f440426'/>
<id>urn:sha1:3824a4e8da9791f4eed99d69bfcdb3b42f440426</id>
<content type='text'>
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 &lt;fweisbec@gmail.com&gt;
Cc: Ingo Molnar &lt;mingo@elte.hu&gt;
LKML-Reference: &lt;1273466820-9330-7-git-send-email-tzanussi@gmail.com&gt;
Signed-off-by: Tom Zanussi &lt;tzanussi@gmail.com&gt;
Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
</content>
</entry>
<entry>
<title>perf/scripts: Tuple was set from long in both branches in python_process_event()</title>
<updated>2010-04-02T19:32:16+00:00</updated>
<author>
<name>Tom Zanussi</name>
<email>tzanussi@gmail.com</email>
</author>
<published>2010-04-02T04:58:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=b1dcc03cb8ee0f5718491e8c518257238dc64e00'/>
<id>urn:sha1:b1dcc03cb8ee0f5718491e8c518257238dc64e00</id>
<content type='text'>
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 &lt;tzanussi@gmail.com&gt;
Cc: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
Cc: Roel Kluin &lt;roel.kluin@gmail.com&gt;
Cc: Frederic Weisbecker &lt;fweisbec@gmail.com&gt;
Cc: rostedt@goodmis.org
LKML-Reference: &lt;1270184305.6422.10.camel@tropicana&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>perf/scripts: Remove unnecessary PyTuple resizes</title>
<updated>2010-02-25T03:07:49+00:00</updated>
<author>
<name>Tom Zanussi</name>
<email>tzanussi@gmail.com</email>
</author>
<published>2010-02-22T07:12:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=44ad9cd8f0893b9ae0ac729a7dc2a1ebcd170ac6'/>
<id>urn:sha1:44ad9cd8f0893b9ae0ac729a7dc2a1ebcd170ac6</id>
<content type='text'>
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 &lt;tzanussi@gmail.com&gt;
Cc: Ingo Molnar &lt;mingo@elte.hu&gt;
Cc: Steven Rostedt &lt;rostedt@goodmis.org&gt;
Cc: Keiichi KII &lt;k-keiichi@bx.jp.nec.com&gt;
Cc: Peter Zijlstra &lt;a.p.zijlstra@chello.nl&gt;
Cc: Paul Mackerras &lt;paulus@samba.org&gt;
Cc: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
LKML-Reference: &lt;1266822779.6426.4.camel@tropicana&gt;
Signed-off-by: Frederic Weisbecker &lt;fweisbec@gmail.com&gt;
</content>
</entry>
<entry>
<title>perf/scripts: Add Python scripting engine</title>
<updated>2010-02-25T03:07:29+00:00</updated>
<author>
<name>Tom Zanussi</name>
<email>tzanussi@gmail.com</email>
</author>
<published>2010-01-27T08:27:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=7e4b21b84c43bb8a80b916e40718ca4ed1fc52e6'/>
<id>urn:sha1:7e4b21b84c43bb8a80b916e40718ca4ed1fc52e6</id>
<content type='text'>
Add base support for Python scripting to perf trace.

Signed-off-by: Tom Zanussi &lt;tzanussi@gmail.com&gt;
Cc: Ingo Molnar &lt;mingo@elte.hu&gt;
Cc: Steven Rostedt &lt;rostedt@goodmis.org&gt;
Cc: Keiichi KII &lt;k-keiichi@bx.jp.nec.com&gt;
Cc: Peter Zijlstra &lt;a.p.zijlstra@chello.nl&gt;
Cc: Paul Mackerras &lt;paulus@samba.org&gt;
Cc: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
LKML-Reference: &lt;1264580883-15324-6-git-send-email-tzanussi@gmail.com&gt;
Signed-off-by: Frederic Weisbecker &lt;fweisbec@gmail.com&gt;
</content>
</entry>
</feed>
