Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp185082pxa; Fri, 31 Jul 2020 09:20:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUFcByAz/4WbMpsuul5JXulLNvultFujUQy3FmyT8EaufKAcPesmV+looLN1VUMp+iHBmM X-Received: by 2002:a17:906:868d:: with SMTP id g13mr4795878ejx.242.1596212453980; Fri, 31 Jul 2020 09:20:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596212453; cv=none; d=google.com; s=arc-20160816; b=qdhmv/sNGRlgUF6KHIhymzhNXEueKPB5Z9Bm6MaS1lD/7pni3ZPR0AeIi36aImpjk3 IXBK04/cTGfB9boQfkGckhRRgp/OHZopG46sCcWuaNxAMfBd2esSoZ5soWDvSAb4gpfN VOfijYKRy67sG6Ibjv9lgmiBEaS04SHMdOIDZFPFuvjJ1YcGlRtxEmryNUhMmJB4qaoA f4XACRKMFHqFbKdAjKv7rKficSpHFeEnm2Pam1AgZM5q7U5FX4fsRqbz2OeWnBUtck9A 3lW9MSQtdUzncrtZnt7v+j75tmo4tU1vZy2Hif5dXA2qNj+g/S5Q046a2zgJp+xml60w ZMQQ== 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=4JGruRzvy58TUGMzqZM7NtmLoDhduxdLJhWQsK30czQ=; b=pvS9b+5ldt/REkBCJRIA1zhWjwVdDbIS0r6Q60T9D5wNHpKgcBUp4few9OYlefcQCW YBDF7WInTcUDeIupcw5zg9ouRnDJmtf68QDkAcYledog5QxyiwJPK++O0KRVbtnF/u6Q /Vkd1zUM5LCUcW7nunsLCLWo4kRslLxDO66QQ5BaDh3JCKpKqx8mysoW2NvF0uh5E+pz HSOrQf/H/gT9EEjPyO7vfkBiUlkAvKwN6dqVTZojvSP2BifiNHedc4vbv51i5UACfYEB CQ+OdALkhqwb1dy6HlmzJwjbBhaRB11sVq/YIoDxt88PngZypSelu0yA/7XKYUCZB/Ra tXyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UHp3j9n0; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k17si5387813ejz.217.2020.07.31.09.20.30; Fri, 31 Jul 2020 09:20:53 -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=@redhat.com header.s=mimecast20190719 header.b=UHp3j9n0; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731429AbgGaQUL (ORCPT + 99 others); Fri, 31 Jul 2020 12:20:11 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:21509 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726502AbgGaQUK (ORCPT ); Fri, 31 Jul 2020 12:20:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596212409; 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=4JGruRzvy58TUGMzqZM7NtmLoDhduxdLJhWQsK30czQ=; b=UHp3j9n0gt5XThfGzwXgUTFWUI0f/bekhoQGrlKNLbEDDJdwQxgXOOs2eAXN2EIQL7X/Xl EYOEGd0PkjQHP96/CWsVkz2mtRJDnRDHV4DNFtyIfsy3Mk9mqgJzHzoBJLMlU4Vlx8YW3h ZyubK/rbodYDU1P6d+c6aDxPusWuTiE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-449-_AxMlTcSNmCOakb8vS8Clw-1; Fri, 31 Jul 2020 12:20:05 -0400 X-MC-Unique: _AxMlTcSNmCOakb8vS8Clw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 62574109EB53; Fri, 31 Jul 2020 16:19:42 +0000 (UTC) Received: from krava (unknown [10.40.192.26]) by smtp.corp.redhat.com (Postfix) with SMTP id CDDC374AA1; Fri, 31 Jul 2020 16:19:38 +0000 (UTC) Date: Fri, 31 Jul 2020 18:19:37 +0200 From: Jiri Olsa To: Andi Kleen Cc: Jiri Olsa , Arnaldo Carvalho de Melo , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan , Ian Rogers , David Ahern , =?iso-8859-1?Q?Genevi=E8ve?= Bastien , Wang Nan , Jeremie Galarneau Subject: Re: [PATCH 1/6] perf tools: Add clockid_name function Message-ID: <20200731161937.GC4296@krava> References: <20200730213950.1503773-1-jolsa@kernel.org> <20200730213950.1503773-2-jolsa@kernel.org> <20200731153337.GB1299820@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200731153337.GB1299820@tassilo.jf.intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 31, 2020 at 08:33:37AM -0700, Andi Kleen wrote: > > diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h > > index f486fdd3a538..126dad238ee3 100644 > > --- a/tools/perf/util/util.h > > +++ b/tools/perf/util/util.h > > @@ -62,4 +62,6 @@ char *perf_exe(char *buf, int len); > > #endif > > #endif > > > > +const char *clockid_name(clockid_t clk_id); > > If it's a generic "util" it probably shouldn't live in builtin-record.c true, but it's where all the clockid data is, I'd need to move parse_clockid as well, I'll check thanks, jirka