Replace Solaris identifiers and types with their FreeBSD equivalents.

MFC after:	1 week
This commit is contained in:
Mark Johnston 2015-01-30 04:30:18 +00:00
parent 7c39b67011
commit bc8eecf7d4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277911
12 changed files with 16 additions and 16 deletions

View File

@ -38,4 +38,4 @@
*
*/
inline cyc_func_t i = "i am a cyclic function";
inline dtrace_trap_func_t i = "i am a dtrace trap function";

View File

@ -38,4 +38,4 @@
*
*/
inline vfs_t *invalid = xlate<psinfo_t>(curthread->t_procp);
inline struct vnode *invalid = xlate<psinfo_t>(curthread->td_proc);

View File

@ -74,13 +74,13 @@ fbt:::return
(long long)curthread, pid, tid, (int)arg1, (int)arg0);
}
mutex_enter:adaptive-acquire
mtx_lock:adaptive-acquire
{
printf(" %u 0x%llX %d %d lock:0x%llX", timestamp,
(long long)curthread, pid, tid, arg0);
}
mutex_exit:adaptive-release
mtx_unlock:adaptive-release
{
printf(" %u 0x%llX %d %d lock:0x%llX", timestamp,
(long long) curthread, pid, tid, arg0);

View File

@ -40,5 +40,5 @@
BEGIN
{
trace(offsetof(vnode_t, v_no_such_member));
trace(offsetof(struct vnode, v_no_such_member));
}

View File

@ -25,7 +25,7 @@
BEGIN
{
print((void)`p0);
print((void)`proc0);
}
BEGIN

View File

@ -22,13 +22,13 @@
typedef struct pancakes {
int i;
string s;
timespec_t t;
struct timespec t;
} pancakes_t;
translator pancakes_t < void *V > {
i = 2 * 10;
s = strjoin("I like ", "pancakes");
t = *(timespec_t *)`dtrace_zero;
t = *(struct timespec *)`dtrace_zero;
};
BEGIN

View File

@ -1,7 +1,7 @@
pancakes_t {
int i = 0x14
string s = [ "I like pancakes" ]
timespec_t t = {
struct timespec t = {
time_t tv_sec = 0
long tv_nsec = 0
}

View File

@ -44,7 +44,7 @@ BEGIN
i = 0;
}
syscall::*lwp*:entry
syscall::*wait*:entry
{
exit(0);
}

View File

@ -60,14 +60,14 @@ spinny &
child=$!
#
# This is gutsy -- we're assuming that mutex_enter(9F) will show up in the
# This is gutsy -- we're assuming that mtx_lock(9) will show up in the
# output. This is most likely _not_ to show up in the output if the
# platform does not support arbitrary resolution interval timers -- but
# the above script was stress-tested down to 100 hertz and still ran
# successfully on all platforms, so one is hopeful that this test will pass
# even in that case.
#
script | tee /dev/fd/2 | grep mutex_enter > /dev/null
script | tee /dev/fd/2 | grep mtx_lock > /dev/null
status=$?
kill $child

View File

@ -63,7 +63,7 @@ child=$!
# The only thing we can be sure of is that some module named "unix" (or
# "genunix") did some work -- so that's all we'll check.
#
script | tee /dev/fd/2 | grep unix > /dev/null
script | tee /dev/fd/2 | grep kernel > /dev/null
status=$?
kill $child

View File

@ -63,7 +63,7 @@ child=$!
# This is the same gutsy test as that found in the func() test; see that
# test for the rationale.
#
script | tee /dev/fd/2 | grep mutex_enter > /dev/null
script | tee /dev/fd/2 | grep mtx_lock > /dev/null
status=$?
kill $child

View File

@ -31,8 +31,8 @@
#pragma D option dynvarsize=1m
struct bar {
int pid;
kthread_t *curthread;
pid_t pid;
struct thread *curthread;
};
self struct bar foo[int];