* Re: [PATCH 18/19] sched: prctl() core-scheduling interface
[not found] ` <20210422123309.039845339@infradead.org>
@ 2021-08-05 16:53 ` Eugene Syromiatnikov
2021-08-05 17:00 ` Peter Zijlstra
0 siblings, 1 reply; 2+ messages in thread
From: Eugene Syromiatnikov @ 2021-08-05 16:53 UTC (permalink / raw)
To: Peter Zijlstra
Cc: joel, chris.hyser, joshdon, mingo, vincent.guittot,
valentin.schneider, mgorman, linux-kernel, tglx, linux-api, ldv
On Thu, Apr 22, 2021 at 02:05:17PM +0200, Peter Zijlstra wrote:
> API:
>
> prctl(PR_SCHED_CORE, PR_SCHED_CORE_GET, tgtpid, pidtype, &cookie)
> prctl(PR_SCHED_CORE, PR_SCHED_CORE_CREATE, tgtpid, pidtype, NULL)
> prctl(PR_SCHED_CORE, PR_SCHED_CORE_SHARE_TO, tgtpid, pidtype, NULL)
> prctl(PR_SCHED_CORE, PR_SCHED_CORE_SHARE_FROM, srcpid, pidtype, NULL)
>
> where 'tgtpid/srcpid == 0' implies the current process and pidtype is
> kernel enum pid_type {PIDTYPE_PID, PIDTYPE_TGID, PIDTYPE_PGID, ...}.
It means that enum pid_tipe has to be a part of UAPI now. Would you
like to address it, or rather I'd send a patch?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 18/19] sched: prctl() core-scheduling interface
2021-08-05 16:53 ` [PATCH 18/19] sched: prctl() core-scheduling interface Eugene Syromiatnikov
@ 2021-08-05 17:00 ` Peter Zijlstra
0 siblings, 0 replies; 2+ messages in thread
From: Peter Zijlstra @ 2021-08-05 17:00 UTC (permalink / raw)
To: Eugene Syromiatnikov
Cc: joel, chris.hyser, joshdon, mingo, vincent.guittot,
valentin.schneider, mgorman, linux-kernel, tglx, linux-api, ldv
On Thu, Aug 05, 2021 at 06:53:19PM +0200, Eugene Syromiatnikov wrote:
> On Thu, Apr 22, 2021 at 02:05:17PM +0200, Peter Zijlstra wrote:
> > API:
> >
> > prctl(PR_SCHED_CORE, PR_SCHED_CORE_GET, tgtpid, pidtype, &cookie)
> > prctl(PR_SCHED_CORE, PR_SCHED_CORE_CREATE, tgtpid, pidtype, NULL)
> > prctl(PR_SCHED_CORE, PR_SCHED_CORE_SHARE_TO, tgtpid, pidtype, NULL)
> > prctl(PR_SCHED_CORE, PR_SCHED_CORE_SHARE_FROM, srcpid, pidtype, NULL)
> >
> > where 'tgtpid/srcpid == 0' implies the current process and pidtype is
> > kernel enum pid_type {PIDTYPE_PID, PIDTYPE_TGID, PIDTYPE_PGID, ...}.
>
> It means that enum pid_tipe has to be a part of UAPI now. Would you
> like to address it, or rather I'd send a patch?
Please send a patch; I'm more sparse than usual atm.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-05 17:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20210422120459.447350175@infradead.org>
[not found] ` <20210422123309.039845339@infradead.org>
2021-08-05 16:53 ` [PATCH 18/19] sched: prctl() core-scheduling interface Eugene Syromiatnikov
2021-08-05 17:00 ` Peter Zijlstra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).