Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752085AbcCIEWY (ORCPT ); Tue, 8 Mar 2016 23:22:24 -0500 Received: from shards.monkeyblade.net ([149.20.54.216]:49730 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750977AbcCIEWP (ORCPT ); Tue, 8 Mar 2016 23:22:15 -0500 Date: Tue, 08 Mar 2016 23:22:13 -0500 (EST) Message-Id: <20160308.232213.1624474136438943765.davem@davemloft.net> To: ast@fb.com Cc: daniel@iogearbox.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH net-next 1/3] samples/bpf: add bpf map stress test From: David Miller In-Reply-To: <1457478474-1614041-1-git-send-email-ast@fb.com> References: <1457478474-1614041-1-git-send-email-ast@fb.com> X-Mailer: Mew version 6.7 on Emacs 24.5 / 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, 08 Mar 2016 20:22:15 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 650 Lines: 17 From: Alexei Starovoitov Date: Tue, 8 Mar 2016 15:07:52 -0800 > this test calls bpf programs from different contexts: > from inside of slub, from rcu, from pretty much everywhere, > since it kprobes all spin_lock functions. > It stresses the bpf hash and percpu map pre-allocation, > deallocation logic and call_rcu mechanisms. > User space part adding more stress by walking and deleting map elements. > > Note that due to nature bpf_load.c the earlier kprobe+bpf programs are > already active while loader loads new programs, creates new kprobes and > attaches them. > > Signed-off-by: Alexei Starovoitov Applied.