Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935033AbeAKQkV (ORCPT + 1 other); Thu, 11 Jan 2018 11:40:21 -0500 Received: from mail-qt0-f195.google.com ([209.85.216.195]:38584 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935013AbeAKQkT (ORCPT ); Thu, 11 Jan 2018 11:40:19 -0500 X-Google-Smtp-Source: ACJfBou72x22T8bP3dmBbZQAWALL0Ud42kLJwrkz9g7/oYKTNJig+pT9cWRno69D+UvYElVrNZI+LA== Date: Thu, 11 Jan 2018 11:40:16 -0500 From: Josef Bacik 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: [PATCH bpf-next v4 3/5] error-injection: Separate error-injection from kprobe Message-ID: <20180111164013.smpmaftyxpufe4ak@destiny> References: <151563173430.628.5070705610243278195.stgit@devbox> <151563182380.628.2420967932180154822.stgit@devbox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <151563182380.628.2420967932180154822.stgit@devbox> User-Agent: NeoMutt/20170714 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Thu, Jan 11, 2018 at 09:50:24AM +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 Reviewed-by: Josef Bacik Thanks, Josef