christos
02cb0c6eaf
Introduce a selector function to the vfs vnode iterator so that we don't
...
need to vget() vnodes that we are not interested at, and optimize locking
a bit. Iterator changes reviewed by Hannken (thanks), the rest of the bugs
are mine.
2014-05-24 16:34:03 +00:00
christos
7081cf9a59
need bsd.own.mk
2014-04-28 21:56:20 +00:00
christos
0b24109d1b
make compilable from the kernel
2014-04-22 15:12:35 +00:00
christos
c8ad22d607
Add fake atomic 64 ops for those who don't have them.
...
XXX: used to be arm, now it is also i386.
2014-04-22 15:02:38 +00:00
maxv
23f76b6d00
An (un)privileged user can easily make the kernel dereference a NULL
...
pointer.
The kernel allows 'data' to be NULL; it's the fs's responsibility to
ensure that it isn't NULL (if the fs actually needs data).
ok christos@
2014-04-16 18:55:17 +00:00
riastradh
418e8d3033
Don't forget ZFS_EXIT after ZFS_ENTER.
2014-04-09 22:41:38 +00:00
riastradh
c83470498f
Try vflush, which may fail, before we mark the file system mounted.
2014-04-09 22:40:32 +00:00
christos
897d836e1d
Handle assembly code built with -g
2014-04-05 23:33:15 +00:00
ozaki-r
b7c3845c47
Complete migrating to snprintf_blkptr
2014-03-28 03:46:56 +00:00
ozaki-r
c5002aae34
Fix migrating to snprintf_blkptr
2014-03-28 03:18:24 +00:00
ozaki-r
2821606826
Add missing 4th argument of ddt_object_name
2014-03-28 03:11:00 +00:00
ozaki-r
4e2e658100
Fix some snprintf
2014-03-28 02:58:36 +00:00
ozaki-r
bc3ce11eda
Add missing 3rd argument of nicenum
2014-03-28 02:50:18 +00:00
apb
6713b766dd
format is a pointer, so sizeof(format) is not a good length
...
to pass to snprintf. Try to calculate the correct length,
taking into account the amount of space already used.
2014-03-27 19:34:39 +00:00
christos
a2d437b386
kill sprintf
2014-03-27 15:50:48 +00:00
ozaki-r
1339b2cc13
Add MKCTF
...
This variable separates CTF stuffs from MKDTRACE; we can build DTrace
solely without building and using them. This allows us to use DTrace
even if CTF stuffs have problems (actually they have now).
This variable would be merged into MKDTRACE eventually, once CTF stuffs
work correctly again.
2014-03-25 09:52:55 +00:00
ozaki-r
4ae43925ec
Exclude mvsoctmr_* functions from FBT targets
...
Probing them doesn't work for DTrace/arm for some reason.
Anyway with this fix, DTrace/arm works on SHEEVAPLUG
as well as BEAGLEBONE.
2014-03-19 11:14:12 +00:00
hannken
33b1d7765e
Change zfs_sync() to use vfs_vnode_iterator.
2014-03-17 09:37:41 +00:00
ozaki-r
e2fc5c59a0
Use MACHINE_CPU instead of MACHINE_ARCH with pattern matching
...
Include bsd.own.mk to use MACHINE_CPU.
Advised by matt@
2014-03-16 06:51:43 +00:00
ozaki-r
f27e224fab
Look up arm directory on MACHINE_ARCH=*arm*
2014-03-16 05:11:19 +00:00
ozaki-r
609ba481a5
Implement DTrace FBT provider for ARM
...
- Finding probable functions
- Replacing instructions
- Emulating instructions
It is tested only on ARMv7 CPUs yet, for example,
-m evbarm (-a earm) kernel=BEAGLEBONE.
2014-03-15 08:00:19 +00:00
ozaki-r
48e9045322
Enable invop handler on module load
...
It sets a fbt handler to dtrace_invop_jump_addr on module load,
which is used to call the dtrace probing function from the trap
handler.
2014-03-15 07:49:15 +00:00
ozaki-r
26e6962bfe
Make arm/dtrace_isa.c buildable
...
This is a band-aid for build, but it works anyway.
We have to do a real fix in the future.
2014-03-15 07:43:01 +00:00
ozaki-r
18c3aa4966
Fix header inclusions
2014-03-10 06:38:22 +00:00
ozaki-r
7ea504b141
Make arm/dtrace_subr.c buildable
...
The change just imports the code from
http://people.freebsd.org/~gonzo/arm/dtrace-arm.diff
and tweaks for NetBSD.
2014-03-10 03:04:57 +00:00
christos
60a5bae159
Tidy up paths.
2014-03-09 22:01:31 +00:00
christos
0afc3eb7f2
put back our local fixes:
...
- don't die on unresolved types.
- it is ok to have 0 sized arrays in structs
- forward enum decls.
2014-03-09 20:48:01 +00:00
christos
cf96d463d6
Temporarily add a -S flag to limit the number of threads.
2014-03-09 19:14:15 +00:00
christos
e3afac50d3
fix constant name
2014-03-09 17:07:46 +00:00
christos
7016e57516
use merged ctf rules
2014-03-09 17:05:23 +00:00
christos
abe7c4c08a
Merge ctf build rules.
2014-03-09 17:05:01 +00:00
christos
381ca28d6d
sync with freebsd
2014-03-09 17:04:00 +00:00
ozaki-r
959d62341c
Prepare dtrace_isa.c for build
...
- Tidy up header file inclusions
- Replace curcpu with cpu_number()
- Fix argument of dtrace_getreg
- Tweak for gcc 4.8
Note that the file is still not buildable.
2014-03-08 11:46:01 +00:00
ozaki-r
e9ddbe399c
Fix build of DTrace with GCC 4.8
...
Use __diagused for a variable which is only referred by KASSERT.
Advised by matt@
2014-03-07 02:37:16 +00:00
tron
f7ff511838
Fix build of DTrace with GCC 4.8.
2014-03-05 20:14:15 +00:00
ozaki-r
f6c17acba3
Add cyclic_machdep.c for ARM
...
The code is still almost same as i386's one.
2014-03-05 06:35:44 +00:00
ozaki-r
bee7b32afb
Add defined(__arm__)
2014-03-05 06:12:00 +00:00
ozaki-r
9d2dfffd73
Use native atomic function instead of DTrace's own one
...
So we don't need to implement it for each architecture.
This change is from FreeBSD (not as-is though).
2014-03-05 06:06:42 +00:00
ozaki-r
7ee4c5ecd0
Fix dtrace_cas32 logic
...
- compare with cmp, not new
- return old value
2014-03-05 03:09:17 +00:00
ozaki-r
1bf04388c3
Use uint32_t instead of u_int32_t
2014-03-05 02:00:24 +00:00
ozaki-r
07efccf499
Add missing END for each function
2014-03-04 11:07:40 +00:00
ozaki-r
bc132bbc2a
Get rid of unused variable definition za from mount.h
...
There is no user for it. Even worse, it breaks dtrace build for arm.
2014-03-04 09:24:42 +00:00
ozaki-r
ad5eab92b9
Fix wrong conditional statement in dtrace_debug_output
...
Reported in PR kern/48547 by ozaki-r.
2014-03-04 03:20:49 +00:00
christos
0d8247f549
Don't core-dump if a type cannot be resolved. Still gives an error.
2014-03-03 00:09:52 +00:00
hannken
97834f7ba0
Change vnode operation lookup to return the resulting vnode *vpp unlocked.
...
Change cache_lookup() to return an unlocked vnode.
Discussed on tech-kern@
Welcome to 6.99.31
2014-02-07 15:29:20 +00:00
hannken
04c776e5c8
Change vnode operations create, mknod, mkdir and symlink to return
...
the resulting vnode *vpp unlocked.
Discussed on tech-kern@
Welcome to 6.99.30
2014-01-23 10:13:55 +00:00
hannken
1139274440
Change vnode operations create, mknod, mkdir and symlink to keep the
...
directory node dvp locked on return.
Discussed on tech-kern@
Welcome to 6.99.29
2014-01-17 10:55:01 +00:00
riz
11beb836b0
Replace llx with PRIx64 and some llu with PRIu64 in format strings.
2014-01-12 17:49:30 +00:00
riz
f664413dc2
Field width is an int, so cast the result of strlen() appropriately.
2014-01-12 17:48:59 +00:00
riz
b3fba11357
Disable the extra-args warning for printf formats in dtrace.c
2014-01-12 17:48:25 +00:00