+static int
+sysctl_bless( struct sysctl_oid *oidp, struct sysctl_req *req )
+{
+ int error = 0;
+ int value = 0;
+
+ /* get the old value and process it */
+ value = blessed_pid;
+
+ /* copy out the old value, get the new value */
+ error = sysctl_handle_int(oidp, &value, 0, req);
+ if (error || !req->newptr)
+ return (error);
+
+ /* if that worked, and we're writing... */
+ error = kperf_bless_pid(value);
+
+ return error;
+}
+
+static int
+sysctl_bless_preempt( struct sysctl_oid *oidp, struct sysctl_req *req )
+{
+ int error = 0;
+ int value = 0;
+
+ /* get the old value and process it */
+ value = blessed_preempt;
+
+ /* copy out the old value, get the new value */
+ error = sysctl_handle_int(oidp, &value, 0, req);
+ if (error || !req->newptr)
+ return (error);
+
+ /* if that worked, and we're writing... */
+ blessed_preempt = value ? TRUE : FALSE;
+
+ return 0;
+}
+
+
+static int
+sysctl_kdbg_callstacks( struct sysctl_oid *oidp, struct sysctl_req *req )
+{
+ int error = 0;
+ int value = 0;
+
+ /* get the old value and process it */
+ value = kperf_kdbg_get_stacks();
+
+ /* copy out the old value, get the new value */
+ error = sysctl_handle_int(oidp, &value, 0, req);
+ if (error || !req->newptr)
+ return (error);
+
+ /* if that worked, and we're writing... */
+ error = kperf_kdbg_set_stacks(value);
+
+ return error;
+}
+
+static int
+sysctl_pet_idle_rate( struct sysctl_oid *oidp, struct sysctl_req *req )
+{
+ int error = 0;
+ int value = 0;
+
+ /* get the old value and process it */
+ value = kperf_get_pet_idle_rate();
+
+ /* copy out the old value, get the new value */
+ error = sysctl_handle_int(oidp, &value, 0, req);
+ if (error || !req->newptr)
+ return (error);
+
+ /* if that worked, and we're writing... */
+ kperf_set_pet_idle_rate(value);
+
+ return error;
+}
+