Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2501801imu; Fri, 23 Nov 2018 10:06:15 -0800 (PST) X-Google-Smtp-Source: AFSGD/XSrO6YnYMESC1v0HuZ8LoiZ/j4vKLkI5vXEazLfcMd8q3H1zB9XMWDzma5wwgSG6QmnVW7 X-Received: by 2002:a17:902:b60a:: with SMTP id b10mr15763578pls.303.1542996375539; Fri, 23 Nov 2018 10:06:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542996375; cv=none; d=google.com; s=arc-20160816; b=Gz8so/4I510EhVkcjnrF6fx6xD5ViJxe2wEb/Ayd9QDo3fUyvLJ/bU2sKLlOBXp7D7 QrxwRlvJwDaYJeb3+gFXrZoZWkWXAsLmsZHBROr1cSgtSv+YBi4K4Nz37y1Z8WQ85ZuH 4eAx2l1WSILh6HSLo2GZdLWIj6gT380GwUJjtDx4dYI/LUYXgdS6xb4fE/QTTsFr/SiI wrrc/AyBSGfT4v6k3k9Fog8D7yPZ4Gj1x/pO6yDgnzZ8Dz4lZ7yx45kNN4eGVpRPLS7Y e5VczxQhihQbttattrkBIe68UKpLRbLHw7nMzy/1D62/40sQkODM0b8i59cvuNpju3W8 qNWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0FdJWlttdcfx1vvyGNs5jX+WBsrIxwmgJ7nDcXUL+zM=; b=hXdoVpw0ydPkUpkKRSN22cDmhSUJyV4BhO7v8wgp7eRNb1Mraw3DPVFL5RalQlNlQB 2CLPFsOQQMbx4GD8noBO2XWFJP0pfw6UJ7nFU8u015In0mhS1OU/4/6Hem1K8Q9HQbSu Rpc4tRCGXEEqDZrlyyOxRkBNyNr6Ol4f/lTcnR1cuKdUEu/8J+X9JLKm25LH1FENOtG/ ibzsmlkmcEEsmrMGZHIW+Jn+b9AIOcvzsblCQU/UjNd3+XDxig7KEp+egBnBkjqvauOZ ArYYtnJHtQyxlV5dRn4BZ0Wc7QuM0wG9BVQXgG307G+0tPbkZjZ6KFA1izeFP0TaP4NP Vjmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hMV+t8eW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a35si16094955pla.226.2018.11.23.10.05.58; Fri, 23 Nov 2018 10:06:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hMV+t8eW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391577AbeKWAiG (ORCPT + 99 others); Thu, 22 Nov 2018 19:38:06 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:45922 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388851AbeKWAiG (ORCPT ); Thu, 22 Nov 2018 19:38:06 -0500 Received: by mail-lj1-f195.google.com with SMTP id s5-v6so8050207ljd.12; Thu, 22 Nov 2018 05:58:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0FdJWlttdcfx1vvyGNs5jX+WBsrIxwmgJ7nDcXUL+zM=; b=hMV+t8eW1ECVHtpiApxQkz3/dDOsjqt+T3SUJewTdceUmdGcQY9euvpcCKfOm59VkE R0m4eQ41qNd6lEgag829R4WJnKrFA007BeTMCiP8YIux5WQKwcRBtBk9s0aLy5ISngLo bmZt/3MW4aCYzIcwY1PIOAwhNfXCQnEsvl3GR9X/T02GVZ+3KAsUxOGLXHgP3EvauDDG pySwWPJFhg11i3g6NS+xkQs9IlIA4gqtEG/XXB5kOeVPQrK9n3Rf6zZgBaM7w+Td+0br 5J96nsQlek67ksGeCk35D2hwFKLGeDRz/nZSvIP15LURIkBjkH9AjeEbQfqtBMJRRPHt QhGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0FdJWlttdcfx1vvyGNs5jX+WBsrIxwmgJ7nDcXUL+zM=; b=IRee5cQBilS0DYbOAlX36/57sjp4R286Ajvhvwp9klFsODDjHa7s2X3w1S42Ph0m+K 3hII07wcNJy+BhUayl5oCeEWHJqF3/jfkUDYuzFcrTowvzGQcTDAhHJ4f5IkV7JelZ+E M3/lZbljzk/hmcl1LlSWg+q79FEp3b38SObN8WzkBo3CLO1so7Xsk4ChlOdt9p8S7CPk JwQptQk6aDGjqdbHX93IHciqhVDYQlNcPrLYgN+Mrq/UISTgG6QYM5RsYvWO0Jetr/6F EJ+MczT4bb91NBDOYE/KzMO3bqB9jXzg4qJ3Mw4csmBz5/hfVb0il9Gy4dP0c5BkhiGk j6Ug== X-Gm-Message-State: AA+aEWb97fD9ZKRG7hHZldKNoKso4MxPUejoNm+RPGH+oyCJniJWc4Tz KI17jIkH8J3MLzdSPn3xbS0= X-Received: by 2002:a2e:4299:: with SMTP id h25-v6mr6831255ljf.5.1542895116044; Thu, 22 Nov 2018 05:58:36 -0800 (PST) Received: from uranus.localdomain ([5.18.102.224]) by smtp.gmail.com with ESMTPSA id p23sm7160394lfh.47.2018.11.22.05.58.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Nov 2018 05:58:35 -0800 (PST) Received: by uranus.localdomain (Postfix, from userid 1000) id 67ECB4606DE; Thu, 22 Nov 2018 16:58:34 +0300 (MSK) Date: Thu, 22 Nov 2018 16:58:34 +0300 From: Cyrill Gorcunov To: Andy Lutomirski Cc: Daniel Colascione , Andrew Morton , linux-kernel , Linux API , Tim Murray , Primiano Tucci , Joel Fernandes , Jonathan Corbet , Mike Rapoport , Vlastimil Babka , Roman Gushchin , Prashant Dhamdhere , "Dennis Zhou (Facebook)" , "Eric W. Biederman" , rostedt@goodmis.org, tglx@linutronix.de, mingo@kernel.org, linux@dominikbrodowski.net, jpoimboe@redhat.com, Ard Biesheuvel , Michal Hocko , Stephen Rothwell , ktsanaktsidis@zendesk.com, David Howells , "open list:DOCUMENTATION" Subject: Re: [PATCH v2] Add /proc/pid_gen Message-ID: <20181122135834.GA29449@uranus> References: <20181121201452.77173-1-dancol@google.com> <20181121205428.165205-1-dancol@google.com> <20181121141220.0e533c1dcb4792480efbf3ff@linux-foundation.org> <20181121145043.fa029f4f91afddc2a10bb81e@linux-foundation.org> <37255927-1A93-4B8B-A916-B5A3983D56B6@amacapital.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <37255927-1A93-4B8B-A916-B5A3983D56B6@amacapital.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 21, 2018 at 04:35:34PM -0700, Andy Lutomirski wrote: > > > > I'm going to have Android's systrace and Perfetto use this approach. > > Exactly how many tools signed up to use this feature do you need? > > > >> Those people are the intended audience and the > >> best-positioned reviewers so let's hear from them? > > > > I'm writing plenty of trace analysis tools myself, so I'm part of this > > intended audience. Other tracing tool authors have told me about > > out-of-tree hacks for process atomic snapshots via ftrace events. This > > approach avoids the necessity of these more-invasive hacks. > > Would a tracepoint for pid reuse solve your problem? FWIW we've had similar problem in criu for memory snapshotting, because memory data is PID-driven and snapshots are rather discrete events. So we use task_struct::real_start_time as a second guard agains pid reuse.