From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D6C3C00449 for ; Fri, 5 Oct 2018 15:47:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 501942087D for ; Fri, 5 Oct 2018 15:47:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="YCuISw8U" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 501942087D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728762AbeJEWq7 (ORCPT ); Fri, 5 Oct 2018 18:46:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:45994 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727572AbeJEWq7 (ORCPT ); Fri, 5 Oct 2018 18:46:59 -0400 Received: from jouet.infradead.org (unknown [179.97.41.186]) (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 AAF802087D; Fri, 5 Oct 2018 15:47:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1538754462; bh=bBV8FponXMOfb9gnjNVpUutEESSCwAN7sb4nSfxo5N0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YCuISw8UKZfpclO9tJminGBtshDYyEGWUUbtCkclrdZlQ70GFD3uwb7E0A17pNAj2 lxQzFA5WqNyOyj23eRSjSPaOPDhGB8keGjNE4A1ZXjSDru1TiIroyiSzNvvUM8zQnY l+blgmLYJfU8LSsHTeDjDOxkQUu0VGquT/Q2YLfI= Received: by jouet.infradead.org (Postfix, from userid 1000) id 6970B141DDC; Fri, 5 Oct 2018 12:47:40 -0300 (-03) Date: Fri, 5 Oct 2018 12:47:40 -0300 From: Arnaldo Carvalho de Melo To: Steven Rostedt Cc: LKML , Jiri Olsa , Ingo Molnar , Namhyung Kim , Tzvetomir Stoyanov , Linux Trace Devel , Colin Patrick McCabe Subject: Re: [PATCH v3] tools/lib/traceevent: Replace str_error_r() with an open coded implementation Message-ID: <20181005154740.GD20250@kernel.org> References: <20181002175539.2ac894c7@gandalf.local.home> <20181005113056.55b23c31@gandalf.local.home> <20181005153731.GC20250@kernel.org> <20181005114516.68f47767@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181005114516.68f47767@gandalf.local.home> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, Oct 05, 2018 at 11:45:16AM -0400, Steven Rostedt escreveu: > On Fri, 5 Oct 2018 12:37:31 -0300 > Arnaldo Carvalho de Melo wrote: > > > Em Fri, Oct 05, 2018 at 11:30:56AM -0400, Steven Rostedt escreveu: > > > Bah, I now get warnings that sys_nerr and sys_errlist are deprecated. > > > > > > OK, so going back to just using the racy strerror() should be good > > > enough, as this incompatibility with strerror_r() is a disaster! > > > > I've been there, done that... ;-) Check: > > > > tools/lib/str_error_r.c > > tools/lib/bpf/str_error.c > > > > The trick: have this function in a separate file, so that _GNU_SOURCE > > doesn't get in the way... > > > > Yep, I've been looking at these. I'll need to add yet another version, > so that we can have it for the external libtraceevent. I'll be sending > out a patch shortly. Unfortunately, yes, due to licensing and because we don't have a liblinux with the things in tools/lib/*.c, we need to relicense that as at least LGPL 2.1 :-\ Lets start here, whoever reads this message, would you have a problem with relicensing what is in tools/lib/*.c and tools/lib/api/ as LGPL 2.1? - Arnaldo