Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759451Ab2HIAnz (ORCPT ); Wed, 8 Aug 2012 20:43:55 -0400 Received: from LGEMRELSE6Q.lge.com ([156.147.1.121]:58516 "EHLO LGEMRELSE6Q.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758675Ab2HIAnw (ORCPT ); Wed, 8 Aug 2012 20:43:52 -0400 X-AuditID: 9c930179-b7bdcae000003d91-ff-502307c6dd72 From: Namhyung Kim To: Andrey Wagin Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Paul Mackerras , Ingo Molnar , Arnaldo Carvalho de Melo Subject: Re: [PATCH 0/4] perf: Teach perf tool to profile sleep times (v2) References: <1344344165-369636-1-git-send-email-avagin@openvz.org> <87mx26z0it.fsf@sejong.aot.lge.com> <878vdqympe.fsf@sejong.aot.lge.com> Date: Thu, 09 Aug 2012 09:37:56 +0900 In-Reply-To: (Andrey Wagin's message of "Wed, 8 Aug 2012 11:24:34 +0400") Message-ID: <87zk64yk63.fsf@sejong.aot.lge.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1671 Lines: 41 On Wed, 8 Aug 2012 11:24:34 +0400, Andrey Wagin wrote: > 2012/8/8 Namhyung Kim : >> On Wed, 8 Aug 2012 09:02:18 +0400, Andrey Wagin wrote: >>> 2012/8/8 Namhyung Kim : >>>>> >>>>> $ ./perf record -e sched:sched_stat_sleep -e sched:sched_switch \ >>>>> -e sched:sched_process_exit -gP -o ~/perf.data.raw ~/foo >>> >>> Actually this string is not completed, because sched:sched_switch >>> should be filtered by state. >>> >>>>> [ perf record: Woken up 1 times to write data ] >>>>> [ perf record: Captured and wrote 0.015 MB /root/perf.data.raw (~661 samples) ] >>>>> $ ./perf inject -v -s -i ~/perf.data.raw -o ~/perf.data >>>>> $ ./perf report -i ~/perf.data >>>> >>>> The usage like this is too specific and hard to use IMHO. How about >>>> putting it somehow into perf sched or new command? >>>> >>>> /me don't have an idea though. :-) >>>> >>> >>> I'm going to add a script, so the usage will look like this: >>> $ perf script record sched-stat -e sched:sched_stat_sleep >>> This command will collect sched_stat_* and proper sched_switch events >> >> ??? That means '-e sched:sched_stat_sleep' part can be removed from >> command line, no? > > No. My method works for all kind of sched_stat_* events, so you need > to specify an event type which should be traced. Ok, so can it be like 'perf script record sched-stat -t sleep '? Thanks, Namhyung -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/