christos
bf745eac2e
machdep.booted_kernel is not an absolute path, make it so. Now u_int is
...
found but its parent is not :-)
2016-08-03 16:37:02 +00:00
pgoyette
29ec3266f4
Use C99 initializers for the cdevsw
...
No functional change intended or expected.
2016-07-17 02:09:10 +00:00
pgoyette
2f144b973e
Add missing dp_proc_unlock() in error path.
...
From PR kern/51285 (Henning Petersen)
XXX Pullup to 7 and 7-0
2016-06-30 00:23:36 +00:00
pgoyette
37f3aa12f4
Import fix from FreeBSD - see [1], [2] references below...
...
Fix DTrace's panic() action.
It would previously call into some unfinished Solaris compatibility code
and return without actually calling panic(9). The compatibility code is
unneeded, however, so just remove it and have dtrace_panic() call vpanic(9)
directly.
Fixes immediate problem in PR-51265. However, this now reveals another
redefined symbol 'strpbrk' in the required module "solaris".
[1] https://svnweb.freebsd.org/changeset/base/281916
[2] http://lists.freebsd.org/pipermail/svn-src-head/2015-April/071019.html
2016-06-23 04:35:35 +00:00
christos
4a082de2f6
fix dup definitions in module.
2016-06-18 21:41:08 +00:00
christos
2964f15a7a
Grr, gcc-5.4 creates DW_AT_typedef without DW_AT_type for HARD_REG_SET!
...
<1><c26b>: Abbrev Number: 4 (DW_TAG_typedef)
<c26c> DW_AT_name : (indirect string, offset: 0x16e30): HARD_REG_ELT_TYPE
<c270> DW_AT_decl_file : 57
<c271> DW_AT_decl_line : 43
<c272> DW_AT_type : <0x70>
<1><c276>: Abbrev Number: 102 (DW_TAG_typedef)
<c277> DW_AT_name : (indirect string, offset: 0x2f954): HARD_REG_SET
<c27b> DW_AT_decl_file : 57
<c27c> DW_AT_decl_line : 54
2016-06-08 21:32:27 +00:00
chs
760a7ed1e9
apply the ustack() parts of freebsd r211608:
...
r211608 | rpaulo | 2010-08-22 03:53:32 -0700 (Sun, 22 Aug 2010) | 8 lines
Kernel DTrace support for:
o uregs (sson@)
o ustack (sson@)
o /dev/dtrace/helper device (needed for USDT probes)
The work done by me was:
Sponsored by: The FreeBSD Foundation
plus a few netbsd-specific tweaks from me.
fixes PR 50790.
2016-05-14 21:19:05 +00:00
christos
f107a05fec
remove incorrect comment
2016-04-28 11:38:41 +00:00
christos
4187cd60b2
Introduce dt_bootfile() and use it to avoid hard-coded kernel values. Fixes
...
dtrace hang for kernels not named netbsd.
2016-04-28 00:02:40 +00:00
christos
cb19fc18b8
Apply revision 274569 from FreeBSD:
...
Only compare visitation counters if they've both been set for the current
type graph walk.
2016-04-10 23:37:10 +00:00
christos
0aab751630
fix test.
2016-04-09 17:58:46 +00:00
christos
eabf50fc2e
properly check for type id overflow
2016-04-09 17:51:50 +00:00
christos
ccd8517e35
write references as pointers XXX:
2016-03-18 17:11:04 +00:00
christos
8db25f0638
treat class line struct and union
2016-03-18 17:08:45 +00:00
christos
dd09ff20c8
Add support for c++ classes.
2016-03-18 17:07:23 +00:00
christos
63ffeeee3f
spell restrict
2016-03-18 16:37:09 +00:00
christos
3e0f598a15
fix printf format
2016-03-18 16:32:03 +00:00
christos
714b78ffa0
Add references, comments.
2016-03-18 16:24:26 +00:00
christos
096b9466af
add references.
2016-03-18 16:12:46 +00:00
christos
4a929da448
Add references.
2016-03-18 15:26:31 +00:00
christos
22c82d5b7b
- Add processing for c++ references.
...
- Make sure we load the DIE that contains the types of array elements so
we can resolve them later.
- Print t_id (die offsets) in hex.
2016-03-18 14:55:34 +00:00
christos
f15ed7b01a
swap first, then write.
2016-03-18 13:23:00 +00:00
christos
cdd20e12b2
Avoid longjmp clobbering
2016-03-17 03:05:55 +00:00
joerg
2f04f4ac92
Don't crash when relocbase was 0.
2016-03-01 21:09:17 +00:00
joerg
f2e47b4038
Merge r274564 from FreeBSD:
...
Fix a couple of bugs around the handling of structs and unions of size zero.
These would cause ctfconvert(1) to return an error when attempting to
resolve valid C types.
2016-03-01 14:52:14 +00:00
riastradh
9e84fa00b8
uint64_t can't be negative.
2016-02-29 16:19:20 +00:00
riastradh
a9ebcda81c
Sprinkle some more zfs range lock reference count kasserts.
...
From a debugging session months ago, might as well share them.
2016-02-29 16:18:37 +00:00
riastradh
0ba9aea45e
Cast int64_t to long long before printfing with %lld.
...
Not doing so broke something months ago and I forgot why.
2016-02-29 16:14:57 +00:00
riastradh
886308980e
Add __printflike as appropriate.
2016-02-29 02:19:37 +00:00
christos
042ef76aff
- Add missing ioctl.h
...
- Hide dprintf
2016-02-28 19:10:45 +00:00
joerg
f247f26769
Make the default CPP path a list and check if they are access(2)able.
...
If no match is found, fallback to looking for cpp in PATH.
2016-02-24 21:11:34 +00:00
joerg
5e22f35b4d
Keep the if chain going.
2016-02-21 13:33:47 +00:00
joerg
486516affa
Clang 3.7 and newer provide the array size via DW_AT_count, not via
...
DW_AT_upper_bound. Recognize the former as well as the latter.
2016-02-20 23:09:03 +00:00
joerg
4fa4785fa4
Don't nuke input on errors, it makes debugging a nightmare.
2016-02-20 22:08:44 +00:00
joerg
f9442aa68f
Shuffle include order to avoid missing free on glibc.
2016-02-20 21:50:02 +00:00
christos
604231c4f0
- don't barf if the object does not have DWARF debug data.
...
- bump size of types to 1K to avoid string overflow
(both are needed for the new elftoolchain).
2016-02-20 02:39:47 +00:00
joerg
b0b911ff3e
Don't use #pragma weak to implicitly change argument types.
2016-02-19 19:25:59 +00:00
joerg
e9ae0934d6
dmu_objset_rename is an alias for dsl_dataset_rename, but differs in
...
constness of the first argument. Newer clang checks for this and
prohibits it, so just be consistent by constifying the latter.
2016-02-19 19:25:22 +00:00
christos
c628030d37
reduce ifdefs
2016-02-13 21:37:12 +00:00
riastradh
8e1ee72c35
Need nbtool_config.h for __dead in tools.
2016-02-05 20:39:50 +00:00
riastradh
32e3d5d381
Need nbtools_config.h for __unused.
...
Fixes
.../src/tools/ctfmerge/../../external/cddl/osnet/dist/tools/ctf/common/list.c:73:47: error: expected ';', ',' or ')' before '__unused'
list_defcmp(void *d1, void *d2, void *private __unused)
^~~~~~~~
on non-NetBSD systems, where <assert.h>, <stdlib.h>, <stdio.h>, and
<sys/types.h> don't define __unused.
2016-02-05 19:56:00 +00:00
roy
871759c0d7
Fix the actual issue rather than silencing the warning.
...
Thanks to gson@
2016-02-05 10:14:49 +00:00
roy
a118806971
Add some __printflike and __dead love. Init some structs fully.
2016-02-04 20:05:53 +00:00
roy
440c6b2902
Mark more functions as __printflike and __dead.
2016-02-04 18:46:37 +00:00
roy
5e1375a115
Mark more functions as __dead.
2016-02-04 17:47:43 +00:00
roy
1e48e626cd
More printflike and dead fixes.
2016-02-04 17:40:55 +00:00
roy
985adb8dc0
Fix printf formats and casts.
2016-02-04 17:27:32 +00:00
roy
b9ae60933c
Correct a prior patch by moving __printflike marking from the .c files
...
to the .h ones.
2016-02-04 16:58:11 +00:00
roy
b31be80ab9
Mark __printflike and __dead.
2016-02-04 16:48:34 +00:00
roy
c29f38a653
Mark printflike functions as __printflike.
2016-02-04 15:23:29 +00:00