From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by sourceware.org (Postfix) with ESMTPS id 315FA3858C35 for ; Fri, 9 Feb 2024 18:08:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 315FA3858C35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=obs.cr Authentication-Results: sourceware.org; spf=none smtp.mailfrom=obs.cr ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 315FA3858C35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::736 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707502095; cv=none; b=SuWSeWE/+Irb3TekYMRnqnV49M/AhhVb9FaMd0UTl4PFtx6wY+iguKqGL7yKitLn+8wpgY+vpSV5K1jGD0G8Ay3duzvinafrC9N1oDP/FJUvRZUpgWTo2Okw1DT3byesxNtl9NwHNopd/PS/3V8PUTct9luy3lBEJYtb975j1Yg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707502095; c=relaxed/simple; bh=cEyOFe3atvOCtVaS10clRQUqzq+wzjH5/Xm9SGcEKuI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=JW5STOh2Z287DzFv7XSTtgIoH/k+M/1YfzR5IWjPwIXLBJIUXqa4Jpbh1F05QJEYre1GheSkjaN3QTSLZUjXqMd38HW8v39TCMimLMHiAoLmin6tD6OMkq2Gy+oqd+g1Ou/Mk810fhdWDtcNubFeLbMwLRjc7Fxc7Z7dDoS4OaQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-qk1-x736.google.com with SMTP id af79cd13be357-7838af983c1so91471985a.3 for ; Fri, 09 Feb 2024 10:08:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=obs-cr.20230601.gappssmtp.com; s=20230601; t=1707502093; x=1708106893; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=We5WfTivpuo+8I5QGbWmeJ963QH2g9aIe/2Gp+ex8h4=; b=iRSRKNLZLINfqFLKLCxoQyI8Sr2Fa3RuwgDUA/bZV5ER7Zhy/bpJ49IMEMd8P0g63I C1Pw37bIO0vv5yweRY0Ad9IeJjVB5voIQKEvr5OpUn+uNkZddPx1pqt/Pl3TQB5aeCfj dD9Je/CroJXtfAbcO4xLSrjl4AjjWqoeE6AhOFg/+F9ADQqVKlaoSzu6tDDN4+oA0waG 8p6dt5IUXXkWvVuWOa5WckJ36k9x+W5s4dKdAsdM2QqoLkE/2x5iyf839gRAEYBZ6jGk Qm3UH19eV/x2j8RfypTaVXLJFcppGi/R7Z9U2LqOXUK2JkiWT/0XfAzrk65Pj07wzzyi VD8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707502093; x=1708106893; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=We5WfTivpuo+8I5QGbWmeJ963QH2g9aIe/2Gp+ex8h4=; b=lzLI6tbUWOm8E+4mWM9vy6AttzY6nij6GT7KLTmowDiTDlTX7bydX+277OjwvdCKav y7G4WG0Cr8TajudSBsytqOpLwY+E2ebAIALBzTUYsv44vCEYiSQgDEeFnuVNVAscR1J7 pGJ1hPXh0b/I3QYHJFXw8Ra7e0GsrBdXIYxoIjOPOBu9X4yDPU8m/SAE7UV0zCcNKI3q HoFZrOTX2PmXApydDZZSGsNmNYEaVic846dQSfRuqHd7FZY2xzabRz5arukLVNRdbVxy VaBZJUEyGOe09Wo0ruQq8jkW34aTcTMcbmjTqXhjvDTQej4FsyLPTpV8unuW6c7rIvE9 49aQ== X-Gm-Message-State: AOJu0Yyv7DOBuTuMll1gZ8FR14ZPxh7BYFNiy5Gx1LrqXE8If5Gb4/ib 2tKilSM5p2MYfCFyOwEqfkP5YZiAVpmLjKI2wKySE9u7sFT/2jGrnSrgii64Jrd7PsFpnKTBXkW 3 X-Google-Smtp-Source: AGHT+IGDDa7qKBK7sxZlVPkzjznyoeSXiEKqLUZDJG5tCKOunO9stY379ycLgSVVzVw/cmlLnK4VRQ== X-Received: by 2002:a05:620a:55a6:b0:785:8c17:dfa3 with SMTP id vr6-20020a05620a55a600b007858c17dfa3mr2626926qkn.40.1707502093156; Fri, 09 Feb 2024 10:08:13 -0800 (PST) Received: from borderland.rhod.uc.edu ([129.137.96.2]) by smtp.gmail.com with ESMTPSA id j9-20020a37ef09000000b007833008dae8sm911102qkk.98.2024.02.09.10.08.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 10:08:12 -0800 (PST) From: Will Hawkins To: binutils@sourceware.org Cc: Will Hawkins Subject: [PATCH 0/1] objdump: Add callx support for BPF CPU v1 Date: Fri, 9 Feb 2024 13:07:31 -0500 Message-ID: <20240209180734.443763-1-hawkinsw@obs.cr> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hello everyone! First time patch submitter but longtime GNU enthusiast. Thank you for all the work that you all do to maintain these vital pieces of software for the community. I am one of the maintainers of ubpf, a userspace eBPF runtime. As part of the ISA standardization process at the IETF, Dave Thaler discovered that clang is now emiting the callx instruction when targeting CPU versions all the way back to v1. I know from Jose that gcc emits that instruction in a special mode. There is a discussion at the ebpf-for-windows GitHub about adding callx support to prevail (and other related tools): https://github.com/microsoft/ebpf-for-windows/issues/3237 This patch adds the ability for objdump to decode the callx instruction for ELF-encoded binaries targeting CPU v1 and greater. I tried very hard to follow best practices for creating this patch submission but I am sure that I did something wrong. Please let me know what I can do differently or better. Again, thank you for your effort maintaining these programs for the community! Sincerely, Will Will Hawkins (1): objdump: Add callx support for BPF CPU v1 include/opcode/bpf.h | 2 +- opcodes/bpf-opc.c | 2 ++ sim/bpf/bpf-sim.c | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) -- 2.43.0