Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751679AbdL0CHL (ORCPT ); Tue, 26 Dec 2017 21:07:11 -0500 Received: from mail-pl0-f67.google.com ([209.85.160.67]:38237 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751163AbdL0CHJ (ORCPT ); Tue, 26 Dec 2017 21:07:09 -0500 X-Google-Smtp-Source: ACJfBouo0oec6kgrGq7lPp7OqPq19GnU1nlO+AthhHyi2XScAWAPjNdTNt/9rF7kdKqGHYKKzCH1sQ== Date: Tue, 26 Dec 2017 18:07:05 -0800 From: Alexei Starovoitov To: Masami Hiramatsu Cc: Alexei Starovoitov , Josef Bacik , rostedt@goodmis.org, mingo@redhat.com, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, ast@kernel.org, kernel-team@fb.com, daniel@iogearbox.net, linux-btrfs@vger.kernel.org, darrick.wong@oracle.com, Josef Bacik , Akinobu Mita Subject: Re: [RFC PATCH bpf-next v2 3/4] error-injection: Separate error-injection from kprobe Message-ID: <20171227020704.i4xqdcf57mfgvvvb@ast-mbp> References: <151427438796.32561.4235654585430455286.stgit@devbox> <151427447559.32561.4219243598746615059.stgit@devbox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <151427447559.32561.4219243598746615059.stgit@devbox> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1081 Lines: 25 On Tue, Dec 26, 2017 at 04:47:55PM +0900, Masami Hiramatsu wrote: > Since error-injection framework is not limited to be used > by kprobes, nor bpf. Other kernel subsystems can use it > freely for checking safeness of error-injection, e.g. > livepatch, ftrace etc. > So this separate error-injection framework from kprobes. > > Some differences has been made: > > - "kprobe" word is removed from any APIs/structures. > - BPF_ALLOW_ERROR_INJECTION() is renamed to > ALLOW_ERROR_INJECTION() since it is not limited for BPF too. > - CONFIG_FUNCTION_ERROR_INJECTION is the config item of this > feature. It is automatically enabled if the arch supports > error injection feature for kprobe or ftrace etc. > > Signed-off-by: Masami Hiramatsu > --- > Changes in v2: > - Fix the override function name to override_function_with_return() > - Show only function name in the list, user don't have to care about > it's size, since function override only happens at the entry. looks like nice cleanup. Acked-by: Alexei Starovoitov