Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp439917ybi; Fri, 26 Jul 2019 12:22:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3QFzEBcLZnbLXW4BOCWvwWbp/YJGu13/iaJabgxJbjsP9PcxV4BgZvx7UUZXxU44/jcrs X-Received: by 2002:a63:1018:: with SMTP id f24mr6619719pgl.343.1564168934700; Fri, 26 Jul 2019 12:22:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564168934; cv=none; d=google.com; s=arc-20160816; b=SVeuOiEyS3WFzMkBG0/ytnl5N/FjGxDC74ZesOZUNFUAMShJ40haQdvZ9Ep0YUdQbN VHlkXmcvQfptQ7L3iKF2SCcVfFMA8aGgOvMOqj1YcOx7X7QdETI1nvW1CHnWuk6rtkub P31eJIEic+duGUrmG7sSeA+Epx3ekXwISfEtDJamV4+n2SxMOuxTagG2IHklcfA1eilZ UAT66ElDr304z1qVHjAMkDuVHYKcHeoOSL42J1dhSyhrC4oPYKBuZIEK2663AwS2rX/A Q0nlLu9xbejxlFlTkWPk/DBeXIX51GTysyU5njm3l18gi/f19qQEnL44wQiTm+kfwbby T65A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=CPw0XwTJzCxTYKZd93gvPeGNq2nXvPy6DgiyMO4g2bA=; b=Cklg4jgTH0BLtNHdLWveXrDoxWryZKu8CQz9ps/nIIWrojJBR3G/F5q42xHAcwxt8r tko6xVtN+KxA/8M5NA42/0o6cbeLxj3edziUEmbkEI6Z++ZZvj2ahN0Y8nv++sgXIfO3 5MOlenL9YJseicc0BuW3Rp3E2kpLj8+2FsblY+IOtMIeJrMoQsGV+Bats6fB8D4jMGWa tki/BCz2zIT+XgmD6bSybmoRC2thvtFhRWFW8+6CT0GI10WUhDdCVVylUEjUzVWm0H/4 VgkD9ljNvm+qQ2R28ust3VoKMqO8XkiUZrfLeLIq5jA6zu5S3BWY7hXV4++wamUcxhg2 0h6g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cl7si20694330plb.267.2019.07.26.12.21.59; Fri, 26 Jul 2019 12:22:14 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727259AbfGZQKl (ORCPT + 99 others); Fri, 26 Jul 2019 12:10:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:36990 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726871AbfGZQKl (ORCPT ); Fri, 26 Jul 2019 12:10:41 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 20A4621850; Fri, 26 Jul 2019 16:10:40 +0000 (UTC) Date: Fri, 26 Jul 2019 12:10:38 -0400 From: Steven Rostedt To: Matt Helsley Cc: LKML , Ingo Molnar , Josh Poimboeuf , Peter Zijlstra Subject: Re: [PATCH v3 08/13] recordmcount: Clarify what cleanup() does Message-ID: <20190726121038.6c69548b@gandalf.local.home> In-Reply-To: References: X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 24 Jul 2019 14:05:02 -0700 Matt Helsley wrote: > cleanup() mostly frees/unmaps the malloc'd/privately-mapped > copy of the ELF file recordmcount is working on, which is > set up in mmap_file(). It also deals with positioning within > the pseduo prive-mapping of the file and appending to the ELF > file. > > Split into two steps: > mmap_cleanup() for the mapping itself > file_append_cleanup() for allocations storing the > appended ELF data. > > Also, move the global variable initializations out of the main, > per-object-file loop and nearer to the alloc/init (mmap_file()) > and two cleanup functions so we can more clearly see how they're > related. > > Signed-off-by: Matt Helsley > --- > Hi Matt, I reviewed up to this patch and they look fine. I may pull these in as I don't need a review form Josh for these patches. Thanks! -- Steve