Benign freebsd Download

subr_sleepqueue.c

Source references XOR syntaxSysctl handler function signature
SHA-2565a11b71f091c28236d98cd78ff6a8f0329d44f73b4414191df1c327b8854df2c

Evidence

imports <ddb/ddb.h> lines 56–95
56:46… y only enforced for condition
57 * variables.
58 */
59
60#include <sys/cdefs.h>
61#include "opt_sleepqueue_profiling.h"
62#include "opt_ddb.h"
63#include "opt_sched.h"
64#include "opt_stack.h"
65
66#include <sys/param.h>
67#include <sys/systm.h>
68#include <sys/lock.h>
69#include <sys/kernel.h>
70#include <sys/ktr.h>
71#include <sys/mutex.h>
72#include <sys/proc.h>
73#include <sys/sbuf.h>
74#include <sys/sched.h>
75#include <sys/sdt.h>
76#include <sys/signalvar.h>
77#include <sys/sleepqueue.h>
78#include <sys/stack.h>
79#include <sys/sysctl.h>
80#include <sys/time.h>
81#ifdef EPOCH_TRACE
82#include <sys/epoch.h>
83#endif
84
85#include <machine/atomic.h>
86
87#include <vm/uma.h>
88
89#ifdef DDB
90#include <ddb/ddb.h>
91#endif
92
93/*
94 * Constants for the hash table of sleep queue chains.
95 * SC_TABLESIZE must be a pow …
Source references XOR syntax lines 102–108
102:7… e SC_SHIFT 8
103#define SC_HASH(wc) ((((uintptr_t)(wc) >> SC_SHIFT) ^ (uintptr_t)(wc)) & \
104 SC_MASK)
105#define SC_LOOKUP(wc) &sleepq_chains[SC_HASH(wc)]
106#define NR_SLEEPQS 2
107/*
108 * There are …
C declares a character or byte buffer lines 186–197
186:12… PQUEUE_PROFILING
187static void
188init_sleepqueue_profiling(void)
189{
190 char chain_name[10];
191 struct sysctl_oid *chain_oid;
192 u_int i;
⋯5 lines
TAILQ list manipulation in kernel marker lines 964–973
964:40… queues.
965 */
966 besttd = td = TAILQ_FIRST(head);
967 while ((td = TAILQ_NEXT(td, td_slpq)) != NULL) {
968 if (td->td_priority < besttd->td_priority)
969 besttd = td;
⋯4 lines
Sysctl handler function signature lines 1353–1365
1353:7… nlock_spin(&sleepq_prof_lock);
1354}
1355
1356static int
1357enable_sleepq_prof(SYSCTL_HANDLER_ARGS)
1358{
1359 int error, v;
⋯6 lines

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.