<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/elfutils.git/src/stack.c, branch jankratochvil/corepattern</title>
<subtitle>sourceware.org: git/elfutils.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/elfutils.git/'/>
<entry>
<title>Add --core-pattern option to eu-stack</title>
<updated>2014-11-26T21:44:18+00:00</updated>
<author>
<name>Jan Kratochvil</name>
<email>jan.kratochvil@redhat.com</email>
</author>
<published>2014-11-26T21:44:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/elfutils.git/commit/?id=d7703362ddd0415e5d41ec6f8e7c8a5fc2e49ff7'/>
<id>d7703362ddd0415e5d41ec6f8e7c8a5fc2e49ff7</id>
<content type='text'>
To backtrace crashed thread from Linux core_pattern handler a special operation
similar to PTRACE_ATTACH needs to be done.  This is implemented as a demo in
eu-stack's core_pattern function invoked by eu-stack's --core-pattern option.

The code of core_pattern function has been suggested by Oleg Nesterov.

src/
2014-11-26  Jan Kratochvil  &lt;jan.kratochvil@redhat.com&gt;

	* stack.c: Include sys/ptrace.h and sys/wait.h.
	(OPT_CORE_PATTERN, opt_core_pattern, core_pattern): New.
	(parse_opt): Handle OPT_CORE_PATTERN.  Check opt_core_pattern option
	validity.  Call core_pattern.  Pass it as assume_ptrace_stopped.
	(main): Add "core-pattern" to options.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To backtrace crashed thread from Linux core_pattern handler a special operation
similar to PTRACE_ATTACH needs to be done.  This is implemented as a demo in
eu-stack's core_pattern function invoked by eu-stack's --core-pattern option.

The code of core_pattern function has been suggested by Oleg Nesterov.

src/
2014-11-26  Jan Kratochvil  &lt;jan.kratochvil@redhat.com&gt;

	* stack.c: Include sys/ptrace.h and sys/wait.h.
	(OPT_CORE_PATTERN, opt_core_pattern, core_pattern): New.
	(parse_opt): Handle OPT_CORE_PATTERN.  Check opt_core_pattern option
	validity.  Call core_pattern.  Pass it as assume_ptrace_stopped.
	(main): Add "core-pattern" to options.
</pre>
</div>
</content>
</entry>
<entry>
<title>stack: Add -i, --inlines. Show inlined call frames using DWARF debuginfo.</title>
<updated>2014-01-27T15:07:54+00:00</updated>
<author>
<name>Mark Wielaard</name>
<email>mjw@redhat.com</email>
</author>
<published>2014-01-21T15:13:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/elfutils.git/commit/?id=13968d9aa9990d53999b14494ed55c2d68d4ead5'/>
<id>13968d9aa9990d53999b14494ed55c2d68d4ead5</id>
<content type='text'>
Using dwarf_getscopes_die we can get all scopes that make up the current
subprogram representing an address. Using the call_file/line/column
attributes we can also show the source locations of these "inlined" calls.
Includes a test that shows that when DWARF debuginfo is available all
inlined function call frames and their source location can be shown.

Signed-off-by: Mark Wielaard &lt;mjw@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Using dwarf_getscopes_die we can get all scopes that make up the current
subprogram representing an address. Using the call_file/line/column
attributes we can also show the source locations of these "inlined" calls.
Includes a test that shows that when DWARF debuginfo is available all
inlined function call frames and their source location can be shown.

Signed-off-by: Mark Wielaard &lt;mjw@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>stack: Initialize -n maxframes to 256 by default.</title>
<updated>2014-01-27T15:05:54+00:00</updated>
<author>
<name>Mark Wielaard</name>
<email>mjw@redhat.com</email>
</author>
<published>2014-01-27T15:05:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/elfutils.git/commit/?id=8520f70163866b64f8e9822972dd9c26151455ea'/>
<id>8520f70163866b64f8e9822972dd9c26151455ea</id>
<content type='text'>
Make -n default just 256 frames, 2048 was too big. Also Document magic
number used in frames.allocated initialization.

Signed-off-by: Mark Wielaard &lt;mjw@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make -n default just 256 frames, 2048 was too big. Also Document magic
number used in frames.allocated initialization.

Signed-off-by: Mark Wielaard &lt;mjw@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>stack: Add -d, --debugname. Lookup DWARF debuginfo name for frame address.</title>
<updated>2014-01-27T14:53:40+00:00</updated>
<author>
<name>Mark Wielaard</name>
<email>mjw@redhat.com</email>
</author>
<published>2014-01-20T22:09:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/elfutils.git/commit/?id=531a30acbe175da1f71768e2ffb585c4d45e640b'/>
<id>531a30acbe175da1f71768e2ffb585c4d45e640b</id>
<content type='text'>
Includes test that shows -d matches the function name that corresponds to
the actual source line we report with -s for a frame address.

Signed-off-by: Mark Wielaard &lt;mjw@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Includes test that shows -d matches the function name that corresponds to
the actual source line we report with -s for a frame address.

Signed-off-by: Mark Wielaard &lt;mjw@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix corruption of non-C++ symbols by the demangler.</title>
<updated>2014-01-15T20:16:57+00:00</updated>
<author>
<name>Jan Kratochvil</name>
<email>jan.kratochvil@redhat.com</email>
</author>
<published>2014-01-15T20:16:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/elfutils.git/commit/?id=7c6e785e6eca774080a64801f950bd61785c469e'/>
<id>7c6e785e6eca774080a64801f950bd61785c469e</id>
<content type='text'>
Signed-off-by: Jan Kratochvil &lt;jan.kratochvil@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jan Kratochvil &lt;jan.kratochvil@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>stack: Show and handle -r,--raw even without USE_DEMANGLE.</title>
<updated>2014-01-02T23:06:50+00:00</updated>
<author>
<name>Mark Wielaard</name>
<email>mjw@redhat.com</email>
</author>
<published>2014-01-02T23:06:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/elfutils.git/commit/?id=da91c5bb6997aa562d82ed964ab798bd6c7ac8cd'/>
<id>da91c5bb6997aa562d82ed964ab798bd6c7ac8cd</id>
<content type='text'>
Signed-off-by: Mark Wielaard &lt;mjw@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Mark Wielaard &lt;mjw@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>stack.c (print_frames): Print 0x before build-id hex-offset.</title>
<updated>2014-01-02T22:59:41+00:00</updated>
<author>
<name>Mark Wielaard</name>
<email>mjw@redhat.com</email>
</author>
<published>2014-01-02T22:59:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/elfutils.git/commit/?id=36490c9e861b6ba93d839d2c09f6dc66d60ed87e'/>
<id>36490c9e861b6ba93d839d2c09f6dc66d60ed87e</id>
<content type='text'>
Signed-off-by: Mark Wielaard &lt;mjw@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Mark Wielaard &lt;mjw@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>stack: Allow -n 0 for unlimited frames. Make default 2048 frames.</title>
<updated>2014-01-02T22:49:40+00:00</updated>
<author>
<name>Mark Wielaard</name>
<email>mjw@redhat.com</email>
</author>
<published>2014-01-02T21:31:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/elfutils.git/commit/?id=6034e2f4366c6ac1c02aa2c795db480e7fc9b655'/>
<id>6034e2f4366c6ac1c02aa2c795db480e7fc9b655</id>
<content type='text'>
Signed-off-by: Mark Wielaard &lt;mjw@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Mark Wielaard &lt;mjw@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>libdwfl: Add dwfl_core_file_attach and dwfl_linux_proc_attach.</title>
<updated>2013-12-31T12:59:51+00:00</updated>
<author>
<name>Mark Wielaard</name>
<email>mjw@redhat.com</email>
</author>
<published>2013-12-30T21:00:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/elfutils.git/commit/?id=19108019192ab273c53ae324be448d29dac806ca'/>
<id>19108019192ab273c53ae324be448d29dac806ca</id>
<content type='text'>
Rewrite __libdwfl_attach_state_for_pid and __libdwfl_attach_state_for_core
as public functions and don't call them from dwfl_linux_proc_report and
dwfl_core_file_report anymore. This lets the user attach state explicitly
independ from how the dwfl modules have been reported. Since attaching
state is an explicit action now the error can be returned directly and we
don't need to keep track of process_attach_error. dwfl_linux_proc_attach
lets the user can tell libdwfl whether caller takes care of ptrace
attaching and stopping the threads under inspection, or whether the
callback needs to take care of that and detaching again.

Signed-off-by: Mark Wielaard &lt;mjw@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rewrite __libdwfl_attach_state_for_pid and __libdwfl_attach_state_for_core
as public functions and don't call them from dwfl_linux_proc_report and
dwfl_core_file_report anymore. This lets the user attach state explicitly
independ from how the dwfl modules have been reported. Since attaching
state is an explicit action now the error can be returned directly and we
don't need to keep track of process_attach_error. dwfl_linux_proc_attach
lets the user can tell libdwfl whether caller takes care of ptrace
attaching and stopping the threads under inspection, or whether the
callback needs to take care of that and detaching again.

Signed-off-by: Mark Wielaard &lt;mjw@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>stack: Add -l, --list-modules. Show module memory map, build-id and files.</title>
<updated>2013-12-31T10:58:42+00:00</updated>
<author>
<name>Mark Wielaard</name>
<email>mjw@redhat.com</email>
</author>
<published>2013-12-28T22:25:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/elfutils.git/commit/?id=a6141d27691a68a4af5eb48ab10d27e74d3c2a6b'/>
<id>a6141d27691a68a4af5eb48ab10d27e74d3c2a6b</id>
<content type='text'>
Use to list modules detected for process or core file by stack program
and to see build-ids and which main elf and debug files were recognized
by libdwfl callbacks.

Signed-off-by: Mark Wielaard &lt;mjw@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use to list modules detected for process or core file by stack program
and to see build-ids and which main elf and debug files were recognized
by libdwfl callbacks.

Signed-off-by: Mark Wielaard &lt;mjw@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
