26348 Commits

Author SHA1 Message Date
Ingo Weinhold
127f6d39ef Decreased minimum profiling sampling interval to 100 us. At least in
VMware this doesn't produce very good results though. In my tests I only
got twice as many hits as with 1 ms, although it should be roughly ten
times as many. Might work better on real hardware.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27572 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27572
2008-09-15 15:02:40 +00:00
Ingo Weinhold
ec38b40cc9 * Only pass functions with a size > 0 to the kernel. They would never
yield any hits anyway. The size 0 functions are hand-coded assembly
  functions (syscalls etc.).
* Increased the requested sampling interval to 1 ms. Should be
  specifiable per command line.
* Improved the output when done profiling a thread. The hit functions
  are sorted and printed in a table.
* Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27571 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27571
2008-09-15 14:59:13 +00:00
Stefano Ceccherini
76ef98dd3f don't leak the BMessageRunner. CID 8
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27570 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27570
2008-09-15 14:51:21 +00:00
Axel Dörfler
eb0974311f * ISOReadDirEnt() did not set the dirent::d_dev field, thus causing bug #2734.
* Moved the rock ridge attribute parsing code to a separate function.
* Removed superfluous malloc() vs. realloc() code.
* Checked allocations in the rock ridge parsing code.
* Cleanup, renamed some variables, structures, functions, etc.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27569 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27569
2008-09-15 14:42:48 +00:00
David McPaul
3cdff7414f Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27568 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27568
2008-09-15 14:15:08 +00:00
David McPaul
c5e5c91ff1 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27567 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27567
2008-09-15 14:14:35 +00:00
David McPaul
875bbde053 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27566 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27566
2008-09-15 14:14:13 +00:00
David McPaul
c0d69ba2f1 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27565 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27565
2008-09-15 14:13:44 +00:00
David McPaul
bc470b16bf Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27564 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27564
2008-09-15 14:13:04 +00:00
David McPaul
a687fd7041 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27563 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27563
2008-09-15 14:12:50 +00:00
David McPaul
46077e4bb0 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27562 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27562
2008-09-15 14:12:05 +00:00
David McPaul
c17be5fb78 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27561 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27561
2008-09-15 14:11:26 +00:00
David McPaul
eaa51ccd98 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27560 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27560
2008-09-15 14:11:11 +00:00
David McPaul
6bac4c81c5 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27559 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27559
2008-09-15 14:10:52 +00:00
David McPaul
f900b2ed76 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27558 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27558
2008-09-15 14:10:29 +00:00
David McPaul
2aa0a78774 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27557 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27557
2008-09-15 14:09:46 +00:00
David McPaul
65509a25cd Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27556 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27556
2008-09-15 14:09:14 +00:00
David McPaul
7bfcce50a5 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27555 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27555
2008-09-15 14:08:35 +00:00
David McPaul
25074f9ff3 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27554 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27554
2008-09-15 14:07:34 +00:00
David McPaul
0978528eb1 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27553 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27553
2008-09-15 14:07:20 +00:00
David McPaul
221fe9f455 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27552 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27552
2008-09-15 14:07:05 +00:00
David McPaul
4e70d9bc18 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27551 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27551
2008-09-15 14:05:40 +00:00
David McPaul
67bd3f8a49 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27550 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27550
2008-09-15 14:04:59 +00:00
David McPaul
30dd64ce04 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27549 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27549
2008-09-15 14:04:37 +00:00
David McPaul
c6ecd9c8dc Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27548 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27548
2008-09-15 14:04:00 +00:00
David McPaul
66ba2a5263 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27547 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27547
2008-09-15 14:03:43 +00:00
David McPaul
31ccd4b91b Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27546 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27546
2008-09-15 14:03:17 +00:00
David McPaul
8c2268fcfc Update avcodec to 20080825 (sorry for the spam, needed to break this up)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27545 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27545
2008-09-15 14:02:50 +00:00
David McPaul
ae0c133a58 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27544 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27544
2008-09-15 14:02:19 +00:00
David McPaul
849522d6d0 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27543 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27543
2008-09-15 14:02:05 +00:00
David McPaul
092fe53c23 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27542 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27542
2008-09-15 14:00:59 +00:00
David McPaul
a191927369 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27541 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27541
2008-09-15 14:00:39 +00:00
David McPaul
70a0cbbb07 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27540 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27540
2008-09-15 14:00:22 +00:00
David McPaul
b44406a7fc Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27539 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27539
2008-09-15 13:57:54 +00:00
David McPaul
ab1b76ccbe Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27538 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27538
2008-09-15 13:52:45 +00:00
David McPaul
2617db026c Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27537 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27537
2008-09-15 13:52:29 +00:00
David McPaul
ed4a799c2c Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27536 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27536
2008-09-15 13:51:33 +00:00
David McPaul
7052b75ea5 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27535 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27535
2008-09-15 13:51:10 +00:00
Ingo Weinhold
6608ae57c1 * Added "profile" command to the image.
* Enforced 80 columns limit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27534 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27534
2008-09-15 13:46:40 +00:00
Ingo Weinhold
8df6a8dbf5 * Moved strace sourced to src/bin/debug/.
* Factored a few functions out of strace that can be reused.
* Added the beginnings of a "profile" command. It is very much work in
  progress, though it is already able to profile the main thread of a
  program.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27533 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27533
2008-09-15 13:45:43 +00:00
David McPaul
c7f27caff8 changes to handle avcodec aac
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27532 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27532
2008-09-15 13:37:51 +00:00
Ingo Weinhold
cbcebd3330 * Extended the debugger API by sampling-based profiling support. This is
still pretty much work in progress.
* Introduced init_thread_debug_info() which is used instead of
  clear_thread_debug_info() when the thread is created. The latter
  requires former initialization.
* user_debug_thread_deleted() is now already invoked in thread_exit(),
  not in the undertaker.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27531 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27531
2008-09-15 13:36:31 +00:00
Ingo Weinhold
243300b289 For the time being allow page faults to happen when interrupts are
disabled, as long as a fault handler is installed for the thread. It
allows user_memcpy() to be invoked with interrupts disabled -- in this
case it will simply fail, when the address is valid, but not mapped yet.
This is a more desirable behavior for debug facilities, though in all
other cases it is likely a bug. We should probably introduce a thread
flag to discriminate these situations.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27530 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27530
2008-09-15 13:18:11 +00:00
Ingo Weinhold
e670fc6f63 Added new parameter "skipIframes" to arch_debug_get_stack_trace(). That
many iframes are supposed to be skipped before recording the stack
trace. Currently implemented for x86 only.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27529 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27529
2008-09-15 13:09:14 +00:00
Stefano Ceccherini
7bc02c61bd simplified this weird code, while also fixing CID 1059
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27528 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27528
2008-09-15 13:02:39 +00:00
Ingo Weinhold
b4ec7b8ee5 Added (kernel private) B_PEEK_PORT_MESSAGE flag for read_port_etc().
When specified, the message is read but not removed from the port.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27527 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27527
2008-09-15 12:59:49 +00:00
Ingo Weinhold
68e6763b07 Added functionality for iterating through the symbols of a debugged
team's image to libdebug.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27526 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27526
2008-09-15 12:47:59 +00:00
Stefano Ceccherini
0bec71008b moved the NULL check before dereferencing the view pointer. CID 1063
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27525 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27525
2008-09-15 12:44:07 +00:00
Stefano Ceccherini
a57b0996eb cleanup and return in error case, otherwise a stale style pointer could be added to the family. CID 1246
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27524 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27524
2008-09-15 12:26:43 +00:00
Stefano Ceccherini
437ecc65ae delete -> delete[]. CID 141
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27523 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev27523
2008-09-15 12:19:31 +00:00