Benign freebsd Download

sched_4bsd.c

Source contains an unconditional loopSysctl handler function signature
SHA-25690808f5022a3a7f0653214e0c94f438ad58d327f7e495dcb5e1a9092e229ce62

Evidence

English function-word token "the" lines 1–12
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1982, 1986, 1990, 1991, 1993
5 * The Regents of the University of California. All rights reserved.
6 * (c) UNIX System Laboratories, Inc.
7 * All or some portions of this file are derived from material licensed
8 * to the University of California by American Telephone and Telegraph
9 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
10 * the permission of UNIX System Laboratories, Inc.
11 *
12 * Redistribution and use in source and …
English function-word token "that" lines 12–15
12:63… without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above …
imports <dev/hwt/hwt_hook.h> lines 33–75
33:47… VISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 */
36
37#include <sys/cdefs.h>
38#include "opt_hwpmc_hooks.h"
39#include "opt_hwt_hooks.h"
40#include "opt_sched.h"
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/cpuset.h>
45#include <sys/kernel.h>
46#include <sys/ktr.h>
47#include <sys/lock.h>
48#include <sys/kthread.h>
49#include <sys/mutex.h>
50#include <sys/proc.h>
51#include <sys/resourcevar.h>
52#include <sys/runq.h>
53#include <sys/sched.h>
54#include <sys/sdt.h>
55#include <sys/smp.h>
56#include <sys/sysctl.h>
57#include <sys/sx.h>
58#include <sys/turnstile.h>
59#include <sys/umtxvar.h>
60#include <machine/pcb.h>
61#include <machine/smp.h>
62
63#ifdef HWPMC_HOOKS
64#include <sys/pmckern.h>
65#endif
66
67#ifdef HWT_HOOKS
68#include <dev/hwt/hwt_hook.h>
69#endif
70
71#ifdef KDTRACE_HOOKS
72#include <sys/dtrace_bsd.h>
73int __read_mostly dtrace_vtime_active;
74dtrace_vtime_switch_func_t dtrace_vtime_switch_func;
75#e …
C declares a character or byte buffer lines 108–116
108:10… unq *ts_runq; /* runq the thread is currently on */
109#ifdef KTR
110 char ts_name[TS_NAME_LEN];
111#endif
112};
⋯4 lines
Sysctl handler function signature lines 194–207
⋯5 lines
199
200static int
201sysctl_kern_quantum(SYSCTL_HANDLER_ARGS)
202{
203 int error, new_val, period;
⋯4 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.