From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 2E2BA2D7D47 for ; Thu, 25 Jun 2026 11:19:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782386371; cv=none; b=tzWw8ouEZc1DZBkDqZa7k+ulJ6UxIlCNysyD5RFFVLHLwe0ZTHhikREVF3dbPpKjpQH1wYIO164OfL8A0/PhHNnYXUMhHPV7ntD3PCaKvoqR3/AuhcYkmW8i/MmFk6mSFI1i8HX83N3hQBh+1eOpMd4CRQHzt97Is6heBAZgC0I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782386371; c=relaxed/simple; bh=9GnjKZAAwWOJ6iOjqWFv8xkXbcwkJumenPFelkLST9E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: In-Reply-To:Content-Type:Content-Disposition; b=Ww0DSjiiV5Dl1osClQbwA/FKjHIYs8F7AJ200hD+zTkQmw2/kXtMGsYLz0tpeyAtpRAxYqsREIMRe+WV+/3DfFUtAqGdV6YHP8MqVE1Jn+Uw35LE7QtJI/6y9HBv7JYmaZGNjWnspEzWh6QO1vA3BFx3OQ14JCrikzFJxbP7w4g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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=KHedpVZy; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="KHedpVZy" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1782386369; 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=52ni/i+jk3KpB5D9iOoetAdp8/OomJTmilYdSF0nb8k=; b=KHedpVZycCczQSvYKyMrEJH8hrSp29OJqMTckoEufobXZgGs8OI8tJjekQOOLxB5znNhko NlPZqVH8Fc4kxA7LrRFRrj78JXYE+G0ur7EyV7Kdvc+w3s+umooLgPbCjBdkuozu/BzBWv RoS172Smknj1QyUtogBMjhoRJ71/5+0= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-407-Nl7xn4FrNpmOfoP9vGStmg-1; Thu, 25 Jun 2026 07:19:25 -0400 X-MC-Unique: Nl7xn4FrNpmOfoP9vGStmg-1 X-Mimecast-MFC-AGG-ID: Nl7xn4FrNpmOfoP9vGStmg_1782386364 Received: from mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.95]) (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-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 658DF180897A; Thu, 25 Jun 2026 11:19:24 +0000 (UTC) Received: from fedora (unknown [10.44.33.191]) by mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id 0425330A8; Thu, 25 Jun 2026 11:19:20 +0000 (UTC) Received: by fedora (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Thu, 25 Jun 2026 13:19:23 +0200 (CEST) Date: Thu, 25 Jun 2026 13:19:19 +0200 From: Oleg Nesterov To: Jiri Olsa Cc: Peter Zijlstra , Ingo Molnar , Masami Hiramatsu , Andrii Nakryiko , bpf@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: Re: [PATCHv4 02/13] uprobes/x86: Remove struct uprobe_trampoline object Message-ID: References: <20260526205840.173790-1-jolsa@kernel.org> <20260526205840.173790-3-jolsa@kernel.org> Precedence: bulk X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.6 on 10.30.177.95 X-Mimecast-MFC-PROC-ID: UIPIDY_x0tdqijS9SC0SJPPB4S9f_7GzE_cv786o63Q_1782386364 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On 06/24, Oleg Nesterov wrote: > > Perhaps we can later optimize this code a bit? I mean something like > > start_reachable = ...; > end_reachable = ...; > > VMA_ITERATOR(vmi, mm, start_reachable); > > for_each_vma(vmi, vma) { > if (!vma_is_special_mapping(...)) > continue; > if (vma->vm_start > end_reachable) > break; > return vma; > } I have looked into include/linux/mm.h, we have for_each_vma_range(). So I guess for_each_vma_range(vmi, vma, end_reachable) { if (vma_is_special_mapping(...)) return vma; } should work. Oleg.