Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21860004ybl; Mon, 6 Jan 2020 12:48:23 -0800 (PST) X-Google-Smtp-Source: APXvYqxbjLh2invvtctndv4JBKge54ue2RMZlmbxf7V7pbkR35pIxOXWFdV2BJGplO+Q8nNq2x+4 X-Received: by 2002:a05:6830:1199:: with SMTP id u25mr111164659otq.344.1578343703794; Mon, 06 Jan 2020 12:48:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578343703; cv=none; d=google.com; s=arc-20160816; b=KqfJq4B5ghRYQZW0jvv5wgvkuBmIWc3U7KcykNud8r9RTM8rFCiXKUGMswvHZZrPWO ie8QctOC96UcFscN415uiLBL8d1oQhpz/jLEkjOvcpz1J7jMBIq+DgQzao7qYWzgTAOT D1PbLTcudR0E5Ju81ef/YoeND3rRRAYGbTYM5xnly/Nj4DI7RSiKR2tS9fSHPVVSC+VW VnHQe6Q+nbNxJfhmcWfZL6A7TZNOyhCAiVObE80/nW82Rt0STBQe5yK7GNcQNkIBSgbY XCH/u4VQa7VNu12kvVpXB/RwnGLwywQZodZC87qjygD92c8Y17iJ+w1KIlKBffByHI3V is/A== 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=DHIwKB1SdWvG9S5/QAvd4TjIognysn5YuV1n6f7gju4=; b=Rz3QoHCdIgV5I1dxqUuz1YqZs4bfQ/Q0SdXV2wCUVkCcBVuhfy7sK6h6VtN4clWiJb 23bDRGkaeQ8PslFIVMbnSFamAamCjcgDrp79kHnj/uEGbmipbtIPWj7MxeI3u6wPB77U Lb//bDlrZoHzNiiDuD/w1Q2KNWAYtlo0Z7yEad5sMA9wNWaSIIvQEIlc76nuuBE7dUAX ocQ3WlouZgc/Ol5tD73yg36jg6SsrzGSjhoNVQo8VLxn7SDHrZ10kpU8b2PTlrABxr2K ueQG4NhILTlp37IDKJtyVlXWEf6ZjQsSS6+EN7ox6ha1SGQFwomevbC56q1bWuK4UTjv X50g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=Ra6NkQtF; 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 j18si36861256otq.275.2020.01.06.12.48.10; Mon, 06 Jan 2020 12:48:23 -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=@ziepe.ca header.s=google header.b=Ra6NkQtF; 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 S1726893AbgAFUrS (ORCPT + 99 others); Mon, 6 Jan 2020 15:47:18 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:40514 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726657AbgAFUrS (ORCPT ); Mon, 6 Jan 2020 15:47:18 -0500 Received: by mail-qk1-f193.google.com with SMTP id c17so40715210qkg.7 for ; Mon, 06 Jan 2020 12:47:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=DHIwKB1SdWvG9S5/QAvd4TjIognysn5YuV1n6f7gju4=; b=Ra6NkQtFY7ijfnuXcAGbxOh84AXs0GWCp722hpltolpulCuDmOLw8xBTEKXWQtdU+h 2OGkYYMcxBKG2t7aYoNXT7nLc6Ti0my91ZM3b+texHVG5h/wSGkOic3KAWj47Ry08SHn R7Dp/dPAv3KbpsRpBkV/2WwjI1BrSDy/eZugBIFEG/6s5dE5gmiqNAkkExzhPnpE3IJI jnoj1PE/njE4mZgeMqGQJfCILswzX/1AI4LO9cAS3dpvOPX5nTS6mGoC4lRRGTzVL6nY dRkDX701YnWJcV1QYJYEP2mjxIraSqA6JbePQEroGvKRZGaXUwws0WuQSZZRD2tXVRit dadA== 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=DHIwKB1SdWvG9S5/QAvd4TjIognysn5YuV1n6f7gju4=; b=LQkStbOAge8QHONrOkYvo0nTFt/GxcengozVNjYGeRYB1K+MyMBU05ElPioD1P14mM +vKpE36EINBt2wDKai1V4Iy1nwAlaCjWbNE4sWt19ppEqcVsmKMfXi0T+83aqCZBUbEe KlwFSUQvxGZwKH2H2Bn27S73B36ZB627jr0Lin1+pFbZ3nIUUhSwyq1dktRXFUD2O2KW jlurBTBz1DmtI3KmsygTWf2v5n1yA1RwsBI+p61lqzTezXJ6KuRcTYIw6YgYaf1ASdf3 NeqnS8C1joRPbYQBIQnxjgiaNIRpLBMPJhF9xe0eHk5Vp2FpqnhEO9trfFlOxOmf+smR 8V8A== X-Gm-Message-State: APjAAAVZo/O0OqM2mshCYCLuh2oT+OaNk/ZJCHtJn17JGBYXZIKSv+Xz GTy3RfpRiQtzqWekbwwh9nt95w== X-Received: by 2002:a05:620a:143a:: with SMTP id k26mr85511562qkj.450.1578343636899; Mon, 06 Jan 2020 12:47:16 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-68-57-212.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.57.212]) by smtp.gmail.com with ESMTPSA id d184sm13598598qkb.128.2020.01.06.12.47.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Jan 2020 12:47:16 -0800 (PST) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1ioZHP-0007G2-J2; Mon, 06 Jan 2020 16:47:15 -0400 Date: Mon, 6 Jan 2020 16:47:15 -0400 From: Jason Gunthorpe To: Steven Rostedt Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Sudip Mukherjee , Ingo Molnar , Namhyung Kim , Masami Hiramatsu , Linux Trace Devel , LKML , Linus Torvalds , Konstantin Ryabitsev , users@linux.kernel.org Subject: Re: [kernel.org users] [RFC] tools lib traceevent: How to do library versioning being in the Linux kernel source? Message-ID: <20200106204715.GA22353@ziepe.ca> References: <20200102122004.216c85da@gandalf.local.home> <20200102234950.GA14768@krava> <20200102185853.0ed433e4@gandalf.local.home> <20200103133640.GD9715@krava> <20200103181614.7aa37f6d@gandalf.local.home> <20200106151902.GB236146@krava> <20200106162623.GA11285@kernel.org> <20200106113615.4545e3c5@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200106113615.4545e3c5@gandalf.local.home> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 06, 2020 at 11:36:15AM -0500, Steven Rostedt wrote: > On Mon, 6 Jan 2020 13:26:23 -0300 > Arnaldo Carvalho de Melo wrote: > > > So, we have: > > > > https://www.kernel.org/pub/linux/kernel/tools/perf/ > > > > trying to mimic the kernel sources tree structure, so perhaps we could > > have: > > > > https://www.kernel.org/pub/linux/kernel/tools/lib/{perf,traceevent}/ > > > > To continue that directory tree mirror? > > Wouldn't that become a bit of manual work. Unlike perf, the versions > will not correspond to the Linux kernel versions. They would need to > follow library versioning. > > It would at a minimum require new scripting to get this right. If it is not tightly linked to the kernel and is just a normal library, you might consider using github. This is what we do for the rdma user space and it works well. We still take patches from the mailing list flow, but do use a fair amount of the github stuff too: https://github.com/linux-rdma/rdma-core With github actions now able to provide a quite good CI it covers a lot of required stuff for a library in one place, in a way that doesn't silo all the build infrastucture. If you are interested in how we set it up I can write a longer email. Regards, Jason