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 6D564196C8E; Thu, 6 Jun 2024 14:08:31 +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=1717682911; cv=none; b=H0nIUliOf0l+cra+Fu12/d7MuAtj3hWHzN5DFIDC4QgpHrkiI6SxO7pSfqNN+aMzzlhd7ox1uSekA996gKgyPjogwdjJifQmksh185knTZwYaSITFABO3TLDf8msSjdydCnssJQer2pfHj68vUW+74/0SggiGZgz0kaDAYecxl4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717682911; c=relaxed/simple; bh=riZKrwtWSBYsfcXp+F+AlCHPquwZO6WXpAuPxn2W9/c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aPL3r2OkCg5J4IKaCRyA6Xi2jznbE6hkfmDhK8C1D9iSXtr/9f9HxGfyOYwAFUNLS9+GjCk8sPReosxsEJ5pLiZNnp1y/DRPP9KdndGOvKopc2RmtgRKZu9vUj0u/eNpPvHG8s7TjSBrahV+1ugWDjx4xq+2h60CpIRz1OSuXfU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Wvz50Ufk; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Wvz50Ufk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 393D3C2BD10; Thu, 6 Jun 2024 14:08:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717682911; bh=riZKrwtWSBYsfcXp+F+AlCHPquwZO6WXpAuPxn2W9/c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wvz50UfkCFk2yLdmxUsWLWEHdfeWIZIsdn+2F6J8RaL3UGeT+efJtaKmkzOpiapP3 Bkmd9uOQOaHFY3ftjOJ7Ce/JTLDdg9Uk9PlBu+70SOGG9oZeOe8njEakpBdeR+4jJo qymvdZRfiUKfcpX2h8O+f2mgyssVEja9WVnTmndM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ian Rogers , Jiri Olsa , Adrian Hunter , Alexander Shishkin , Andrei Vagin , Ingo Molnar , Kan Liang , Kees Kook , Mark Rutland , Namhyung Kim , Peter Zijlstra , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 6.9 039/374] perf bench uprobe: Remove lib64 from libc.so.6 binary path Date: Thu, 6 Jun 2024 16:00:18 +0200 Message-ID: <20240606131653.131857387@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240606131651.683718371@linuxfoundation.org> References: <20240606131651.683718371@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ian Rogers [ Upstream commit 459fee7b508231cd4622b3bd94aaa85e8e16b888 ] bpf_program__attach_uprobe_opts will search LD_LIBRARY_PATH and so specifying `/lib64` is unnecessary and causes failures for libc.so.6 paths like `/lib/x86_64-linux-gnu/libc.so.6`. Fixes: 7b47623b8cae8149 ("perf bench uprobe trace_printk: Add entry attaching an BPF program that does a trace_printk") Signed-off-by: Ian Rogers Acked-by: Jiri Olsa Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Andrei Vagin Cc: Ingo Molnar Cc: Kan Liang Cc: Kees Kook Cc: Mark Rutland Cc: Namhyung Kim Cc: Peter Zijlstra Link: https://lore.kernel.org/r/20240406040911.1603801-1-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- tools/perf/bench/uprobe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/bench/uprobe.c b/tools/perf/bench/uprobe.c index 5c71fdc419dd7..b722ff88fe7de 100644 --- a/tools/perf/bench/uprobe.c +++ b/tools/perf/bench/uprobe.c @@ -47,7 +47,7 @@ static const char * const bench_uprobe_usage[] = { #define bench_uprobe__attach_uprobe(prog) \ skel->links.prog = bpf_program__attach_uprobe_opts(/*prog=*/skel->progs.prog, \ /*pid=*/-1, \ - /*binary_path=*/"/lib64/libc.so.6", \ + /*binary_path=*/"libc.so.6", \ /*func_offset=*/0, \ /*opts=*/&uprobe_opts); \ if (!skel->links.prog) { \ -- 2.43.0