Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp480011rdb; Tue, 5 Dec 2023 10:26:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IEbiUllDeZKAArVIbL07i1jbM90BKVUrfO0e+DIw2eLfBEg5hbb1xGWLPW6Qz+N0lSVwwgz X-Received: by 2002:a17:90a:fb42:b0:285:b3a8:40ac with SMTP id iq2-20020a17090afb4200b00285b3a840acmr1387058pjb.19.1701800808428; Tue, 05 Dec 2023 10:26:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701800808; cv=none; d=google.com; s=arc-20160816; b=ND4NcrH1sxIcsmNbQsT5ANLbArDvtK21O2NEwdyxNmibzo7W2JxrV/xP211bv+16a3 UZq1rAu2xvrwoxolCj/UdFFgJ69DGW/uElBOgvbBHNerxjDn0m2QKdWNzE1cptkNX/HS 8n/1SKeuoQMBxjFbxBtiGIeTibYEnnz9vxy+qtHV8lndCSIA2j2KsTr+Q5O91BERqUOe jqz/AgGU8+f7QKZU86hotZOS2HxJQmfrb366JTWdmVs0Mb0A2r66M+t+GzDcVKyFyKsU vXY2V8l8OUFfM9WMsTwCLUmT+LqCPk+nQ3npp6NYr4VWaLV642uQFZZdajZ96eC4VBfG YEpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=vMGWJVOfh2zhlCBjN9Kk0DFR/gjfXRuD3D7nHiffcwY=; fh=mtobQslglMG5ChEg8saKz5LNVDSZnRI18vYvLv6juts=; b=rjccEp8Nid+gMnD/6NYCNVLoBz9tRyjFXMjl8Di69yL7fOoBCfKpJ6EH2S4YHzmdCp 4RS31G82sQRlQ+JRvgXxouJnCHI8vMUtRM3CHqdkakpv08BY2DPnv9PNteX5rHTH2BFd JDPP2AZdZUjrzUQdRat+rX17FYQU1u/Crtfn6SdGJnxzj1nRmmmDJJiQjirvcXA4Hzzv rf6q9XMuHxSyfFB+zLH6UsNIw9yBuUj9YGy9jVtxYOOiDSVX3Zk3K1DI55ywWX/RP2Fl 13yyzsMgxcrVQhMs+140PdiTnXUcUETLfYWBeJVR6JQ0jgEE3GC75OKAnnQiaHG0b8TL kXkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id mf11-20020a17090b184b00b00276571c0d34si2636700pjb.6.2023.12.05.10.26.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 10:26:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 7C17280A9DFB; Tue, 5 Dec 2023 10:26:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345963AbjLES0U convert rfc822-to-8bit (ORCPT + 99 others); Tue, 5 Dec 2023 13:26:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232014AbjLES0T (ORCPT ); Tue, 5 Dec 2023 13:26:19 -0500 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3B32AC; Tue, 5 Dec 2023 10:26:25 -0800 (PST) Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-2865742e256so3025338a91.0; Tue, 05 Dec 2023 10:26:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701800785; x=1702405585; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BuC/v2sY9q+7BmsyoScER9HwtOgHqYFm9Mniu3xB+pE=; b=fI9RD+FN0ICx4LcM11uwEZK1rGLh5sWcJ4vomNNsxa9ghppC2lbzmrPnmeC/kV+AJW Y+uZ8sIsWJxt4CRpDwZ5N1AFvfg4AIZum1cyxYzpMMAroAhZYlCp3xHLqxEy8qEV40Zt nQjIHfovTUPwyzrVv753QWstyEJCmdN5fX+f0KXC4AoLE8b+w3XxjvhajGVzZSNIJ2kE 6d9WjghYkXTtjjaCGVTgIFj4m680uNtUMrBWP556CXfXyM6TS5Oj7bVt8a1qNtM+JPS8 VdnxIxT89Gq9jpD8yeqMvNtecL0l5zwcXvUiwgSzVo0pwZ6Wn9AoGNoQkOjODbxR9SG4 cWtQ== X-Gm-Message-State: AOJu0YwqCVry7a1F52YE6KiZEVp1ye807te7osJD7/zsgO55GppzfDL+ rqhyhOzKPsepkOi4EAno4bSm27KTQqO7akRpUyI= X-Received: by 2002:a17:90b:17d2:b0:286:8672:51e4 with SMTP id me18-20020a17090b17d200b00286867251e4mr1264633pjb.16.1701800785123; Tue, 05 Dec 2023 10:26:25 -0800 (PST) MIME-Version: 1.0 References: <20231204201406.341074-1-khuey@kylehuey.com> <20231204201406.341074-2-khuey@kylehuey.com> In-Reply-To: From: Namhyung Kim Date: Tue, 5 Dec 2023 10:26:14 -0800 Message-ID: Subject: Re: [PATCH 1/2] perf/bpf: Allow a bpf program to suppress I/O signals. To: Marco Elver Cc: Jiri Olsa , Andrii Nakryiko , Kyle Huey , Kyle Huey , linux-kernel@vger.kernel.org, "Robert O'Callahan" , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Ian Rogers , Adrian Hunter , linux-perf-users@vger.kernel.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 05 Dec 2023 10:26:40 -0800 (PST) On Tue, Dec 5, 2023 at 10:17 AM Marco Elver wrote: > > On Tue, 5 Dec 2023 at 19:07, Namhyung Kim wrote: > > If we want to handle returning 0 from bpf as if the event didn't > > happen, I think SIGTRAP and event_limit logic should be done > > after the overflow handler depending on pending_kill or something. > > I'm not sure which kernel version this is for, but in recent kernels, > the SIGTRAP logic was changed to no longer "abuse" event_limit, and > uses its own "pending_sigtrap" + "pending_work" (on reschedule > transitions). Oh, I didn't mean SIGTRAP and event_limit together. Maybe they have an issue separately. Thanks, Namhyung