Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932728AbbFWM64 (ORCPT ); Tue, 23 Jun 2015 08:58:56 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:33284 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753565AbbFWM6q (ORCPT ); Tue, 23 Jun 2015 08:58:46 -0400 Date: Tue, 23 Jun 2015 06:10:31 -0700 (PDT) Message-Id: <20150623.061031.2284937918219178217.davem@davemloft.net> To: ast@plumgrid.com Cc: daniel.wagner@bmw-carit.de, daniel@iogearbox.net, mingo@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v2] bpf: BPF based latency tracing From: David Miller In-Reply-To: <5584B9A5.9030602@plumgrid.com> References: <1434722444-10200-1-git-send-email-daniel.wagner@bmw-carit.de> <5584B9A5.9030602@plumgrid.com> X-Mailer: Mew version 6.4 on Emacs 23.4 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 23 Jun 2015 05:58:46 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1203 Lines: 31 From: Alexei Starovoitov Date: Fri, 19 Jun 2015 17:53:57 -0700 > 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 Applied, thanks. -- 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/