From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751933AbeEXElJ (ORCPT ); Thu, 24 May 2018 00:41:09 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34388 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751591AbeEXElI (ORCPT ); Thu, 24 May 2018 00:41:08 -0400 X-Google-Smtp-Source: AB8JxZr0VL5T0XTpQjWe6DCcI424yEltlbOoqmT2VemlngRZbdvM+YJ+atJC8krcqCOnMj9jPE9coS2keyVUy3IyOTc= MIME-Version: 1.0 In-Reply-To: <20180523090944.GV12217@hirez.programming.kicks-ass.net> References: <20180522062017.5193-1-xiyou.wangcong@gmail.com> <20180522062017.5193-4-xiyou.wangcong@gmail.com> <20180523090944.GV12217@hirez.programming.kicks-ass.net> From: Cong Wang Date: Wed, 23 May 2018 21:40:47 -0700 Message-ID: Subject: Re: [PATCH 3/3] sched/fair: add tracepoints for cfs throttle To: Peter Zijlstra Cc: Ivan Babrou , LKML , Paul Turner , Mike Galbraith , Thomas Gleixner , Ingo Molnar Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 23, 2018 at 2:09 AM, Peter Zijlstra wrote: > On Mon, May 21, 2018 at 11:35:38PM -0700, Ivan Babrou wrote: >> > + TP_printk("path=%s cpu=%d runtime_remaining=%lld", >> > __get_str(cfs_path), >> > + __entry->cpu, __entry->runtime_remaining) >> > >> >> Can you add "[ns]" as the unit to runtime_remaining? We have it in >> "sched:sched_stat_runtime". > > Yeah, don't worry. I hate tracepoints, I regret the existing ones, no > new ones will happen. No matter you hate them or not, they are useful: https://github.com/iovisor/bcc/blob/master/tools/runqlat.py Unlike in sched, tracepoints are welcome in networking: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/include/trace/events/tcp.h I don't want to change your mind, just want to show the facts.