Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1057477pxb; Tue, 14 Sep 2021 15:25:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwECinbJVeXTcLHptw0X5SSdi+nYSegccZluYodh1Vdesw52CoydGf4dbM8KvH42g83ccXC X-Received: by 2002:a05:6512:16a5:: with SMTP id bu37mr14497844lfb.293.1631658306756; Tue, 14 Sep 2021 15:25:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631658306; cv=none; d=google.com; s=arc-20160816; b=kEarTcfdandZXr6vVl7Z6+1C5rZ1v7eM57RSeMFXL9BOae5MX31XPImS0tS8EG7z2W DqC3nN47Kg4bF1LqaQODJKkDKwc+F7rqy0m5FwlVZBOyym1lAr51pUssK0pYp9ENxWod uzhW7PA53kJPthbAoFz9NslBfSNiU9caWGLbTOszxRo/x9rtDBO2sObR1Hlee0S7Nr/r nHV4SEmny7cEjvb2uspGSUDIX5Co+NyXfGmQGZMuQeUt/EkStsnTpuAD4uEtBn3aqG/2 ICGca1lKbP+a2/LtbtAVNLn83IGuMiJGozT+qk14WYui4hro9iKhcATnWs1P2mXeF+xf 7s0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=RLwX7Ft6iVObQeGOv+OOScxnxcJMRCVD4XgxogKw1ZA=; b=pdRX2K5eD/9QGGdBUTKnRPyp16Zk0uBdOjaAoMvDcnVWPsmE3p/7UN+1/V5kX9K0Xj UbE0aqzYL5dX6tKpuG1cdNDDwHgXA9eYxWwGQCpfIrKiud9SSQN+6GR7lz/hOk/XVrM3 jdWr3IEK8zLiXGRXAgH8myhnx7FMDu2ryXJ+ue09YKX21HNsG03qsoajubLYPf3lp0tl u197wXLqkZHCNer+93/03fKCpv1NiUaZklzUC7kYxlTZ6r20IMe5hewFpSXGNkjzZLS2 NDplvgovrzyAm9DpJNSvR54MWQBF9dCLBNCuTcqZjCZmoGH09+Gsx+Hsdkqkc1yzNWtR vXAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w19si1754893lfl.602.2021.09.14.15.24.39; Tue, 14 Sep 2021 15:25:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235455AbhINWYa (ORCPT + 99 others); Tue, 14 Sep 2021 18:24:30 -0400 Received: from mail-ej1-f48.google.com ([209.85.218.48]:37478 "EHLO mail-ej1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235609AbhINWY3 (ORCPT ); Tue, 14 Sep 2021 18:24:29 -0400 Received: by mail-ej1-f48.google.com with SMTP id h9so1739068ejs.4; Tue, 14 Sep 2021 15:23:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RLwX7Ft6iVObQeGOv+OOScxnxcJMRCVD4XgxogKw1ZA=; b=JkVMBX+keARH+SdhYxbxhkiUxiLPxOjfmjznQtnkPrPvwr1EVjIBDLeyAoCAfwGPji 1zisozh2JdKnekGoL5OTc0m5OORuUB8R/QV3e7m2mQrP1IU4EG5pagnhV7wGgWy6rki4 KPB4eqVN1Vgkj+Aju2+qhTi9wxtjlLpMNVTl4bTsu8nM1Cdp/xMxdYQbPi7JpE5H1wSl Jpc72MH4/LWf0mOivNwdt8ghxXGxmkxi7CslhaP1pmnoS/gCnKFOrDKujuWc6M5niWdG DA3X7JDz2DM55/k1PPgGgXmy0ft/ijb208yhEWon+2yhNcTKe8NBnPsZnJz7RA0EfwSn 5UKg== X-Gm-Message-State: AOAM530r6A7z4YQWVzmfXZDxfvy5SdktlUcD0CEyC3FOtdlkoa8MAUUd 9HhsD5ximWMn6DnCosWlLHaq6eAv1bOv4A== X-Received: by 2002:a17:906:681:: with SMTP id u1mr21164779ejb.499.1631658190223; Tue, 14 Sep 2021 15:23:10 -0700 (PDT) Received: from msft-t490s.teknoraver.net (net-2-34-36-22.cust.vodafonedsl.it. [2.34.36.22]) by smtp.gmail.com with ESMTPSA id w13sm6592017ede.24.2021.09.14.15.23.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Sep 2021 15:23:09 -0700 (PDT) From: Matteo Croce To: bpf@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Subject: [PATCH bpf] bpf: update bpf_get_smp_processor_id() documentation Date: Wed, 15 Sep 2021 00:23:06 +0200 Message-Id: <20210914222306.52522-1-mcroce@linux.microsoft.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matteo Croce Since commit 1e6c62a88215 ("bpf: Introduce sleepable BPF programs"), BPF programs can sleep if the BPF_F_SLEEPABLE flag is set. Update the documentation accordingly. Fixes: 1e6c62a88215 ("bpf: Introduce sleepable BPF programs") Signed-off-by: Matteo Croce --- include/uapi/linux/bpf.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index d21326558d42..5e3b2fb62d84 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -1629,9 +1629,9 @@ union bpf_attr { * u32 bpf_get_smp_processor_id(void) * Description * Get the SMP (symmetric multiprocessing) processor id. Note that - * all programs run with preemption disabled, which means that the - * SMP processor id is stable during all the execution of the - * program. + * programs run with preemption disabled unless BPF_F_SLEEPABLE is + * set, which means that the SMP processor id is stable during all + * the execution of the program. * Return * The SMP id of the processor running the program. * -- 2.31.1