tron
4dd88e84a3
Get DTrace to build again.
2010-12-14 14:08:42 +00:00
haad
4d468780ce
Use only cas versions of 64 bit atomic ops.
2010-12-14 09:19:14 +00:00
haad
7527c22f7f
Add NetBSD version of zfs snapshot management code. IT needs testing it
...
was only compile tested for now, but I would like to have some code in to be
sure that it will not be lost.
2010-12-14 01:28:18 +00:00
haad
732f954b5c
Define mutex_owned.
2010-12-14 01:25:37 +00:00
haad
f60c1b8f4b
Remove now unneeded print_timestamp.
2010-12-14 01:23:43 +00:00
haad
9e62f6ad09
Fix amd64 build where sysinfo was not defined, disable libshare for now.
2010-12-14 01:22:24 +00:00
haad
b407fc2e79
Do not include debug.h
2010-12-14 01:21:25 +00:00
haad
a0200337cd
Add some more solaris vnode defs for zfs_ctldir.
2010-12-14 01:21:02 +00:00
haad
3c4cc2dec7
Include sys/debug.h to get ASSERT defined.
2010-12-14 01:18:34 +00:00
haad
72392f89e6
Define print_timestamp during build, to shut up gcc warning.
2010-12-14 01:03:10 +00:00
haad
01d7ba741b
Simple routine to convert long to string.
2010-12-14 01:01:40 +00:00
haad
2940dfac08
NetBSD doesn't have /etc/mnttab replace it with /dev/null.
2010-12-14 01:00:26 +00:00
dholland
a2f7dda335
SAVENAME and HASBUF namei flags have been abolished; update zfs to match.
2010-11-30 10:45:27 +00:00
haad
bcfeb94d61
Update TODO for zfs add new tasks, list some know issues and mark some done stuff.
...
iRequested by: agc@
2010-11-30 00:14:42 +00:00
dholland
8f6ed30d57
Introduce struct pathbuf. This is an abstraction to hold a pathname
...
and the metadata required to interpret it. Callers of namei must now
create a pathbuf and pass it to NDINIT (instead of a string and a
uio_seg), then destroy the pathbuf after the namei session is
complete.
Update all namei call sites accordingly. Add a pathbuf(9) man page and
update namei(9).
The pathbuf interface also now appears in a couple of related
additional places that were passing string/uio_seg pairs that were
later fed into NDINIT. Update other call sites accordingly.
2010-11-19 06:44:33 +00:00
christos
00defba087
Adapt to new module locking regime. Is that even right?
2010-08-22 18:01:01 +00:00
hannken
2d762927fb
VOP_LOCK() will not be called with LK_INTERLOCK.
2010-07-25 10:31:45 +00:00
hannken
fb62bef947
Make holding v_interlock mandatory for callers of vget().
...
Announced some time ago on tech-kern.
2010-07-21 17:52:09 +00:00
hannken
1423e65b26
Clean up vnode lock operations pass 2:
...
VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.
Welcome to 5.99.32.
Discussed on tech-kern.
2010-06-24 12:58:48 +00:00
haad
1b1a9e8e92
Use ddi_copyin and ddi_copyout as solaris does, change them to
...
ioctl_copyin/ioctl_copyout in kernel and to bcopy in user space.
2010-05-19 18:01:26 +00:00
haad
a18cf73bc7
Do not call zfs_init and zfs_fini directly they will be called by vfs routines.
2010-05-19 17:57:42 +00:00
haad
d0ec786298
Do not initialize space map cv twice.
2010-05-19 17:50:59 +00:00
haad
04d9252504
Fix userspace cv_timedwait implementation to work on NetBSD.
2010-05-11 22:18:10 +00:00
haad
c84b9426dd
Disable building of stub_stand.c we build all locking primitives in libzpool.
2010-05-10 06:27:57 +00:00
haad
0fbd0bfd4f
If thread_create was called with thread_id = NULL use our local thread id
...
as replacement otherwise we will crash.
2010-05-10 06:26:11 +00:00
haad
4296646a10
Fix spa_thread to compile under the NetBSD.
2010-05-10 06:15:28 +00:00
haad
fd29a8703f
Get new vnode when creating zfs share dir for it's znode.
2010-05-10 06:10:59 +00:00
haad
4d91be73cd
Disable uvm_reclaim_hook for userland builds.
2010-05-06 22:35:37 +00:00
haad
ffca0f125a
Fix difference btween solaris cv_timedwait and NetBSD one. NetBSD takes
...
offset from current time and solaris exact time from unix born.
2010-05-06 22:31:46 +00:00
haad
6e62dfc5b4
Fix zfs version 22 merge error.
2010-05-06 22:26:55 +00:00
darran
80dda7416d
DTrace: print a warning no CTF section is found when processing arguments.
...
This should help diagnose problems such as netbsd images without CTF
sections and old boot loaders.
2010-05-03 09:28:38 +00:00
haad
4673d87178
Add _mutex_held routine to test if mutex_t * is held.
2010-05-03 00:31:32 +00:00
haad
91b542a3db
In NetBSD pool cache constructor/destructor routines has inverted arguments.
...
C
2010-05-02 23:59:54 +00:00
haad
951cf32ac2
Initialize system_taskq during taskq init. This fixes ztest crash in taskq_dispatch.
2010-05-02 23:50:34 +00:00
ahoka
9db315bb61
Add a missing parentheses.
2010-04-23 16:44:10 +00:00
ahoka
290cdd631e
Remove a couple of zero length kmem_frees.
...
It should fix at least one crash when unloading the dtrace module,
possibly many others.
2010-04-23 11:39:52 +00:00
christos
4c1d35303b
don't use NULL for 0
2010-04-03 19:01:15 +00:00
christos
a16ec97975
relative .PATH
2010-04-03 18:50:43 +00:00
christos
a27b6b66af
remove useless double [[
2010-04-03 18:43:54 +00:00
christos
3642b6f6d7
hack for amd64
2010-04-03 18:43:34 +00:00
christos
de23d8acad
use relative .PATH, and remove one that is not needed.
2010-04-03 18:35:49 +00:00
christos
8e1b2eaa2f
- use CPPFLAGS instead of CFLAGS
...
- use relative .PATH
2010-04-03 18:34:19 +00:00
christos
4f083821e4
deal with missing CLOCK_REALTIME
2010-03-26 21:33:28 +00:00
tron
f3ce7002f4
As this file seems to be a port specific we don't need to check
...
for "__i386__.
2010-03-18 13:45:54 +00:00
tron
4a21f050e8
Fix the build:
...
1.) "ifdef-out" unused functions and global variables.
2.) Include "x86/include/cpu_counter.h" for amd64 and i386 to get the
prototype of "cpu_frequency".
2010-03-18 11:00:03 +00:00
tron
809d65a5b8
"ifdef-out" unused "label" exactly like the code which would use it
...
to get rid of a build error.
2010-03-18 10:57:58 +00:00
christos
958e171b8e
make dtrace compile on amd64.
2010-03-13 22:31:15 +00:00
darran
53cc5b77a6
DTrace: fix a sign problem with instruction size handling.
2010-03-13 01:10:01 +00:00
darran
f6bf800773
DTrace: Add the Function Boundary Trace (FBT) provider moduile. This
...
module instruments every function in the kernel with entry and exit
probes. These probes are true zero-effect probes in that they don't
exist in the code until they are enabled. The probes are enabled by
directly patching the function entry and exit points to make jumps into
the dtrace framework.
This gives us over 29,000 trace points in the kernel.
2010-03-12 21:53:15 +00:00
darran
328338d6bd
DTrace: Add support for a simulated solaris_cpu[] data structure per
...
cpu. Needed for the FBT provider amongst other features.
2010-03-12 21:37:37 +00:00
darran
5b3b7dba24
DTrace: fix a few build issues for tools and the dtrace provider operation
...
interface.
2010-03-11 23:28:07 +00:00
darran
2ac926fa16
DTrace: The CTF format is limited to only 1024 elements in an enum,
...
so rather than error out when there are more than this just truncate the
length.
2010-03-11 23:26:33 +00:00
darran
7eee4c810f
DTrace: fix a libctf toolchain build problem.
2010-03-10 23:41:56 +00:00
darran
141a7ffa73
DTrace: add a dependency on the dtrace module.
2010-03-05 02:21:41 +00:00
darran
b50656c859
DTrace: fix the curthread and mutex data types.
2010-03-05 01:53:15 +00:00
darran
dc1214bcba
DTrace: Explicitly check for OS X to decide if echo needs -e.
2010-03-05 01:34:35 +00:00
darran
1a9939bde9
DTrace: another fix for OS X builds, stdint.h location.
2010-03-02 22:00:32 +00:00
darran
fe6ba50113
DTrace: Get DTrace to build on OS X platforms.
2010-03-02 21:08:36 +00:00
darran
19c2a5114b
DTrace: make sure we get a processorid_t definition (fix zfs module build).
2010-03-02 00:55:46 +00:00
darran
8a2ce716b0
DTrace: fix the dtps_provide_module definition.
2010-03-02 00:43:36 +00:00
darran
d4b5b32026
DTrace: fix to only define sdt_provider_t if in the kernel. Not for
...
user space.
2010-03-01 23:42:41 +00:00
darran
283a6ba02c
DTrace: update sdt.c handlers to match latest OpenSolaris vendor import.
2010-03-01 22:38:29 +00:00
darran
ffcea0cd00
DTrace: processorid_t is defined elsewhere (pset.h), so make it a sun only
...
definition here.
2010-03-01 22:20:15 +00:00
haad
bbc4932093
Commit last to fixes which make zfs version 22 compiling again.
2010-03-01 21:13:09 +00:00
darran
6a9056a926
DTrace: Add an SDT (Statically Defined Tracing) provider framework, and
...
implement most of the proc provider. Adds proc:::create, exec,
exec_success, exec_faillure, signal_send, signal_discard, signal_handle,
lwp_create, lwp_start, lwp_exit.
2010-03-01 21:10:13 +00:00
haad
384eb3acb2
Remove fletcher.c from dist it was moved to common/zfs/zfs_fletcher.c in upstream.
2010-03-01 20:38:19 +00:00
haad
5a7add5b9c
Removee compile time generated file from dist it is in osnet/sys/sys now.
2010-03-01 20:10:46 +00:00
haad
3ab7a7aa17
This id compile time generated file add it to sys/sys and do not polute
...
dist dir with it.
2010-03-01 20:06:37 +00:00
darran
ac8906f757
DTrace: fix a few problems introduced by the recent ZFS update (expected
...
problems from the OpenSolaris merge).
2010-03-01 11:19:39 +00:00
haad
06e8ea2875
Add header files needed for building zfs as kernel_module.
2010-03-01 00:41:35 +00:00
haad
75eba26b3c
Add forgotten misc.h header file, which I forgot to commit.
2010-02-28 22:50:48 +00:00
haad
07be11bb73
Addmissing symbols to libumem.
2010-02-28 22:45:45 +00:00
haad
7077d82ba4
Add missing zfs_fletcher.c to libzfs.
2010-02-28 22:40:09 +00:00
haad
29137ce9bb
Add newly added stubs.c file to libzfs build.
2010-02-28 17:40:35 +00:00
haad
e3855e55fa
Add fixes for missing symbols from libzfs and libzpool.
2010-02-28 17:36:51 +00:00
haad
3491b19f5b
Add NetBSD/Solaris compatibility SHA header.
2010-02-28 17:22:01 +00:00
haad
68ffa27a55
Add missing -I definition.
2010-02-28 15:24:04 +00:00
haad
90f8c9d149
Add missing header file, I will tag it to osnet-20100224 later.
2010-02-28 15:17:44 +00:00
haad
32fa36ddd0
Add another set of headers files.
2010-02-28 15:13:27 +00:00
haad
826319b9a5
Add missing header file I have missed it in first round of glue commits. More
...
to come.
2010-02-28 15:10:12 +00:00
haad
9531208f86
Add our local version of sysevent.h file without door.h useage.
2010-02-28 15:07:14 +00:00
haad
a3bfe6d964
Add NetBSD build glue to build new zfs version 22 sources.
2010-02-28 14:45:47 +00:00
darran
ba7b8985fe
DTrace: enable access to kernel space for DTrace scripts.
2010-02-28 07:01:43 +00:00
haad
a252d550c0
Merge NetBSD local changes to new zfs version 22 sources.
2010-02-27 23:43:52 +00:00
haad
f59c7639cd
Import new Opensolaris sources for zfs/dtrace.
...
Opensolaris mercurial changeset: 11751:58c0c8f4305f
2010-02-27 22:29:20 +00:00
darran
216ff964d9
DTrace: okay *really* fix the deadman exit handling. No need for that
...
over-complicated handshake. Fixes a lockdebug mutex held issue.
2010-02-25 16:49:19 +00:00
darran
4d76bb3302
DTrace: fix a problem with the code waiting for the deadman thread to exit
...
- now it does actually wait for it to exit. Thanks to Frank Kardel for
spotting this.
2010-02-25 11:12:02 +00:00
darran
bb7c1e9274
DTrace: fix CTF tools for non-toolchain build.
2010-02-25 00:18:44 +00:00
darran
84501f8fef
DTrace: have DTrace build with out requiring MKZFS=yes.
2010-02-25 00:14:10 +00:00
darran
89300bd9df
DTrace: Get the CTF tools building as part of the toolchain.
2010-02-24 21:53:26 +00:00
darran
9f15b3a450
Fix a bug in the dtrace_state_deadman() thread; return should have been
...
a continue (thanks Frank!).
2010-02-24 21:08:54 +00:00
tron
3d553f9ca7
Disable stack protection warnings for more sources which use dynamically
...
sized stack buffers.
2010-02-24 15:40:54 +00:00
tron
ab396280fe
Disable stack protection warnings for sources which use dynamically
...
sized stack buffers.
2010-02-24 12:51:05 +00:00
tron
00ff80736e
Include "bsd.own.mk" before checking "MKDTRACE" to allow setting it
...
in "/etc/mk.conf".
2010-02-24 12:18:37 +00:00
tron
235f29a8f3
Disable stack protection warnings for "zdb_il.c" which uses a dynamically
...
sized array on the stack.
2010-02-24 11:56:35 +00:00
haad
a7a3d3b216
Revert lib_nvpair hack now when it is not needed when njoly@ commited his fix to
...
bsd.lib.mk.
2010-02-22 20:05:03 +00:00
tron
c76e590d3d
Disable stack protection warnings for "dtrace.c" which uses alloca(3).
2010-02-22 12:21:27 +00:00
darran
7b822b43cb
DTrace: fix a problem with library references for libctf and libdtrace.
2010-02-21 11:00:01 +00:00
darran
4e42fd7663
DTrace: remove extra libshare.h - shouldn't have added it and it breaks
...
the libzfs build.
2010-02-21 10:21:06 +00:00
darran
17b93c1002
DTrace: remove assert.h - shouldn't have been checked in (breaks libdtrace
...
build).
2010-02-21 09:52:08 +00:00