From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752246Ab1LTSJk (ORCPT ); Tue, 20 Dec 2011 13:09:40 -0500 Received: from intmgw001.ash2.facebook.com ([66.220.155.178]:32881 "EHLO intmgw001.ash2.facebook.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751981Ab1LTSJY (ORCPT ); Tue, 20 Dec 2011 13:09:24 -0500 From: Arun Sharma To: linux-kernel@vger.kernel.org Cc: Arun Sharma Subject: [PATCH 0/2] Sleep Profiling v2 Date: Tue, 20 Dec 2011 10:09:16 -0800 Message-Id: <1324404558-353-1-git-send-email-asharma@fb.com> X-Mailer: git-send-email 1.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since v1: * Define a new sched_stat tracepoint * Rebased to -tip When debugging latency, users want to know where their code is executing on the CPU (cycle profiling) as well as where it's waiting sleeping or waiting for IO. The following patch set tries to address the latter. Normal users can use this tracepoint without root privileges and on a system with lots of context switches, load can be reduced by filtering out uninteresting switches. Sample command lines: perf record -gPe sched:sched_stat_sleeptime --filter "sleeptime > 10000" -- ./test perf report --stdio -g graph -G Arun Sharma (2): sched: Retain sleep/block information tracing, sched: Add a new tracepoint for sleeptime include/trace/events/sched.h | 48 ++++++++++++++++++++++++++++++++++++++++++ kernel/sched/core.c | 1 + kernel/sched/fair.c | 6 +++- 3 files changed, 53 insertions(+), 2 deletions(-) -- 1.7.4