From owner-freebsd-dtrace@freebsd.org Thu Jul 23 01:53:00 2015 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7E22D9A81E8 for ; Thu, 23 Jul 2015 01:53:00 +0000 (UTC) (envelope-from abhya007@gmail.com) Received: from mail-pa0-x234.google.com (mail-pa0-x234.google.com [IPv6:2607:f8b0:400e:c03::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 557C61D73; Thu, 23 Jul 2015 01:53:00 +0000 (UTC) (envelope-from abhya007@gmail.com) Received: by pacan13 with SMTP id an13so149459121pac.1; Wed, 22 Jul 2015 18:52:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=+72Fqu5c8uLKLv3fERaBdxuTqBDgGsiLyXH1OUi/vNg=; b=gPsocdovdrvBdUhngSPiiygKZqmqQ8cap8H8ycAGISx2ZZ1BqSNGLrwXNf0xkxYDs4 hAHRVf/T0wfVhnK2Rl/X2t0Va5IVxAfsZmkz9LKBO7x7ExyPl0pkJUA/YcL/lXxe3qeV XoaaXhX+4EAx2VadRaBcs45g1OQaeHWSOHpaGciqMGQ/Ejh2AQVGwUQ+rciPGJniLSp3 +csgWutnI+lNYPD7MIFIxbrcH5zYZhpIiLQUJ/i2Ghug12rccTbQx17Vj95FzrLz4wjd fu0hcMZW8vcyZUf/d1SOplk4Gk0eGsTKTV1NVXUL8Vif1QSugCYkqFTikHMJL8h1JTeV 7Ikg== MIME-Version: 1.0 X-Received: by 10.70.87.195 with SMTP id ba3mr12711285pdb.154.1437616379371; Wed, 22 Jul 2015 18:52:59 -0700 (PDT) Received: by 10.70.59.98 with HTTP; Wed, 22 Jul 2015 18:52:59 -0700 (PDT) Date: Wed, 22 Jul 2015 18:52:59 -0700 Message-ID: Subject: Regarding curthread->td_runtime From: abhishek kulkarni To: Mark Johnston , Ryan Stone , freebsd-dtrace@freebsd.org, Ryan Stone Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2015 01:53:00 -0000 Hello, I am trying to implement the last switch sorted feature which would display the last 10 ten threads( as per the timestamp) that got the cpu. I want to display the run time of the last 10 threads that got the cpu as well. So, I am printing the curthread->td_runtime in the on-cpu probe. So, is curthread->td_runtime a cumulative value? or an incremental value which denotes the time for which that thread got the cpu and was switched? Looking forward to hear from you on this. Thanks and Regards Abhishek Kulkarni