Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754978AbbFTAyL (ORCPT ); Fri, 19 Jun 2015 20:54:11 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:33331 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753908AbbFTAx7 (ORCPT ); Fri, 19 Jun 2015 20:53:59 -0400 Message-ID: <5584B9A5.9030602@plumgrid.com> Date: Fri, 19 Jun 2015 17:53:57 -0700 From: Alexei Starovoitov User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Daniel Wagner CC: "David S. Miller" , Daniel Borkmann , Ingo Molnar , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v2] bpf: BPF based latency tracing References: <1434722444-10200-1-git-send-email-daniel.wagner@bmw-carit.de> In-Reply-To: <1434722444-10200-1-git-send-email-daniel.wagner@bmw-carit.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1036 Lines: 27 On 6/19/15 7:00 AM, Daniel Wagner wrote: > BPF offers another way to generate latency histograms. We attach > kprobes at trace_preempt_off and trace_preempt_on and calculate the > time it takes to from seeing the off/on transition. ... > Signed-off-by: Daniel Wagner ... > With the rebase on net-next no additinal patches are needed and this > thing here runs fine. ... > samples/bpf/Makefile | 4 ++ > samples/bpf/lathist_kern.c | 99 +++++++++++++++++++++++++++++++++++++++++++ > samples/bpf/lathist_user.c | 103 +++++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 206 insertions(+) > create mode 100644 samples/bpf/lathist_kern.c > create mode 100644 samples/bpf/lathist_user.c Thanks. That's a useful example. Acked-by: Alexei Starovoitov Dave, this patch is for net-next and I hope it's not too late for this merge window. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/