From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753861AbaI2Lk7 (ORCPT ); Mon, 29 Sep 2014 07:40:59 -0400 Received: from mail4.hitachi.co.jp ([133.145.228.5]:55229 "EHLO mail4.hitachi.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751921AbaI2Lk5 (ORCPT ); Mon, 29 Sep 2014 07:40:57 -0400 Message-ID: <54294543.2030003@hitachi.com> Date: Mon, 29 Sep 2014 20:40:51 +0900 From: Masami Hiramatsu Organization: Hitachi, Ltd., Japan User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: Namhyung Kim Cc: Steven Rostedt , Shuah Khan , LKML , Shuah Khan , Tom Zanussi , Oleg Nesterov , Fengguang Wu , Ingo Molnar Subject: Re: Re: Re: [RFC][PATCH] ftracetest: Add a couple of ftrace test cases References: <20140923173846.603cb49c@gandalf.local.home> <5422336A.6030304@hitachi.com> <20140924114235.4287f4a1@gandalf.local.home> <20140924115811.6eeeab8c@gandalf.local.home> <5422EAE2.6080005@osg.samsung.com> <20140924120853.0a717b7e@gandalf.local.home> <877g0qkj9g.fsf@sejong.aot.lge.com> <54255411.4090508@hitachi.com> <1411742793.1669.14.camel@leonhard> In-Reply-To: <1411742793.1669.14.camel@leonhard> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (2014/09/26 23:46), Namhyung Kim wrote: > Hi Masami, > > 2014-09-26 (금), 20:54 +0900, Masami Hiramatsu: >> (2014/09/26 15:06), Namhyung Kim wrote: >>> Hi Steve, >>> >>> On Wed, 24 Sep 2014 12:08:53 -0400, Steven Rostedt wrote: >>>> On Wed, 24 Sep 2014 10:01:38 -0600 >>>> Shuah Khan wrote: >>>> >>>>> I am working on adding the framework for c tests. We will have >>>>> to get this evolved for shell scripts. Please see the following >>>>> thread: >>>>> >>>>> https://lkml.org/lkml/2014/9/23/926 >>>>> >>>> >>>> Thanks, >>>> >>>> Also, what's the rules for a test that requires other tools. Some of my >>>> tests require trace-cmd to be installed as well as perf. My stress test >>>> runs perf against trace-cmd running hackbench (another required tool), >>>> but I believe that perf has hackbench built in so I could replace >>>> hackbench with the perf version. >>> >>> Yeah, and I think we can at least build perf (if not found) for test as >>> we can always have the source. The trace-cmd is different and it'd be >>> another reason I need to work on 'perf ftrace' command soon. ;-) >> >> +1 :) >> >> For the kselftest, we can only expect to have tools in kernel tree (which >> should be static-linked) and busybox, so that we can use qemu emulator to >> run kselftest on other archs. I guess perf still need some shared >> objects to run. That should be solved too. > > The perf should be built with no extra dependencies (other than libc). > It won't provide rich features but basic functionality (record, report, > stat) should be supported. And I'm also thinking about implementing a > very simple elf parser for symbol loading in such a minimal build. Maybe you can install some static libraries (e.g. elfutils-libelf-devel-static on fedora) for enabling it. :) Some libraries may not work, but I could enable libelf by installing that. Thank you, -- Masami HIRAMATSU Software Platform Research Dept. Linux Technology Research Center Hitachi, Ltd., Yokohama Research Laboratory E-mail: masami.hiramatsu.pt@hitachi.com