Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp43161ybj; Fri, 8 May 2020 06:10:33 -0700 (PDT) X-Google-Smtp-Source: APiQypIy03GAk2yJLyj/U75yBeDu6C/ZWfcXGzNk7ULMZNrtW5/x6ykWOKQCoy2eRPzbnflxCaUN X-Received: by 2002:a05:6402:1543:: with SMTP id p3mr2137696edx.333.1588943433281; Fri, 08 May 2020 06:10:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588943433; cv=none; d=google.com; s=arc-20160816; b=BZvHORg+9mhbmJmoPvFdZI9JQrJ1hbC8n0ehs2rCUDhdV7BOGP5VCqX2JwUc9i38aR 441kk0JrwcTj+sGEBWw2r43dfj45XcjBnzS+jHj/AWedcLzDi+ByU0zJNl5lHm6MjB+l E5qfzdk5U7tnuRnhqAj3DDxg6MYkIU8th4dFaSGOaNZ+UMU2qYOua+7hOZkLz0FM7BE4 PFgt2vRg1jEMfumf9e1scdTb7W7+3ysdmyu/Be3OEHJvdRJz7xX3bgbYvUoYujV7GIvo tgdzWldmeyyl9BMjXDva38oFKGgsRnusqZQ+26A0vIc4B0uuLjv2OPsDN07uIJ1+zcwm I/wQ== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=+N3/NrYz2CykrXc0UmPW31xQDMkfJj/sa+Z4YuRgWfo=; b=CMJBlO5ShIBFDh8/+8wq3Ikr8p+10KSMsLrglUIuypbRhBmb2jxGUGMy2Zw/T4nvhg srp93KGPGA8h5gsCHt1UogUgoBD8no1qIrzXIRy4zzoEzMuqrSQoDWa25XDkkUoHy6nd ltyzdBi5nEFWgOljUWtLNvmHd0D0RNmeh4IZrAFcYupf/5dXrkJ2FQdrOA95xf5RM+Ng WDTu+yA3zZHdjosxSCtSFaL7b01FSWMk4YcFYEhf52cI160ModzCHtB4FNeVCASOQ2J1 a9dVRQfM9DCck9CFoRY2Ycmy3OLBrYUrSjYNl3qMUn4gExgUQKnaCtBCADCoG0Pgpoga MWoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h9si313302edr.316.2020.05.08.06.10.08; Fri, 08 May 2020 06:10:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730537AbgEHNIn (ORCPT + 99 others); Fri, 8 May 2020 09:08:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730521AbgEHNF2 (ORCPT ); Fri, 8 May 2020 09:05:28 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF945C05BD43; Fri, 8 May 2020 06:05:27 -0700 (PDT) Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jX2gr-0007j2-Jo; Fri, 08 May 2020 15:05:21 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id B25691C0864; Fri, 8 May 2020 15:05:06 +0200 (CEST) Date: Fri, 08 May 2020 13:05:06 -0000 From: "tip-bot2 for Arnaldo Carvalho de Melo" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf record: Move sb_evlist to 'struct record' Cc: Jiri Olsa , Adrian Hunter , Namhyung Kim , Song Liu , Arnaldo Carvalho de Melo , x86 , LKML In-Reply-To: <20200429131106.27974-2-acme@kernel.org> References: <20200429131106.27974-2-acme@kernel.org> MIME-Version: 1.0 Message-ID: <158894310663.8414.4035173088687971785.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: bc477d7983e345262757568ec27be0395dc2fe73 Gitweb: https://git.kernel.org/tip/bc477d7983e345262757568ec27be0395dc2fe73 Author: Arnaldo Carvalho de Melo AuthorDate: Fri, 24 Apr 2020 10:24:04 -03:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Tue, 05 May 2020 16:35:28 -03:00 perf record: Move sb_evlist to 'struct record' Where state related to a 'perf record' session is grouped. Acked-by: Jiri Olsa Cc: Adrian Hunter Cc: Namhyung Kim Cc: Song Liu Link: http://lore.kernel.org/lkml/20200429131106.27974-2-acme@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builtin-record.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index bf3a6f7..a6d887d 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c @@ -87,6 +87,7 @@ struct record { struct auxtrace_record *itr; struct evlist *evlist; struct perf_session *session; + struct evlist *sb_evlist; int realtime_prio; bool no_buildid; bool no_buildid_set; @@ -1447,7 +1448,6 @@ static int __cmd_record(struct record *rec, int argc, const char **argv) struct perf_data *data = &rec->data; struct perf_session *session; bool disabled = false, draining = false; - struct evlist *sb_evlist = NULL; int fd; float ratio = 0; @@ -1582,9 +1582,9 @@ static int __cmd_record(struct record *rec, int argc, const char **argv) } if (!opts->no_bpf_event) - bpf_event__add_sb_event(&sb_evlist, &session->header.env); + bpf_event__add_sb_event(&rec->sb_evlist, &session->header.env); - if (perf_evlist__start_sb_thread(sb_evlist, &rec->opts.target)) { + if (perf_evlist__start_sb_thread(rec->sb_evlist, &rec->opts.target)) { pr_debug("Couldn't start the BPF side band thread:\nBPF programs starting from now on won't be annotatable\n"); opts->no_bpf_event = true; } @@ -1858,7 +1858,7 @@ out_delete_session: perf_session__delete(session); if (!opts->no_bpf_event) - perf_evlist__stop_sb_thread(sb_evlist); + perf_evlist__stop_sb_thread(rec->sb_evlist); return status; }