Home
last modified time | relevance | path

Searched refs:sched (Results 1 – 25 of 401) sorted by relevance

12345678910>>...17

/openbmc/linux/drivers/gpu/drm/scheduler/
H A Dsched_main.c127 static void drm_sched_rq_init(struct drm_gpu_scheduler *sched, in drm_sched_rq_init() argument
134 rq->sched = sched; in drm_sched_rq_init()
153 atomic_inc(rq->sched->score); in drm_sched_rq_add_entity()
175 atomic_dec(rq->sched->score); in drm_sched_rq_remove_entity()
268 struct drm_gpu_scheduler *sched = s_fence->sched; in drm_sched_job_done() local
270 atomic_dec(&sched->hw_rq_count); in drm_sched_job_done()
271 atomic_dec(sched->score); in drm_sched_job_done()
278 wake_up_interruptible(&sched->wake_up_worker); in drm_sched_job_done()
300 static void drm_sched_start_timeout(struct drm_gpu_scheduler *sched) in drm_sched_start_timeout() argument
302 if (sched->timeout != MAX_SCHEDULE_TIMEOUT && in drm_sched_start_timeout()
[all …]
H A Dsched_entity.c172 job->sched->ops->free_job(job); in drm_sched_entity_kill_jobs_work()
263 struct drm_gpu_scheduler *sched; in drm_sched_entity_flush() local
270 sched = entity->rq->sched; in drm_sched_entity_flush()
278 sched->job_scheduled, in drm_sched_entity_flush()
282 wait_event_killable(sched->job_scheduled, in drm_sched_entity_flush()
363 drm_sched_wakeup_if_can_queue(entity->rq->sched); in drm_sched_entity_wakeup()
389 struct drm_gpu_scheduler *sched = entity->rq->sched; in drm_sched_entity_add_dependency_cb() local
405 if (!fence->error && s_fence && s_fence->sched == sched && in drm_sched_entity_add_dependency_cb()
448 if (job->sched->ops->prepare_job) in drm_sched_job_dependency()
449 return job->sched->ops->prepare_job(job, entity); in drm_sched_job_dependency()
[all …]
/openbmc/linux/tools/perf/
H A Dbuiltin-sched.c147 int (*switch_event)(struct perf_sched *sched, struct evsel *evsel,
150 int (*runtime_event)(struct perf_sched *sched, struct evsel *evsel,
153 int (*wakeup_event)(struct perf_sched *sched, struct evsel *evsel,
157 int (*fork_event)(struct perf_sched *sched, union perf_event *event,
160 int (*migrate_task_event)(struct perf_sched *sched,
306 static void burn_nsecs(struct perf_sched *sched, u64 nsecs) in burn_nsecs() argument
312 } while (T1 + sched->run_measurement_overhead < T0 + nsecs); in burn_nsecs()
325 static void calibrate_run_measurement_overhead(struct perf_sched *sched) in calibrate_run_measurement_overhead() argument
332 burn_nsecs(sched, 0); in calibrate_run_measurement_overhead()
337 sched->run_measurement_overhead = min_delta; in calibrate_run_measurement_overhead()
[all …]
/openbmc/linux/net/mptcp/
H A Dsched.c42 struct mptcp_sched_ops *sched, *ret = NULL; in mptcp_sched_find() local
44 list_for_each_entry_rcu(sched, &mptcp_sched_list, list) { in mptcp_sched_find()
45 if (!strcmp(sched->name, name)) { in mptcp_sched_find()
46 ret = sched; in mptcp_sched_find()
54 int mptcp_register_scheduler(struct mptcp_sched_ops *sched) in mptcp_register_scheduler() argument
56 if (!sched->get_subflow) in mptcp_register_scheduler()
60 if (mptcp_sched_find(sched->name)) { in mptcp_register_scheduler()
64 list_add_tail_rcu(&sched->list, &mptcp_sched_list); in mptcp_register_scheduler()
67 pr_debug("%s registered\n", sched->name); in mptcp_register_scheduler()
71 void mptcp_unregister_scheduler(struct mptcp_sched_ops *sched) in mptcp_unregister_scheduler() argument
[all …]
/openbmc/linux/tools/testing/selftests/ftrace/test.d/trigger/
H A Dtrigger-filter.tc14 echo 'traceoff if child_pid == 0' > events/sched/sched_process_fork/trigger
23 ! echo 'traceoff if a' > events/sched/sched_process_fork/trigger
24 ! echo 'traceoff if common_pid=0' > events/sched/sched_process_fork/trigger
25 ! echo 'traceoff if common_pid==b' > events/sched/sched_process_fork/trigger
26 echo 'traceoff if common_pid == 0' > events/sched/sched_process_fork/trigger
27 echo '!traceoff' > events/sched/sched_process_fork/trigger
28 ! echo 'traceoff if common_pid == child_pid' > events/sched/sched_process_fork/trigger
29 echo 'traceoff if common_pid <= 0' > events/sched/sched_process_fork/trigger
30 echo '!traceoff' > events/sched/sched_process_fork/trigger
31 echo 'traceoff if common_pid >= 0' > events/sched/sched_process_fork/trigger
[all …]
H A Dtrigger-eventonoff.tc12 FEATURE=`grep enable_event events/sched/sched_process_fork/trigger`
19 echo 0 > events/sched/sched_switch/enable
20 echo 'enable_event:sched:sched_switch' > events/sched/sched_process_fork/trigger
22 if [ `cat events/sched/sched_switch/enable` != '1*' ]; then
29 echo 1 > events/sched/sched_switch/enable
30 echo 'disable_event:sched:sched_switch' > events/sched/sched_process_fork/trigger
32 if [ `cat events/sched/sched_switch/enable` != '0*' ]; then
39 ! echo 'enable_event:nogroup:noevent' > events/sched/sched_process_fork/trigger
40 ! echo 'disable_event+1' > events/sched/sched_process_fork/trigger
41 echo 'enable_event:sched:sched_switch' > events/sched/sched_process_fork/trigger
[all …]
H A Dtrigger-multihist.tc14 echo 'hist:keys=parent_pid:vals=child_pid' > events/sched/sched_process_fork/trigger
15 echo 'hist:keys=parent_comm:vals=child_pid' >> events/sched/sched_process_fork/trigger
17 grep parent_pid events/sched/sched_process_fork/hist > /dev/null || \
19 grep child events/sched/sched_process_fork/hist > /dev/null || \
22 grep "parent_comm: $COMM" events/sched/sched_process_fork/hist > /dev/null || \
29 echo 'hist:name=test_hist:keys=common_pid' > events/sched/sched_process_fork/trigger
31 grep test_hist events/sched/sched_process_fork/hist > /dev/null || \
36 echo 'hist:name=test_hist:keys=common_pid' > events/sched/sched_process_exit/trigger
38 grep test_hist events/sched/sched_process_exit/hist > /dev/null || \
41 diffs=`diff events/sched/sched_process_exit/hist events/sched/sched_process_fork/hist | wc -l`
H A Dtrigger-traceonoff.tc13 echo 'traceoff' > events/sched/sched_process_fork/trigger
23 echo 'traceon' > events/sched/sched_process_fork/trigger
32 ! echo 'traceoff:badparam' > events/sched/sched_process_fork/trigger
33 ! echo 'traceoff+0' > events/sched/sched_process_fork/trigger
34 echo 'traceon' > events/sched/sched_process_fork/trigger
35 ! echo 'traceon' > events/sched/sched_process_fork/trigger
36 ! echo 'traceoff' > events/sched/sched_process_fork/trigger
H A Dtrigger-hist.tc14 echo 'hist:keys=parent_pid:vals=child_pid' > events/sched/sched_process_fork/trigger
16 grep parent_pid events/sched/sched_process_fork/hist > /dev/null || \
18 grep child events/sched/sched_process_fork/hist > /dev/null || \
25 echo 'hist:keys=parent_pid,child_pid' > events/sched/sched_process_fork/trigger
27 grep '^{ parent_pid:.*, child_pid:.*}' events/sched/sched_process_fork/hist > /dev/null || \
34 echo 'hist:keys=parent_comm' > events/sched/sched_process_fork/trigger
37 grep "parent_comm: $COMM" events/sched/sched_process_fork/hist > /dev/null || \
62 echo 'hist:keys=parent_pid,child_pid:sort=child_pid.ascending' > events/sched/sched_process_fork/tr…
73 events/sched/sched_process_fork/hist | cut -d: -f2 ` ||
H A Dtrigger-snapshot.tc11 FEATURE=`grep snapshot events/sched/sched_process_fork/trigger`
19 echo 1 > events/sched/sched_process_fork/enable
21 echo 'snapshot:1' > events/sched/sched_process_fork/trigger
28 echo 0 > events/sched/sched_process_fork/enable
32 ! echo "snapshot+1" > events/sched/sched_process_fork/trigger
33 echo "snapshot" > events/sched/sched_process_fork/trigger
34 ! echo "snapshot" > events/sched/sched_process_fork/trigger
H A Dtrigger-stacktrace.tc11 FEATURE=`grep stacktrace events/sched/sched_process_fork/trigger`
20 echo 'stacktrace' > events/sched/sched_process_fork/trigger
29 ! echo "stacktrace:foo" > events/sched/sched_process_fork/trigger
30 echo "stacktrace" > events/sched/sched_process_fork/trigger
31 ! echo "stacktrace" > events/sched/sched_process_fork/trigger
/openbmc/linux/drivers/slimbus/
H A Dsched.c29 struct slim_sched *sched = &ctrl->sched; in slim_ctrl_clk_pause() local
38 mutex_lock(&sched->m_reconf); in slim_ctrl_clk_pause()
40 if (sched->clk_state == SLIM_CLK_ACTIVE) { in slim_ctrl_clk_pause()
41 mutex_unlock(&sched->m_reconf); in slim_ctrl_clk_pause()
49 ret = wait_for_completion_timeout(&sched->pause_comp, in slim_ctrl_clk_pause()
52 mutex_unlock(&sched->m_reconf); in slim_ctrl_clk_pause()
63 if (sched->clk_state == SLIM_CLK_PAUSED && ctrl->wakeup) in slim_ctrl_clk_pause()
66 sched->clk_state = SLIM_CLK_ACTIVE; in slim_ctrl_clk_pause()
67 mutex_unlock(&sched->m_reconf); in slim_ctrl_clk_pause()
73 if (ctrl->sched.clk_state == SLIM_CLK_PAUSED) { in slim_ctrl_clk_pause()
[all …]
/openbmc/linux/net/netfilter/ipvs/
H A Dip_vs_sched.c61 struct ip_vs_scheduler *sched) in ip_vs_unbind_scheduler() argument
70 if (sched->done_service) in ip_vs_unbind_scheduler()
71 sched->done_service(svc); in ip_vs_unbind_scheduler()
81 struct ip_vs_scheduler *sched; in ip_vs_sched_getbyname() local
87 list_for_each_entry(sched, &ip_vs_schedulers, n_list) { in ip_vs_sched_getbyname()
91 if (sched->module && !try_module_get(sched->module)) { in ip_vs_sched_getbyname()
97 if (strcmp(sched_name, sched->name)==0) { in ip_vs_sched_getbyname()
100 return sched; in ip_vs_sched_getbyname()
102 module_put(sched->module); in ip_vs_sched_getbyname()
115 struct ip_vs_scheduler *sched; in ip_vs_scheduler_get() local
[all …]
/openbmc/linux/Documentation/scheduler/
H A Dindex.rst10 sched-arch
11 sched-bwc
12 sched-deadline
13 sched-design-CFS
14 sched-domains
15 sched-capacity
16 sched-energy
18 sched-util-clamp
19 sched-nice-design
20 sched-rt-group
[all …]
/openbmc/linux/Documentation/translations/zh_CN/scheduler/
H A Dindex.rst22 sched-arch
23 sched-bwc
24 sched-design-CFS
25 sched-domains
26 sched-capacity
27 sched-energy
29 sched-nice-design
30 sched-stats
31 sched-debug
35 sched-deadline
[all …]
/openbmc/linux/crypto/
H A Dfcrypt.c54 __be32 sched[ROUNDS]; member
223 #define F_ENCRYPT(R, L, sched) \ argument
226 u.l = sched ^ R; \
242 F_ENCRYPT(X.r, X.l, ctx->sched[0x0]); in fcrypt_encrypt()
243 F_ENCRYPT(X.l, X.r, ctx->sched[0x1]); in fcrypt_encrypt()
244 F_ENCRYPT(X.r, X.l, ctx->sched[0x2]); in fcrypt_encrypt()
245 F_ENCRYPT(X.l, X.r, ctx->sched[0x3]); in fcrypt_encrypt()
246 F_ENCRYPT(X.r, X.l, ctx->sched[0x4]); in fcrypt_encrypt()
247 F_ENCRYPT(X.l, X.r, ctx->sched[0x5]); in fcrypt_encrypt()
248 F_ENCRYPT(X.r, X.l, ctx->sched[0x6]); in fcrypt_encrypt()
[all …]
/openbmc/openbmc-tools/tracing/
H A DREADME.md15 Valid EVENTSETs: fsi, occ, sbefifo, timer, sched
20 For example, capturing the defined tracepoints for the `sched` event set:
23 $ ./trace root@my-bmc sched
30 + EVENT_sched='sched/sched_switch sched/sched_wakeup sched/sched_wakeup_new sched/sched_waking'
33 + for elem in sched
37 +++ echo sched/sched_switch sched/sched_wakeup sched/sched_wakeup_new sched/sched_waking
65 + for elem in sched
69 +++ echo sched/sched_switch sched/sched_wakeup sched/sched_wakeup_new sched/sched_waking
/openbmc/linux/drivers/net/wireless/ath/ath9k/
H A Dchannel.c261 if (likely(sc->sched.channel_switch_time)) in ath_chanctx_check_active()
263 usecs_to_jiffies(sc->sched.channel_switch_time); in ath_chanctx_check_active()
311 ictx->flush_timeout = usecs_to_jiffies(sc->sched.channel_switch_time); in ath_chanctx_check_active()
382 mod_timer(&sc->sched.timer, jiffies + timeout); in ath_chanctx_setup_timer()
399 if (ctx->active && sc->sched.extend_absence) { in ath_chanctx_handle_bmiss()
401 sc->sched.extend_absence = false; in ath_chanctx_handle_bmiss()
408 if (ctx->active && sc->sched.beacon_miss >= 2) { in ath_chanctx_handle_bmiss()
410 sc->sched.extend_absence = true; in ath_chanctx_handle_bmiss()
423 avp->offchannel_duration = sc->sched.offchannel_duration; in ath_chanctx_offchannel_noa()
451 if (sc->sched.extend_absence) in ath_chanctx_set_periodic_noa()
[all …]
/openbmc/linux/net/sctp/
H A Dstream_sched.c116 void sctp_sched_ops_register(enum sctp_sched_type sched, in sctp_sched_ops_register() argument
119 sctp_sched_ops[sched] = sched_ops; in sctp_sched_ops_register()
133 struct sctp_sched_ops *sched = sctp_sched_ops_from_stream(stream); in sctp_sched_free_sched() local
137 sched->unsched_all(stream); in sctp_sched_free_sched()
142 sched->free_sid(stream, i); in sctp_sched_free_sched()
149 enum sctp_sched_type sched) in sctp_sched_set_sched() argument
151 struct sctp_sched_ops *old = asoc->outqueue.sched; in sctp_sched_set_sched()
157 if (sched > SCTP_SS_MAX) in sctp_sched_set_sched()
160 n = sctp_sched_ops[sched]; in sctp_sched_set_sched()
167 asoc->outqueue.sched = n; in sctp_sched_set_sched()
[all …]
/openbmc/linux/tools/perf/Documentation/
H A Dperf-sched.txt1 perf-sched(1)
6 perf-sched - Tool to trace/measure scheduler properties (latencies)
11 'perf sched' {record|latency|map|replay|script|timehist}
15 There are several variants of 'perf sched':
17 'perf sched record <command>' to record the scheduling events
20 'perf sched latency' to report the per task scheduling latencies
23 'perf sched script' to see a detailed trace of the workload that
26 'perf sched replay' to simulate the workload that was recorded
27 via perf sched record. (this is done by starting up mockup threads
33 'perf sched map' to print a textual context-switching outline of
[all …]
/openbmc/linux/include/drm/
H A Dgpu_scheduler.h258 struct drm_gpu_scheduler *sched; member
302 struct drm_gpu_scheduler *sched; member
339 struct drm_gpu_scheduler *sched; member
521 int drm_sched_init(struct drm_gpu_scheduler *sched,
527 void drm_sched_fini(struct drm_gpu_scheduler *sched);
551 void drm_sched_wakeup_if_can_queue(struct drm_gpu_scheduler *sched);
552 void drm_sched_stop(struct drm_gpu_scheduler *sched, struct drm_sched_job *bad);
553 void drm_sched_start(struct drm_gpu_scheduler *sched, bool full_recovery);
554 void drm_sched_resubmit_jobs(struct drm_gpu_scheduler *sched);
560 void drm_sched_fault(struct drm_gpu_scheduler *sched);
[all …]
/openbmc/linux/tools/testing/selftests/ftrace/test.d/trigger/inter-event/
H A Dtrigger-field-variable-support.tc14 echo 'hist:keys=comm:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/sched_waking/trigger
15 …ext_pid,sched.sched_waking.prio,next_comm) if next_comm=="ping"' > events/sched/sched_switch/trigg…
23 if ! grep -q "synthetic_prio=prio" events/sched/sched_waking/hist; then
27 …xt_pid,sched.sched_waking.prio,next_comm) if next_comm=="ping"' >> events/sched/sched_switch/trigg…
29 if grep -q "synthetic_prio=prio" events/sched/sched_waking/hist; then
/openbmc/linux/tools/perf/tests/shell/
H A Dlock_contention.sh40 perf lock record -o ${perfdata} -- perf bench sched messaging > /dev/null 2>&1
60 perf lock con -a -b -E 1 -q -- perf bench sched messaging > /dev/null 2> ${result}
71 perf lock record -o- -- perf bench sched messaging 2> /dev/null | \
95 perf lock con -a -b -t -E 1 -q -- perf bench sched messaging > /dev/null 2> ${result}
118 perf lock con -a -b -l -E 1 -q -- perf bench sched messaging > /dev/null 2> ${result}
140 perf lock con -a -b -Y spinlock -q -- perf bench sched messaging > /dev/null 2> ${result}
172 perf lock con -a -b -L tasklist_lock -q -- perf bench sched messaging > /dev/null 2> ${result}
200 perf lock con -a -b -S unix_stream -E 1 -q -- perf bench sched messaging > /dev/null 2> ${result}
228 …perf lock con -a -b -t -S unix_stream -E 1 -q -- perf bench sched messaging > /dev/null 2> ${resul…
262 perf lock con -a -b -E 1 -x , --output ${result} -- perf bench sched messaging > /dev/null 2>&1
/openbmc/linux/net/sched/
H A Dsch_taprio.c113 struct sched_gate_list *sched) in taprio_calculate_gate_durations() argument
120 list_for_each_entry(entry, &sched->entries, list) { in taprio_calculate_gate_durations()
143 cur = list_next_entry_circular(cur, &sched->entries, list); in taprio_calculate_gate_durations()
152 sched->max_open_gate_duration[tc] < entry->gate_duration[tc]) in taprio_calculate_gate_durations()
153 sched->max_open_gate_duration[tc] = entry->gate_duration[tc]; in taprio_calculate_gate_durations()
163 static ktime_t sched_base_time(const struct sched_gate_list *sched) in sched_base_time() argument
165 if (!sched) in sched_base_time()
168 return ns_to_ktime(sched->base_time); in sched_base_time()
191 struct sched_gate_list *sched = container_of(head, struct sched_gate_list, rcu); in taprio_free_sched_cb() local
194 list_for_each_entry_safe(entry, n, &sched->entries, list) { in taprio_free_sched_cb()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_job.c36 struct amdgpu_ring *ring = to_amdgpu_ring(s_job->sched); in amdgpu_job_timedout()
45 __func__, s_job->sched->name); in amdgpu_job_timedout()
57 s_job->sched->name); in amdgpu_job_timedout()
63 job->base.sched->name, atomic_read(&ring->fence_drv.last_seq), in amdgpu_job_timedout()
82 drm_sched_suspend_timeout(&ring->sched); in amdgpu_job_timedout()
108 (*job)->base.sched = &adev->rings[0]->sched; in amdgpu_job_alloc()
241 job->base.sched = &ring->sched; in amdgpu_job_submit_direct()
255 struct amdgpu_ring *ring = to_amdgpu_ring(s_entity->rq->sched); in amdgpu_job_prepare_job()
284 struct amdgpu_ring *ring = to_amdgpu_ring(sched_job->sched); in amdgpu_job_run()
322 void amdgpu_job_stop_all_jobs_on_sched(struct drm_gpu_scheduler *sched) in amdgpu_job_stop_all_jobs_on_sched() argument
[all …]

12345678910>>...17