From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5232 invoked by alias); 27 Feb 2014 04:56:53 -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 5222 invoked by uid 89); 27 Feb 2014 04:56:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-we0-f178.google.com Received: from mail-we0-f178.google.com (HELO mail-we0-f178.google.com) (74.125.82.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 27 Feb 2014 04:56:51 +0000 Received: by mail-we0-f178.google.com with SMTP id q59so2460739wes.9 for ; Wed, 26 Feb 2014 20:56:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=FklihUAInSKkuo+GdjvfZ9gPvCLJnQAbjGJBWTBjKBQ=; b=JK5H1//bfKWdyHZb9kmOp3iz00D6U8afObMxSlYZ6eLuXONSY38hXKNkib6rOKLkFz Ww+P42bXtsrtcMSYrixuyfi0IEpTP2j5JLD3/hS4J/t3Mb7SeQxQ9Rg2xurDNYwVI1Op jBnm39CeKNWSnEIeBY7gnXXq1h1hmW8nKWDpW5W4l/n3tSi7HwD6MUoJqdqJkkzZigGd VUr89kHxyDr+kwTd1vm1/Budo82Ni4HhgAuWnz1xlcDB9ejn6uU199UYEfL3DTA6QR6i fWZKBdAUp00HCXBjzNo4nb3Ffjo6WbimtTlTpatz2kKkQaAmQLIOx0VkWHJhkXdL8cPz vclg== X-Gm-Message-State: ALoCoQlSDewkFETPXu0Pp4HO4QiJYvcBDw0S8q+NjK/GT1kYPGTeYp2VMNv6VqO0eggWz71vDhLv MIME-Version: 1.0 X-Received: by 10.194.21.193 with SMTP id x1mr5413764wje.33.1393477007710; Wed, 26 Feb 2014 20:56:47 -0800 (PST) Received: by 10.194.219.106 with HTTP; Wed, 26 Feb 2014 20:56:47 -0800 (PST) In-Reply-To: <530E9F9F.1060703@hitachi.com> References: <530E9F9F.1060703@hitachi.com> Date: Thu, 27 Feb 2014 04:56:00 -0000 Message-ID: Subject: Re: arm64 kprobes patches From: Sandeepa Prabhu To: Masami Hiramatsu Cc: systemtap@sourceware.org, William Cohen , Petr Machata , Mark Wielaard , Deepak Saxena , Arnd Bergmann , "sandeepa.prabhu@linux.com" Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2014-q1/txt/msg00163.txt.bz2 On 27 February 2014 07:44, Masami Hiramatsu wrote: > (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) OK we will try to verify this with arm64 ftrace patches (from linaro) which are close to get accepted upstream. Has your earlier patches (kprobes blacklist related) been queued-up for upstream? Are you planning generic kprobes API changes ? > > 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 > >