lkml.org 
[lkml]   [2019]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2 4/7] sched: Add pelt_rq tracepoint
    On Fri, May 10, 2019 at 12:30:10PM +0100, Qais Yousef wrote:

    > +DECLARE_TRACE(pelt_rq,
    > + TP_PROTO(int cpu, const char *path, struct sched_avg *avg),
    > + TP_ARGS(cpu, path, avg));
    > +

    > +static __always_inline void sched_trace_pelt_cfs_rq(struct cfs_rq *cfs_rq)
    > +{
    > + if (trace_pelt_rq_enabled()) {
    > + int cpu = cpu_of(rq_of(cfs_rq));
    > + char path[SCHED_TP_PATH_LEN];
    > +
    > + cfs_rq_tg_path(cfs_rq, path, SCHED_TP_PATH_LEN);
    > + trace_pelt_rq(cpu, path, &cfs_rq->avg);
    > + }
    > +}
    > +
    > +static __always_inline void sched_trace_pelt_rt_rq(struct rq *rq)
    > +{
    > + if (trace_pelt_rq_enabled()) {
    > + int cpu = cpu_of(rq);
    > +
    > + trace_pelt_rq(cpu, NULL, &rq->avg_rt);
    > + }
    > +}
    > +
    > +static __always_inline void sched_trace_pelt_dl_rq(struct rq *rq)
    > +{
    > + if (trace_pelt_rq_enabled()) {
    > + int cpu = cpu_of(rq);
    > +
    > + trace_pelt_rq(cpu, NULL, &rq->avg_dl);
    > + }
    > +}

    Since it is only the one real tracepoint, how do we know which avg is
    which?

    \
     
     \ /
      Last update: 2019-05-13 14:16    [W:5.140 / U:0.056 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site