From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 145D63A8CB; Tue, 25 Jun 2024 14:41:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719326501; cv=none; b=kIt7HEyys7eLqFXLjurzso2HyVBCwYdhsWx9ebddnj4K8pkhhxkv5LafS1i2Xw97P7jAFPuk6HMSBtk7sqZU1eSNw8HZp9LnEn1qbaidzGYHfTJacn+1vpI1cI/AhKmZmRwqwc/c99NL9l+ss15w6a//TIdB8PYLsBAOUYI6FwM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719326501; c=relaxed/simple; bh=VosDvf0qt3pU/Covzt7D0pO5vvASRfaUya6aWxUxI8k=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pOTk62BSlcO7/hGXB8Fbw254TOXayt0jbF+CWAcC80jXfy9jklFmBU97Xg3aZfI8e+uaCAaQNGYHhogdPU+T61hRgNV+HkTaptVIwHXU4FS7Pmtzo+lJK+Fk8TjC06xGMWYkz0ivgiki415n7ZXpLaZIrbma0lxBJ47zaD7aMm4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EDA7C4AF07; Tue, 25 Jun 2024 14:41:38 +0000 (UTC) Date: Tue, 25 Jun 2024 10:41:37 -0400 From: Steven Rostedt To: Vlastimil Babka Cc: Akinobu Mita , Christoph Lameter , David Rientjes , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , "Naveen N. Rao" , Anil S Keshavamurthy , "David S. Miller" , Masami Hiramatsu , Mark Rutland , Jiri Olsa , Roman Gushchin , Hyeonggon Yoo <42.hyeyoo@gmail.com>, linux-kernel@vger.kernel.org, linux-mm@kvack.org, bpf@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/7] error-injection: support static keys around injectable functions Message-ID: <20240625104137.7fbe294d@rorschach.local.home> In-Reply-To: <20240620-fault-injection-statickeys-v2-2-e23947d3d84b@suse.cz> References: <20240620-fault-injection-statickeys-v2-0-e23947d3d84b@suse.cz> <20240620-fault-injection-statickeys-v2-2-e23947d3d84b@suse.cz> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 20 Jun 2024 00:48:56 +0200 Vlastimil Babka wrote: > @@ -86,6 +104,7 @@ static void populate_error_injection_list(struct error_injection_entry *start, > ent->start_addr = entry; > ent->end_addr = entry + size; > ent->etype = iter->etype; > + ent->key = (struct static_key *) iter->static_key_addr; Nit, should there be a space between the typecast and the "iter"? > ent->priv = priv; > INIT_LIST_HEAD(&ent->list); > list_add_tail(&ent->list, &error_injection_list); Reviewed-by: Steven Rostedt (Google) -- Steve