<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/x86/kernel/ds.c, branch linux-2.6.30.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.30.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.30.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2009-03-06T15:13:15Z</updated>
<entry>
<title>x86, pebs: correct qualifier passed to ds_write_config() from ds_request_pebs()</title>
<updated>2009-03-06T15:13:15Z</updated>
<author>
<name>Markus Metzger</name>
</author>
<published>2009-03-05T07:57:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=73bf1b62f561fc8ecb00e2810efe4fe769f4933e'/>
<id>urn:sha1:73bf1b62f561fc8ecb00e2810efe4fe769f4933e</id>
<content type='text'>
ds_write_config() can write the BTS as well as the PEBS part of
the DS config. ds_request_pebs() passes the wrong qualifier, which
results in the wrong configuration to be written.

Reported-by: Stephane Eranian &lt;eranian@googlemail.com&gt;
Signed-off-by: Markus Metzger &lt;markus.t.metzger@intel.com&gt;
LKML-Reference: &lt;20090305085721.A22550@sedona.ch.intel.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>x86, bts: remove bad warning</title>
<updated>2009-03-06T15:13:15Z</updated>
<author>
<name>Markus Metzger</name>
</author>
<published>2009-03-05T07:49:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9ca0791dcaa666e8e8f4b4ca028b65b4bde9cb28'/>
<id>urn:sha1:9ca0791dcaa666e8e8f4b4ca028b65b4bde9cb28</id>
<content type='text'>
In case a ptraced task is reaped (while the tracer is still attached),
ds_exit_thread() is called before ptrace_exit(). The latter will
release the bts_tracer and remove the thread's ds_ctx.
The former will WARN() if the context is not NULL.

Oleg Nesterov submitted patches that move ptrace_exit() before
exit_thread() and thus reverse the order of the above calls.

Remove the bad warning. I will add it again when Oleg's changes are in.

Signed-off-by: Markus Metzger &lt;markus.t.metzger@intel.com&gt;
LKML-Reference: &lt;20090305084954.A22000@sedona.ch.intel.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>x86, ds, bts: cleanup/fix DS configuration</title>
<updated>2009-01-22T13:35:00Z</updated>
<author>
<name>Markus Metzger</name>
</author>
<published>2009-01-19T09:38:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ba2607fe9c1f2d4ad5a3d4c4ae9117c5bfdca826'/>
<id>urn:sha1:ba2607fe9c1f2d4ad5a3d4c4ae9117c5bfdca826</id>
<content type='text'>
Cleanup the cpuid check for DS configuration.

This also fixes a Corei7 CPUID enumeration bug.

Signed-off-by: Markus Metzger &lt;markus.t.metzger@intel.com&gt;
Signed-off-by: Steven Rostedt &lt;srostedt@redhat.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>x86, bts: add fork and exit handling</title>
<updated>2008-12-20T08:15:46Z</updated>
<author>
<name>Markus Metzger</name>
</author>
<published>2008-12-19T14:10:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bf53de907dfdaac178c92d774aae7370d7b97d20'/>
<id>urn:sha1:bf53de907dfdaac178c92d774aae7370d7b97d20</id>
<content type='text'>
Impact: introduce new ptrace facility

Add arch_ptrace_untrace() function that is called when the tracer
detaches (either voluntarily or when the tracing task dies);
ptrace_disable() is only called on a voluntary detach.

Add ptrace_fork() and arch_ptrace_fork(). They are called when a
traced task is forked.

Clear DS and BTS related fields on fork.

Release DS resources and reclaim memory in ptrace_untrace(). This
releases resources already when the tracing task dies. We used to do
that when the traced task dies.

Signed-off-by: Markus Metzger &lt;markus.t.metzger@intel.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>x86, bts: correctly report invalid bts records</title>
<updated>2008-12-16T17:28:37Z</updated>
<author>
<name>Markus Metzger</name>
</author>
<published>2008-12-16T14:53:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d072c25f531c6513994960401d2c7f059434c0d2'/>
<id>urn:sha1:d072c25f531c6513994960401d2c7f059434c0d2</id>
<content type='text'>
Impact: change the reporting of empty BTS records

Correctly report a cleared BTS record as invalid. Used to be reported
as branch from 0 to 0.

Signed-off-by: Markus Metzger &lt;markus.t.metzger@intel.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>x86, bts: remove recursion from get_context</title>
<updated>2008-12-16T17:27:25Z</updated>
<author>
<name>Markus Metzger</name>
</author>
<published>2008-12-16T14:51:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cc1dc6d039ced64c2f8b8457bf1cccf4ecfc5942'/>
<id>urn:sha1:cc1dc6d039ced64c2f8b8457bf1cccf4ecfc5942</id>
<content type='text'>
Impact: cleanup

Optimistically allocate a DS context. It is extremely unlikely that
one already existed. This simplifies the code a lot.

Signed-off-by: Markus Metzger &lt;markus.t.metzger@intel.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>x86, bts: fix build error</title>
<updated>2008-12-12T07:21:19Z</updated>
<author>
<name>Ingo Molnar</name>
</author>
<published>2008-12-12T07:21:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ffc2238af8431d930d2c15f16feecf1fd6d75642'/>
<id>urn:sha1:ffc2238af8431d930d2c15f16feecf1fd6d75642</id>
<content type='text'>
Impact: build fix

 arch/x86/kernel/ds.c: In function 'ds_request':
 arch/x86/kernel/ds.c:236: sorry, unimplemented: inlining failed in call to 'ds_get_context': recursive inlining

but the recursion here is scary ...

Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>x86, bts: provide in-kernel branch-trace interface</title>
<updated>2008-12-12T07:08:12Z</updated>
<author>
<name>Markus Metzger</name>
</author>
<published>2008-12-11T12:49:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c2724775ce57c98b8af9694857b941dc61056516'/>
<id>urn:sha1:c2724775ce57c98b8af9694857b941dc61056516</id>
<content type='text'>
Impact: cleanup

Move the BTS bits from ptrace.c into ds.c.

Signed-off-by: Markus Metzger &lt;markus.t.metzger@intel.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>x86, bts: turn BUG_ON into WARN_ON_ONCE</title>
<updated>2008-12-12T07:08:10Z</updated>
<author>
<name>Markus Metzger</name>
</author>
<published>2008-12-11T12:45:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b0884e25fe361f2ca228808fb5fd1b74cb04e711'/>
<id>urn:sha1:b0884e25fe361f2ca228808fb5fd1b74cb04e711</id>
<content type='text'>
Impact: make the ds code more debuggable

Turn BUG_ON's into WARN_ON_ONCE.

Signed-off-by: Markus Metzger &lt;markus.t.metzger@intel.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>x86, bts, ptrace: move BTS buffer allocation from ds.c into ptrace.c</title>
<updated>2008-11-25T16:31:12Z</updated>
<author>
<name>Markus Metzger</name>
</author>
<published>2008-11-25T08:05:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6abb11aecd888d1da6276399380b7355f127c006'/>
<id>urn:sha1:6abb11aecd888d1da6276399380b7355f127c006</id>
<content type='text'>
Impact: restructure DS memory allocation to be done by the usage site of DS

Require pre-allocated buffers in ds.h.

Move the BTS buffer allocation for ptrace into ptrace.c.
The pointer to the allocated buffer is stored in the traced task's
task_struct together with the handle returned by ds_request_bts().

Removes memory accounting code.

Signed-off-by: Markus Metzger &lt;markus.t.metzger@intel.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
</feed>
