Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1578944pxa; Thu, 6 Aug 2020 10:43:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCNdDMC3GqbHc8GqKW94qHs3Pd8woOTqxfscplm+JHpIDFweVCf+30Zu4k796tdkOZhqG2 X-Received: by 2002:a17:906:95d4:: with SMTP id n20mr5789538ejy.485.1596735780282; Thu, 06 Aug 2020 10:43:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596735780; cv=none; d=google.com; s=arc-20160816; b=TfEVSxuWo8J2k0l6kDol5CFMMRpk76T1Yozi65Z5/1Ze0kVLBtNdD4W0vEVwaCaR4f pt43Mtbjx2P0YLNK9MKtOca40pbX2iWW7sO/4Ki0ILJYd67zKEuVviRF8ZAZAMtJGHKe OUpYAYZf+XHznHB1DPwBcZgT+6OlNhc99yF0SVnPYxBmReWAsxzftF3Rq8AJcfPIGjCh 9GjQp0oNZHHlthvaoH6Rd8YMm0o+hkTPlqOtQKpQtW02+17nh4DnxCRZH1HXv21I5ZRj psu04ExCUFRa/sqggRWCUKk/PVJu89RyTynnxAp0H9nk+pRvKgA4rDBBZi5TkoGkHuBD qc0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Z4QX+mZEstGeghu6frOYwbcSMucNe69a/Fefw3En638=; b=fl2GiaYOlOClM9Wq66DvFPjUTVuoQohofdiBfTUOTa9pBYsH4UYx8biTtsqSv9dz5g h5LnENonj+7S8I1MXIbM2M1w18D6nkL615C3/UpYGvOs6v+n8DmmnlJkQNuq9ltUspVB VmZ7BDIJq/n2Ng18Od7bvtkbz1Ze25aPiDuytALZEouF/bJc/xtjOKlXhJQG7xIT6yGJ YjLwYb6Y2U1nCxepArchWMPFTdB06a/IVmHZa26UU5zZjXJRtxAWaRQIHvPW5037DwMu TTvrSyNoO77IHGFYWSuhX9QcdyT0Chiw0ZeFujRu5UxmdNj9akxMa2tf9ktEv9kRNX4q KVMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uX8oj8a0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c15si3445617ejz.724.2020.08.06.10.42.38; Thu, 06 Aug 2020 10:43:00 -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; dkim=pass header.i=@kernel.org header.s=default header.b=uX8oj8a0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730625AbgHFRi6 (ORCPT + 99 others); Thu, 6 Aug 2020 13:38:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:54822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729164AbgHFRbn (ORCPT ); Thu, 6 Aug 2020 13:31:43 -0400 Received: from quaco.ghostprotocols.net (unknown [179.162.129.152]) (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 23A3B22D0B; Thu, 6 Aug 2020 12:46:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596717970; bh=QrxjxFQXvrxHBH9YwYcV7vnXh+iepBJIdhJO2i2pYwo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uX8oj8a0O0wlst6i0TMUJvQdx1C9L0JnVS7VabH1BZZjEM3yNcWmoAM235rVTBzip vF/heXazR6fsDCMq25esXaLoi2m6SGrnIZbeUfuT75aIz+TpUyIUAOpaNKlIoJdFU5 CGNrv9pkmgZoSFhouNY48YNe8/9w4aMGnis/isZM= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 1FA3B40D9D; Thu, 6 Aug 2020 09:46:08 -0300 (-03) Date: Thu, 6 Aug 2020 09:46:08 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan , Ian Rogers , Andi Kleen , David Ahern , =?iso-8859-1?Q?Genevi=E8ve?= Bastien , Wang Nan , Jeremie Galarneau Subject: Re: [PATCH v2 6/7] perf script: Change enum perf_output_field values to be 64 bits Message-ID: <20200806124608.GH71359@kernel.org> References: <20200805093444.314999-1-jolsa@kernel.org> <20200805093444.314999-7-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200805093444.314999-7-jolsa@kernel.org> X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Aug 05, 2020 at 11:34:43AM +0200, Jiri Olsa escreveu: > So it's possible to add new values. I did not find any place > where the enum values are passed through some number type, > so it's safe to make this change. Thanks, applied. - Arnaldo > Signed-off-by: Jiri Olsa > --- > tools/perf/builtin-script.c | 64 ++++++++++++++++++------------------- > 1 file changed, 32 insertions(+), 32 deletions(-) > > diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c > index 0dfc38fb6d35..eb45f678dc2f 100644 > --- a/tools/perf/builtin-script.c > +++ b/tools/perf/builtin-script.c > @@ -82,38 +82,38 @@ static bool native_arch; > unsigned int scripting_max_stack = PERF_MAX_STACK_DEPTH; > > enum perf_output_field { > - PERF_OUTPUT_COMM = 1U << 0, > - PERF_OUTPUT_TID = 1U << 1, > - PERF_OUTPUT_PID = 1U << 2, > - PERF_OUTPUT_TIME = 1U << 3, > - PERF_OUTPUT_CPU = 1U << 4, > - PERF_OUTPUT_EVNAME = 1U << 5, > - PERF_OUTPUT_TRACE = 1U << 6, > - PERF_OUTPUT_IP = 1U << 7, > - PERF_OUTPUT_SYM = 1U << 8, > - PERF_OUTPUT_DSO = 1U << 9, > - PERF_OUTPUT_ADDR = 1U << 10, > - PERF_OUTPUT_SYMOFFSET = 1U << 11, > - PERF_OUTPUT_SRCLINE = 1U << 12, > - PERF_OUTPUT_PERIOD = 1U << 13, > - PERF_OUTPUT_IREGS = 1U << 14, > - PERF_OUTPUT_BRSTACK = 1U << 15, > - PERF_OUTPUT_BRSTACKSYM = 1U << 16, > - PERF_OUTPUT_DATA_SRC = 1U << 17, > - PERF_OUTPUT_WEIGHT = 1U << 18, > - PERF_OUTPUT_BPF_OUTPUT = 1U << 19, > - PERF_OUTPUT_CALLINDENT = 1U << 20, > - PERF_OUTPUT_INSN = 1U << 21, > - PERF_OUTPUT_INSNLEN = 1U << 22, > - PERF_OUTPUT_BRSTACKINSN = 1U << 23, > - PERF_OUTPUT_BRSTACKOFF = 1U << 24, > - PERF_OUTPUT_SYNTH = 1U << 25, > - PERF_OUTPUT_PHYS_ADDR = 1U << 26, > - PERF_OUTPUT_UREGS = 1U << 27, > - PERF_OUTPUT_METRIC = 1U << 28, > - PERF_OUTPUT_MISC = 1U << 29, > - PERF_OUTPUT_SRCCODE = 1U << 30, > - PERF_OUTPUT_IPC = 1U << 31, > + PERF_OUTPUT_COMM = 1ULL << 0, > + PERF_OUTPUT_TID = 1ULL << 1, > + PERF_OUTPUT_PID = 1ULL << 2, > + PERF_OUTPUT_TIME = 1ULL << 3, > + PERF_OUTPUT_CPU = 1ULL << 4, > + PERF_OUTPUT_EVNAME = 1ULL << 5, > + PERF_OUTPUT_TRACE = 1ULL << 6, > + PERF_OUTPUT_IP = 1ULL << 7, > + PERF_OUTPUT_SYM = 1ULL << 8, > + PERF_OUTPUT_DSO = 1ULL << 9, > + PERF_OUTPUT_ADDR = 1ULL << 10, > + PERF_OUTPUT_SYMOFFSET = 1ULL << 11, > + PERF_OUTPUT_SRCLINE = 1ULL << 12, > + PERF_OUTPUT_PERIOD = 1ULL << 13, > + PERF_OUTPUT_IREGS = 1ULL << 14, > + PERF_OUTPUT_BRSTACK = 1ULL << 15, > + PERF_OUTPUT_BRSTACKSYM = 1ULL << 16, > + PERF_OUTPUT_DATA_SRC = 1ULL << 17, > + PERF_OUTPUT_WEIGHT = 1ULL << 18, > + PERF_OUTPUT_BPF_OUTPUT = 1ULL << 19, > + PERF_OUTPUT_CALLINDENT = 1ULL << 20, > + PERF_OUTPUT_INSN = 1ULL << 21, > + PERF_OUTPUT_INSNLEN = 1ULL << 22, > + PERF_OUTPUT_BRSTACKINSN = 1ULL << 23, > + PERF_OUTPUT_BRSTACKOFF = 1ULL << 24, > + PERF_OUTPUT_SYNTH = 1ULL << 25, > + PERF_OUTPUT_PHYS_ADDR = 1ULL << 26, > + PERF_OUTPUT_UREGS = 1ULL << 27, > + PERF_OUTPUT_METRIC = 1ULL << 28, > + PERF_OUTPUT_MISC = 1ULL << 29, > + PERF_OUTPUT_SRCCODE = 1ULL << 30, > + PERF_OUTPUT_IPC = 1ULL << 31, > }; > > struct output_option { > -- > 2.25.4 > -- - Arnaldo