From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.180 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796278844; b=Lb8hnHIiTNzltFkBb/d70cyoU0OTCWwyTJzNVQpbBNanDdeBc6NmPetxDJNsf5v2OCms nF+M4eRKYF35jIZVvdv2E+MgFsd9btjmPuybUBACABLiFphJvhIQTY+GqaKdFrLiWeg7j CDRokVae4hgGlAwaOfcxN6ZuNbdqnzt+uw3FAGA5mW/E5pBLG/hCYARkszJH2817s7zwY AEd7vF7lLi21yv0l+LjGDZsaHZ5XMm2DgHmMLV5evn5c6J2vCdocA2wStLMBt+Vjaun4Z zlDlkoDnbomKABxjNo4ti2a/UHxjozHC/KsXoZfxdfvtJHDlgIdWJ2IwMBzK8ucBB3Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796278844; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=4wM4SClIHtRioKm8aRF/rpvJgqupcVShASdGT30ym5I=; b=ArstaeruqPuCFYBaprCVxpgVZWwPlsfll6xZVydKt7zwxZBMrzq/8YZr6zJQ3GkwVRYn gIKD1TAScRkQJBYZwezpe9G9kuCxVOk283xLv5GeNYbCeD6fmEPR96kzYaxPAoPJD40+a QB+08hZFDx1yDg8rbPyWIOvtI39dopZ1l2w32mOz1scDKWngNd8+IjntxPGybn8MOktNL FTi4IiI4GzSAabJxGoh2QpS9He6UYwaK1BLAc6IlVBLkUEDr4/YydGobQg+KiePbPp16A Q7HGgMxj3ZwdWrnkVD1CIQk+hBRIJ2NjCAPysEPy3ToynM783FmGa5IL7tFscYporpA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=KfyMsDmB; arc=none smtp.remote-ip=91.218.175.180 Received: from mta0.migadu.com (out-180.mta0.migadu.com [91.218.175.180]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A74F606A32F for ; Thu, 3 Dec 2026 06:20:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7A74F606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=KfyMsDmB X-Envelope-To: linux-perf-users@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=Rld9UQfaFJS2TJYnzqybubmeKX+fAVWxWk56tCokxCY=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796278841; v=1; x=1796883641; b=KfyMsDmBmvc2XCInzegKDw2c2mXXDrcJO2Y3K91Gyh6PTn/2Eqgt4r9G0CkFGZ4RwDrFgBeD rsUlxzMY1XL/F1JDx7z4R5aQJ5EBxzBzc9vahAenQfxkxwYNJJHzADo++jHMsaf8dijD424ZtPg STbcPCDw8EEPvqtFlGYO4wM0= X-Envelope-To: linux-perf-users@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id a837095c53da95cd; Thu, 03 Dec 2026 06:20:33 +0000 X-Mizu-Trace-ID: a837095c53da95cd X-Migadu-Flow: FLOW_OUT Message-ID: Date: Thu, 3 Dec 2026 14:20:22 +0800 X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH bpf-next 1/4] bpf: Add log support for perf link_create To: Alexei Starovoitov , bpf@vger.kernel.org Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Eduard Zingerman , Kumar Kartikeya Dwivedi , Martin KaFai Lau , Song Liu , Yonghong Song , Jiri Olsa , Emil Tsalapatis , Ihor Solodrai , John Fastabend , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Ian Rogers , Adrian Hunter , James Clark , KP Singh , Matt Bobrowski , Shuah Khan , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-kselftest@vger.kernel.org References: <20261202153739.57959-1-leon.hwang@linux.dev> <20261202153739.57959-2-leon.hwang@linux.dev> Content-Language: en-US From: Leon Hwang In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 3/12/26 09:40, Alexei Starovoitov wrote: > On Wed Dec 2, 2026 at 3:37 PM UTC, Leon Hwang wrote: [...] >> diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h >> index dff8a209875c..0fe900813581 100644 >> --- a/include/linux/trace_events.h >> +++ b/include/linux/trace_events.h >> @@ -781,7 +781,8 @@ trace_trigger_soft_disabled(struct trace_event_file *file) >> #ifdef CONFIG_BPF_EVENTS >> unsigned int trace_call_bpf(struct trace_event_call *call, void *ctx); >> unsigned int trace_call_bpf_faultable(struct trace_event_call *call, void *ctx); >> -int perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie); >> +int perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie, >> + struct bpf_verifier_log *log); > > This is not landable. > Don't you remember how netdev folks objected to such thing? > Same story here. > Got it. Perf has no equivalent of netlink extack. I'd like to pass a 'const char **errmsg' to the perf attach helper, so it can return a static error msg. On failure, BPF_LINK_CREATE can write the msg to the log buffer if errmsg was set. Thanks, Leon