Commit Graph

1568 Commits

Author SHA1 Message Date
c670cdd82a sysprof-cli: add symbol rollup unless --no-decode 2019-05-29 15:13:01 -07:00
f57bc57461 sysprof-cli: remove -g option
We might want to save this for gtk
2019-05-29 15:13:01 -07:00
0dc39cf007 libsysprof-ui: fix initial rendering of zeros 2019-05-29 15:13:01 -07:00
82f8872c1d libsysprof: add libc/libstdc++ 2019-05-29 15:13:01 -07:00
1ee1a7cc3a libsysprof: ignore kernel symbols if embedded resolver is found
This ensures that we don't mix symbols from kernels if we can reasonably
expect that the necessary symbols were decoded by the peer.
2019-05-29 15:13:01 -07:00
7743a047b6 libsysprof-capture: add sysprof_capture_reader_find_file() 2019-05-29 15:13:01 -07:00
716b913347 libsysprof: check for enough symbols to dereference 2019-05-29 15:13:01 -07:00
7f92889076 libsysprof: be NULL safe 2019-05-29 15:13:01 -07:00
1583ec3f79 libsysprof: fix tag lookups for 0 tags 2019-05-29 15:13:01 -07:00
c013264186 tests: fix various lseek usage 2019-05-29 15:13:01 -07:00
fd949edc29 tests: add decode-only test
Useful to test that we can decode symbols from a capture properly.
2019-05-29 15:13:01 -07:00
c8c1b53352 libsysprof: be more defensive 2019-05-29 15:13:01 -07:00
1a11480010 libsysprof: add missing externs 2019-05-29 15:13:01 -07:00
d55e36219c libsysprof: fix various seek usage 2019-05-29 15:13:01 -07:00
b1f58d6104 libsysprof: lseek before deserializing 2019-05-29 15:13:01 -07:00
54f5f6be49 libsysprof: decode symbols from embedded maps in callgraphs 2019-05-29 15:13:01 -07:00
6dcf600aaa tests: add test to debug symbol maps 2019-05-29 15:13:01 -07:00
854f0bea52 libsysprof: add symbol resolver that can resolve from capture file
If the capture file has an embedded __symbols__ file within it, we can
try to resolve the function names from the data embedded within that
virtual file.
2019-05-29 15:13:01 -07:00
8f607ed123 libsysprof: use SysprofSymbolMap to write symbol maps 2019-05-29 15:13:01 -07:00
7ffd3e41cf libsysprof: add utility to build symbol maps
These are useful to allow us to append symbol informatio to a capture file
using the existing symbol resolvers.

It can read/write a small format embedded within capture files so that
we can append them from the target machine rather than decoding from the
machine we run Sysprof UI on.
2019-05-29 15:13:01 -07:00
ffda366809 libsysprof-capture: add byte-order helper
This isn't needed for reading captures, but can be helpful when dealing
with embedded data such as file frames.
2019-05-29 15:13:01 -07:00
3b3011544b libsysprof: decode and supplement kernel symbols 2019-05-29 15:13:01 -07:00
1f91bc77ed libsysprof: avoid kallsyms in capture file
The kallsyms is huge (like 12Mb) and we want to avoid adding anything we
don't need. Instead, we can rely on the symbols source to decode the
symbols immediately and add them to supplemental.
2019-05-29 15:13:01 -07:00
649dcf3aac libsysprof: add trailing empty kernel node
This can be used so that we always know a symbol will be after the returned
symbol (so we can look for peer address).
2019-05-29 15:13:01 -07:00
6e3632c0e5 libsysprof-ui: add local symbol decoder source to profiler
This allows us to decode symbols locally at the end of a capture so that
we avoid trying to decode them on a machine without the info.
2019-05-29 15:13:01 -07:00
b2b3b48b52 libsysprof: add __symbols__ file with supplemental symbol data
This can be used by a future symbol resolver to resolve symbols from the
target host rather than on the capture view host.
2019-05-29 15:13:01 -07:00
b9c52f4573 libsysprof: whitespace 2019-05-29 15:13:01 -07:00
b17ff843d7 libsysprof: add helper to decode symbols with address range 2019-05-29 15:13:01 -07:00
e39feeeeb0 utils: add symbol range support for binfile and elfparser 2019-05-29 15:13:01 -07:00
f18a7171cf whitespace 2019-05-29 15:13:01 -07:00
57255a1d29 libsysprof: remove lookaside from public API 2019-05-29 15:13:01 -07:00
90c165aa08 libsysprof: stub out source for appending symbols 2019-05-29 15:13:01 -07:00
8a246d4453 libsysprof: create hook for supplemental writer data 2019-05-29 15:13:01 -07:00
4da55f4267 libsysprof: add cpuinfo to capture file when possible 2019-05-29 15:13:01 -07:00
874fb01c25 libsysprof: use embedded kallsyms when possible
This uses the kallysms that has been embedded in the capture file when
that is possible (such as when proc-source appends it).
2019-05-29 15:13:01 -07:00
b8c30e3285 libsysprof: add kallsyms to capture file
This can be used by the kernel symbol resolver to resolve symbols on a
different machine than where the capture is performed.
2019-05-29 15:13:01 -07:00
318e9e300c tools: add option to list files in capture 2019-05-29 15:13:01 -07:00
9410238d30 libsysprof-capture: skip frame when necessary 2019-05-29 15:13:01 -07:00
596d29496d libsysprof-capture: add file reader helper 2019-05-29 15:13:01 -07:00
336dae4d1f libsysprof-capture: add helper to list files in capture 2019-05-29 15:13:01 -07:00
7650d6e7c6 libsysprof-capture: add file chunk frame type 2019-05-29 15:13:01 -07:00
1940e45bf4 libsysprof-ui: add tooltips for message column 2019-05-29 15:13:01 -07:00
c5e6ef7f2a libsysprof-ui: prefer Time over Offset 2019-05-29 15:13:01 -07:00
acf64b46e6 libsysprof-ui: hide logs view when no logs are present 2019-05-29 15:13:01 -07:00
7a0b5ed404 libsysprof-ui: reload logs when selection changes 2019-05-29 15:13:01 -07:00
5f3a9c0a72 libsysprof-ui: add log view 2019-05-29 15:13:01 -07:00
7202d7aed9 libsysprof-ui: add tree model for log messages 2019-05-29 15:13:01 -07:00
cc415c9140 libsysprof-capture: add log frame type
This is useful to interleave logs with the capture so that we can have
correlation without interjecting them into mark fields.
2019-05-29 15:13:01 -07:00
d77c305779 tools: use writer-cat from libsysprof-capture 2019-05-29 15:13:01 -07:00
ded0233553 libsysprof-ui: add callgraph loading dialog
This can lag a bit on big profiles, so add a loading page while we generate
the callgraph in a thread.
2019-05-29 15:13:01 -07:00