Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp344534lqb; Tue, 4 Jun 2024 13:09:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWdAdKI59tgr6a9F7rqP08GwAsh/xNl21OIOVUN04bruMsrDC0XMu4JkBhb3BbLWh4aw7stWwUQawrP0NUx1KUVstS2cdIzzHy2ifvwpw== X-Google-Smtp-Source: AGHT+IG3Yh9n088URpvb6TY9xpbl+C8PzsX69s3NEBEWdcPQqCy2Mco+iJOnIST7OyD7gXofoAsi X-Received: by 2002:a05:6a20:3956:b0:1af:d95f:cd9 with SMTP id adf61e73a8af0-1b2b7000280mr812614637.29.1717531790484; Tue, 04 Jun 2024 13:09:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717531790; cv=pass; d=google.com; s=arc-20160816; b=kbprpPS3A83H4a4PrxbqqyCWuhe8bTE29K0qSBlEO7F84lZbR6cG5259WBMPRc0FHM bVJKh6mH3oYZNj7f1y4fqL5S7DSQABa3xBwPNKOnpderQRDOsj0EN6MLVipYboSzqIPA 4IEQ3JvdMbXvhIs43vXlkqEnOQDZPsDxecfgFCj/4d2UuDsgOsH5LORhbdlzTdF0uBmE p2hu3HQ+4b3SOoaKt4YRwDVUcpwYrqvXYcMRwy3yahYTihWow4YIPqM+1ZHLvFdzptOD r+bS27UxLF2FvaEr2gcKeE91a7a6x+3n8tzfm8SNAON8ggJxIN2m/sAf5ClAFBv9sfH1 UBlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Dv/sELzNgk1xq15sMSyVBo5ISZx/E1Bib3iZW7dyDY4=; fh=u3to46i6vVc15/oqkgIGXd5IRsv1JvYq+fe7qFLhiF8=; b=uAJVzfozBDr/QmOijC4zlAGTeaa+IDQ+EDtjpc+FLbzNdFrzfn2XLhI/H+nxL8oOfz p198KH0Wq/Hg/eHmA7mtJ/Cz9q089lC0UsXjLwdqFwyzfJrv1h+g7WigCtKq7dsUh99K ZMb03UigJa+6lQpD1G/2zdSQT719JtwXBK6OppzwBNHDiD9hMdaDYRG4z9yQ6AaZPpYs V5x7bgHiQQZ5pd9CZMe90307+2IYMUsBmal9PMqSEHUjWzYZU56DNa2hLELtOtkvIgKH IInGG34DzX452a2J+L1bJTCrWhsan2FkTgqeZcsfUbRFd+SUUMJDZc8BzRI+aVIVDgnx Wdzg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ehjPsO2l; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201319-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201319-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35c181423si1285213a12.629.2024.06.04.13.09.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 13:09:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201319-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ehjPsO2l; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201319-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201319-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 46745B269BE for ; Tue, 4 Jun 2024 20:04:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 35F8314D282; Tue, 4 Jun 2024 20:03:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ehjPsO2l" 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 527A114B96B; Tue, 4 Jun 2024 20:03:38 +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=1717531418; cv=none; b=L7ZR5ajpmpFGXVC6xqSUPGXYTUqSnkjJZ/1KtRuMzclujppFz2YKPlthfNWBOn/5HPn/h+yHEBgbNIP+EVdLwxbVVW37BLk3//LF73EV5bcvGYrlbMf9Hg/ZG/a/O4NO9/UceQaetTOGETXnH7vo1oYUFPGWItp+Y+I7PAmHQj8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717531418; c=relaxed/simple; bh=OrDWdwFwBLOPijaiiAiolWQlzUYYleCq1cewcCwIhJ8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IVcH3UxN5XId6uRKbBO4yG3IBpZqFe5+j43rBqYOWGKob0W2UGnn+PU/eyIkrJZFVLhtYua6W19Y99WTAbnXFxFXs48kb0YN3XDB6+AtgwqMtFmCyFsUelyyWVQGSVd5pNAjPS8ed27ni1cke4PEwPU8An3kTs/JVrJmNxWDnJg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ehjPsO2l; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C42BC3277B; Tue, 4 Jun 2024 20:03:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717531418; bh=OrDWdwFwBLOPijaiiAiolWQlzUYYleCq1cewcCwIhJ8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ehjPsO2lhV7tnUjWUmMCssQDh6/Fd4Z+C5Rih1oLZ3VJTIrkxNTfS4Zh1qOM3bhWd Y3deZO9smgwc3vN/jjZps8X27DP548QFpTNLvR7nKP6r92QyyIAHJptVp3nZQuUOQ2 rH54R4xrmVsyGqC79kj5Yp2hK1QJGlef1lYesQrfmqIExc5tR5pGkwmAQQq8bAWReS uwqetWOXUF4uKTTmRyR5qzeeY5UTQqQiQ2Yt2QT42Ai9FnTeX34w9fSoIiTf6utmZy LjksAUZghB0aJkoij86zg2lACWW/vjVkgV2/EHrXJqblLvhMN5CMhdYNx520YTNXhk RaBvVS7TAWhKw== From: Jiri Olsa To: Oleg Nesterov , Peter Zijlstra , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: bpf@vger.kernel.org, Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Steven Rostedt , Masami Hiramatsu , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: [RFC bpf-next 05/10] libbpf: Add uprobe session attach type names to attach_type_name Date: Tue, 4 Jun 2024 22:02:16 +0200 Message-ID: <20240604200221.377848-6-jolsa@kernel.org> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240604200221.377848-1-jolsa@kernel.org> References: <20240604200221.377848-1-jolsa@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Adding uprobe session attach type name to attach_type_name, so libbpf_bpf_attach_type_str returns proper string name for BPF_TRACE_UPROBE_SESSION attach type. Signed-off-by: Jiri Olsa --- tools/lib/bpf/libbpf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index a0044448a708..702c2fb7e4df 100644 --- a/tools/lib/bpf/libbpf.c +++ b/tools/lib/bpf/libbpf.c @@ -133,6 +133,7 @@ static const char * const attach_type_name[] = { [BPF_NETKIT_PRIMARY] = "netkit_primary", [BPF_NETKIT_PEER] = "netkit_peer", [BPF_TRACE_KPROBE_SESSION] = "trace_kprobe_session", + [BPF_TRACE_UPROBE_SESSION] = "trace_uprobe_session", }; static const char * const link_type_name[] = { -- 2.45.1