Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755468AbaFLA7e (ORCPT ); Wed, 11 Jun 2014 20:59:34 -0400 Received: from lgeamrelo02.lge.com ([156.147.1.126]:33686 "EHLO lgeamrelo02.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755337AbaFLA7c (ORCPT ); Wed, 11 Jun 2014 20:59:32 -0400 X-Original-SENDERIP: 10.177.220.181 X-Original-MAILFROM: namhyung@gmail.com From: Namhyung Kim To: Stanislav Fomichev Cc: acme@kernel.org, artagnon@gmail.com, jolsa@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] perf timechart: implement IO mode References: <1402412694-5996-1-git-send-email-stfomichev@yandex-team.ru> <1402412694-5996-2-git-send-email-stfomichev@yandex-team.ru> Date: Thu, 12 Jun 2014 09:59:29 +0900 In-Reply-To: <1402412694-5996-2-git-send-email-stfomichev@yandex-team.ru> (Stanislav Fomichev's message of "Tue, 10 Jun 2014 19:04:52 +0400") Message-ID: <87ppif9c3y.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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stanislav, On Tue, 10 Jun 2014 19:04:52 +0400, Stanislav Fomichev wrote: > In IO mode timechart shows any disk/network activity. [SNIP] > +Record system-wide IO events: > + > + $ perf timechart record -I I got a segfault here: Core was generated by `perf timechart record -I'. Program terminated with signal 11, Segmentation fault. #0 parse_options_step (ctx=ctx@entry=0x7fff6dcd8ef0, options=options@entry=0x587de0, usagestr=usagestr@entry=0x588900) at util/parse-options.c:353 353 if (*arg != '-' || !arg[1]) { Missing separate debuginfos, use: debuginfo-install glibc-2.17-9.fc20.x86_64 nss-softokn-freebl-3.15-1.fc20.x86_64 numactl-libs-2.0.7-6.fc17.x86_64 (gdb) bt #0 parse_options_step (ctx=ctx@entry=0x7fff6dcd8ef0, options=options@entry= 0x587de0, usagestr=usagestr@entry=0x588900) at util/parse-options.c:353 #1 0x0000000000465cf4 in parse_options_subcommand (argc=argc@entry=197, argv=argv@entry=0x13fd6d0, options=options@entry=0x587de0, subcommands=subcommands@entry=0x0, usagestr=usagestr@entry=0x588900, flags=flags@entry=2) at util/parse-options.c:462 #2 0x0000000000465f54 in parse_options (argc=argc@entry=197, argv=argv@entry= 0x13fd6d0, options=options@entry=0x587de0, usagestr=usagestr@entry= 0x588900, flags=flags@entry=2) at util/parse-options.c:492 #3 0x0000000000429ef8 in cmd_record (argc=argc@entry=197, argv=argv@entry= 0x13fd6d0, prefix=prefix@entry=0x0) at builtin-record.c:894 #4 0x0000000000434c59 in timechart__io_record (argv=0x7fff6dcdc270, argc=0) at builtin-timechart.c:1756 #5 cmd_timechart (argc=0, argv=0x7fff6dcdc270, prefix=) at builtin-timechart.c:1957 #6 0x000000000041b603 in run_builtin (p=p@entry=0x7fa230, argc=argc@entry=3, argv=argv@entry=0x7fff6dcdc270) at perf.c:319 #7 0x000000000041ae82 in handle_internal_command (argv=0x7fff6dcdc270, argc=3) at perf.c:376 #8 run_argv (argv=0x7fff6dcdc060, argcp=0x7fff6dcdc06c) at perf.c:420 #9 main (argc=3, argv=0x7fff6dcdc270) at perf.c:534 It was because, as I said, my system doesn't have pread64 syscall.. you missed to decrease rec_argc when skipping invalid events. :) > + > + then generate timechart: > + > + $ perf timechart After fixing the problem, I could run timechart and generate an output.svg file. But it doesn't show any IO activity.. process info was there in grey boxes (rect.process3) but no color boxes. I also tried recording with ping and dd, but the result was same. I suspect it's because of some mis-calculation of position or size of the boxes. 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/