PERFORCE change 143146 for review
John Birrell
jb at FreeBSD.org
Mon Jun 9 02:49:07 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=143146
Change 143146 by jb at freebsd3 on 2008/06/09 02:48:27
Backout some code that was replaced by an event handler based implementation.
Affected files ...
.. //depot/projects/dtrace6/src/sys/sys/proc.h#6 edit
Differences ...
==== //depot/projects/dtrace6/src/sys/sys/proc.h#6 (text+ko) ====
@@ -158,6 +158,8 @@
struct td_sched;
struct trapframe;
struct turnstile;
+struct kdtrace_proc;
+struct kdtrace_thread;
/*
* Here we define the three structures used for process information.
@@ -334,6 +336,8 @@
struct mdthread td_md; /* (k) Any machine-dependent fields. */
struct td_sched *td_sched; /* (*) Scheduler-specific data. */
struct kaudit_record *td_ar; /* (k) Active audit record, if any. */
+ struct kdtrace_thread *td_dtrace; /* (*) DTrace-specific data. */
+ int td_errno; /* Error returned by last syscall. */
} __attribute__ ((aligned (THREAD_ALIGN)));
/*
@@ -619,6 +623,7 @@
struct p_sched *p_sched; /* (*) Scheduler-specific data. */
struct auditinfo_addr *p_au; /* (c) Process audit properties. */
STAILQ_HEAD(, ktr_request) p_ktr; /* (o) KTR event queue. */
+ struct kdtrace_proc *p_dtrace; /* (*) DTrace-specific data. */
};
#define p_session p_pgrp->pg_session
@@ -859,21 +864,6 @@
extern u_long ps_arg_cache_limit;
extern int sched_quantum; /* Scheduling quantum in ticks. */
-/*
- * Space to append to struct thread for DTrace specific thread
- * variables. This space is after the 'struct td_sched'.
- */
-#define KDTRACE_THREAD_SIZE 128
-
-/* Offset from 'struct thread *' to the opaque DTrace fields. */
-extern int kdtrace_thread_offset;
-
-/* Overall per-thread allocation size. */
-extern int kdtrace_thread_size;
-
-/* DTrace data for the primary thread in proc0. */
-extern char kdtrace_thread0[];
-
LIST_HEAD(proclist, proc);
TAILQ_HEAD(procqueue, proc);
TAILQ_HEAD(threadqueue, thread);
More information about the p4-projects
mailing list