From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32195 invoked by alias); 27 Feb 2014 02:15:06 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 32179 invoked by uid 89); 27 Feb 2014 02:15:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail7.hitachi.co.jp Received: from mail7.hitachi.co.jp (HELO mail7.hitachi.co.jp) (133.145.228.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 27 Feb 2014 02:15:03 +0000 Received: from mlsv3.hitachi.co.jp (unknown [133.144.234.166]) by mail7.hitachi.co.jp (Postfix) with ESMTP id 71E6337AC2; Thu, 27 Feb 2014 11:15:01 +0900 (JST) Received: from mfilter05.hitachi.co.jp by mlsv3.hitachi.co.jp (8.13.1/8.13.1) id s1R2F1UU000572; Thu, 27 Feb 2014 11:15:01 +0900 Received: from vshuts02.hitachi.co.jp (vshuts02.hitachi.co.jp [10.201.6.84]) by mfilter05.hitachi.co.jp (Switch-3.3.4/Switch-3.3.4) with ESMTP id s1R2F0MW025036; Thu, 27 Feb 2014 11:15:00 +0900 Received: from gxml20a.ad.clb.hitachi.co.jp (unknown [158.213.157.160]) by vshuts02.hitachi.co.jp (Postfix) with ESMTP id C3931490055; Thu, 27 Feb 2014 11:14:59 +0900 (JST) Received: from [10.198.219.44] by gxml20a.ad.clb.hitachi.co.jp (Switch-3.1.10/Switch-3.1.9) id 61R21ENS400002EEC; Thu, 27 Feb 2014 11:14:59 +0900 Message-ID: <530E9F9F.1060703@hitachi.com> Date: Thu, 27 Feb 2014 02:15:00 -0000 From: Masami Hiramatsu User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: Sandeepa Prabhu Cc: systemtap@sourceware.org, William Cohen , Petr Machata , Mark Wielaard , Deepak Saxena , Arnd Bergmann , "sandeepa.prabhu@linux.com" Subject: Re: arm64 kprobes patches References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-q1/txt/msg00160.txt.bz2 (2014/02/27 0:02), Sandeepa Prabhu wrote: > Hi all, > > We have uploaded arm64 kprobes latest changes on linaro git which > include some fixes for recursive kprobes. These are rebased on top of > 3.14-rc3. Kprobes support can be enabled by enabling > "General setup ---> [*] Kprobes" config option. > > Git location: git://git.linaro.org/people/sandeepa.prabhu/linux-aarch64.git > Branch: arm64_kprobes_3.14-rc3 Great! Thank you for working on that! > > Please let us know if you are interested in pulling this branch for > systemtap test-suite verification, while we are trying to include > systemtap test-suite on our linaro open-embedded platforms. > > Also, please let us know if there are documentation on howto run full > test-suite for systemtap and various criteria kprobes should meet? One possible testing is putting kprobes on all functions in the kernel by using ftrace interface. (On x86, current kprobes still has some problems, and I solved, will send the series later). You can put kprobes on all kernel functions ---- #!/bin/sh TRACE_DIR=/sys/kernel/debug/tracing/ grep -iw t /proc/kallsyms | tr -d . | awk 'BEGIN{i=0};{print("p:"$3"_"i, "0x"$1); i++}' | \ while read l; do echo $l >> $TRACE_DIR/kprobe_events || echo "Failed($?): $l" ; done ---- Note that this just register *disabled* kprobes on each function. To enable each one, you need to write "1" to $TRACE_DIR/events/kprobes//enable. # I recommend you to enable one by one, there still be a performance problem. Thank you, -- Masami HIRAMATSU IT Management Research Dept. Linux Technology Center Hitachi, Ltd., Yokohama Research Laboratory E-mail: masami.hiramatsu.pt@hitachi.com