Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp559056lqr; Wed, 5 Jun 2024 14:03:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXnnSoue2RRb791DPUSYQIyrGzAkWOSLVALeuc7He870qm7bvB30CQB4GCGOhkPz/1FJsipBN/MHeVOgLxiW4JCJsTmL69E4rp+atyQZQ== X-Google-Smtp-Source: AGHT+IGAtTYokYxeDz3pSz4inaaQQ8LeVrlCxPkftoxGZBU3vJEa+/DkJGg8+9tKhl/wmPFGfsL1 X-Received: by 2002:a05:6a20:7f89:b0:1a8:2cd1:e493 with SMTP id adf61e73a8af0-1b2c56bd3cfmr987291637.29.1717621410611; Wed, 05 Jun 2024 14:03:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717621410; cv=pass; d=google.com; s=arc-20160816; b=igSnmamslF+uElJK/Y0Zhmv2RbcW0ncjj+oRBGl49/3q14vMSpUSi0nt65GlgSMgeM TxRe2GAkySmiJQdObJM9c1L+XsjpMNhC9oyw3gZpncmTiXc64TFM1E7VmFih32hwSqDg HUuIR1lk1Rp1uxCaLQjOVKtLcanXWbHGtmlBNMgNBUiyKvWWWbO6XgDFG8xtf+aVpn5/ oXlMQ0cdB8htMZN+Xk2YZ/1mromuCCdrWEJK8k9//03yTpVgNlKYEC/cAedw11n0FUVj ZQfWvOSIX8Sa+Apa0P6xS+ixfvU3rDE5u4tRYu4k0aLCQGu9nOJeQsIdDrmW0AZQsCfh ye5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=CR6hmo3BYLol4OkDTrDKGhawRzyHwi1OkF6+XlGrv3w=; fh=sJc/31VU6YjmW4Dy5FIjmJjJT7pw+8uxEKr7mwQLqT8=; b=GgQSNTvyD6wvgsggU6bIiNT4gXKHJ1edHQCKu8AJSPEchIfxqleGHbNjNs8nQHjSHd ICz7xKQauwUUUcQKDvSM20vaI+07xGF8xj7p3S93r+ifhDw9rae5w7jObkA9W0RzhsTT ZWz/KdG/zL7iS2P+e8kWvpg2CwCceyARCTmrUUlEzqJN3OqNXpyTMVRJCH83uGBFKrjg U2stllxMdR4B0lpGtHF5tZcA7BunGTIYgEwyfXxW/MbVqbQYNRjk7f6bNcRdZZll1G2Z b95cb+jOKwy7DPFJULUcRsV+yAMT2SSKxGMghEBqGERn5TxWPgZUg9VTv1XN4OaxldZk EfVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QdJ49FRS; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-203226-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203226-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-70242c279dcsi3085498b3a.263.2024.06.05.14.03.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 14:03:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203226-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QdJ49FRS; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-203226-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203226-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 307B028777F for ; Wed, 5 Jun 2024 21:02:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60FAE15F3EC; Wed, 5 Jun 2024 21:02:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="QdJ49FRS" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 12AF16A325 for ; Wed, 5 Jun 2024 21:02:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717621353; cv=none; b=QQYIvaEsadm6RHro/Rl2YZtA4vZJcN7rP435FQPseMohWauK4CUDBXaal9F4jawsLrd6YSfkGzZCGql9Gl27fxRock+sgqu6EhDdQL2bZA+0CY2FU3Z1LxSfVeXrSioZE6BeU6qEFBLwlWpEvwM5kefK1A/6BanEF2GGt9BiLNo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717621353; c=relaxed/simple; bh=CR6hmo3BYLol4OkDTrDKGhawRzyHwi1OkF6+XlGrv3w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bBoARUJUZOk6U+3SMP+geB9ratFwzw+lWsytLy6ca+MwVMYE6ArP9ECiohkXSczj2GMtZTgS/0XyKZO7Xpv4GZO3N8laFEEZUbKzX24BFtxquD+HXmys0XP6/xkVP3kaVdGLBrPEX15kltIMP+sfiYzqqVJrjAcrRWLElVc7hUw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=QdJ49FRS; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717621350; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CR6hmo3BYLol4OkDTrDKGhawRzyHwi1OkF6+XlGrv3w=; b=QdJ49FRStmltlNCCrX72/COOnj/msNmIBq5ehQqHfZfpBZTqag3wiElA2CtKm3kuxOI2b/ ydztvnGBfvL0U/WGaF9vsANK+zH+/o6pADBhj8zimPYKhWpKTIO2pj+m1zyDF2A+SXym1k LS6IewVFKVn43VlBkvcely1632LBkDw= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-682-UlRffepYNUy40V6cIxvZ3w-1; Wed, 05 Jun 2024 17:02:23 -0400 X-MC-Unique: UlRffepYNUy40V6cIxvZ3w-1 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id BAF671953955; Wed, 5 Jun 2024 21:02:20 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.45.224.62]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id 80A511956055; Wed, 5 Jun 2024 21:02:13 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Wed, 5 Jun 2024 23:00:52 +0200 (CEST) Date: Wed, 5 Jun 2024 23:00:43 +0200 From: Oleg Nesterov To: Jiri Olsa Cc: Andrii Nakryiko , Peter Zijlstra , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , 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: Re: [RFC bpf-next 01/10] uprobe: Add session callbacks to uprobe_consumer Message-ID: <20240605210043.GB19139@redhat.com> References: <20240604200221.377848-1-jolsa@kernel.org> <20240604200221.377848-2-jolsa@kernel.org> <20240605175619.GH25006@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 On 06/05, Jiri Olsa wrote: > > > And the comment about the return value looks confusing too. I mean, the > > logic doesn't differ from the ret-code from ->handler(). > > > > "DO NOT install/execute the return uprobe" is not true if another > > non-session-consumer returns 0. > > well they are meant to be exclusive, so there'd be no other non-session-consumer OK. (but may be the changelog can explain more clearly why they can't co-exist with the non-session-consumers). But again, this doesn't differ from the the ret-code from the non-session-consumer->handler(). If it returns 1 == UPROBE_HANDLER_REMOVE, then without other consumers prepare_uretprobe() won't be called. Oleg.