Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1757927ybk; Mon, 11 May 2020 03:38:08 -0700 (PDT) X-Google-Smtp-Source: APiQypIxPo6HnHKn5vPJue7psFDik4mtHI3RcNU5P5MiXkX+xtOeMhLNxzJHMAOg8saa0BWctGop X-Received: by 2002:aa7:d4c1:: with SMTP id t1mr13304299edr.175.1589193488745; Mon, 11 May 2020 03:38:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589193488; cv=none; d=google.com; s=arc-20160816; b=F6JN4+Mmz1iV3p0+pWsq3c41A8k6JPID3BejbnzczgdzCt4c3CvAu8EWEDX2GPLSb6 Zq3RL04q+dtH0FSdRsKLy5WwtSimp0lfw7Fb/ZIxT1xaHHD/xxe+iIRqxV5knLRSFHLT qS212JMIv0GGKjU20h3c7Spth6FmtbH2pjBci2qKuOIy3P9saPMKtqsLsMTupETkpofb 4kuMkgx8as5ZnFLyuUH+Hm+cIUS9YdYUw9PHoLZUWIqEYjMEcikpJ1A9ozylLKe26Mgy 97e32dDFvNq3tkgtwAcd5NaeIPAzPQ8QrS1BTjk3rJaaRj5UK53uVoH7RsSagG+ivSrm t0ig== 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:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=5vY6m7l0XsXR+6a0rS4gAi4wuAEWw+qJw6pi2p1l7NI=; b=J/FwWzRoVzcbPRyj3amMIHsO3tgFT/wocE8kLYnZRViIWqBa4mKuhMfgYgqBs6xTOQ vtG0GZmsjpcT8RIhe8DtBXzUwmv0g7HwRy/dD5XZB1FupdGPclWkjMv7OX4VYmyyoavF 0h5tr9MrjhKrWylvlJm+rjz5cifKZHS4SikBnWtd6Ct6MKAoNF0m3JS8Lw+BQ17WuQ6G Hc+8AV44nRxdUyAYQ/6/6r1EsxmfYOeCoe5T8sur36mE6s5cmlapQmRVtHLXxiHoHstp tOJR6n23wBUmrIf+rhTkElH4MHv/O8cIiTSyXbz6AfjdJq2ha2qX9lI4c/+GSRYDtLcR 0wpg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ca25si5385883edb.389.2020.05.11.03.37.45; Mon, 11 May 2020 03:38:08 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729491AbgEKKfA convert rfc822-to-8bit (ORCPT + 99 others); Mon, 11 May 2020 06:35:00 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([146.101.78.151]:33448 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728613AbgEKKe7 (ORCPT ); Mon, 11 May 2020 06:34:59 -0400 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-165-Y6aTlilXPbm7gmL1oEH7BQ-1; Mon, 11 May 2020 11:34:55 +0100 X-MC-Unique: Y6aTlilXPbm7gmL1oEH7BQ-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 11 May 2020 11:34:55 +0100 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Mon, 11 May 2020 11:34:55 +0100 From: David Laight To: 'Masami Hiramatsu' , Xiao Yang CC: Steven Rostedt , Shuah Khan , "linux-kselftest@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Tom Zanussi , Li Philip , Liu Yiding Subject: RE: [PATCH 3/3] selftests/ftrace: Use /bin/echo instead of built-in echo Thread-Topic: [PATCH 3/3] selftests/ftrace: Use /bin/echo instead of built-in echo Thread-Index: AQHWJ3Z3OA5bC6hjSEW0AS/lPBzMtKiisGaQ Date: Mon, 11 May 2020 10:34:55 +0000 Message-ID: References: <158834025077.28357.15141584656220094821.stgit@devnote2> <158834028054.28357.398159034694277189.stgit@devnote2> <5EB3AE7C.5@cn.fujitsu.com> <20200507181505.3e8369ee39f14d9c74ec986b@kernel.org> <5EB8FD31.9020906@cn.fujitsu.com> <20200511182752.c83f3454bcb3e205cf2bda4a@kernel.org> In-Reply-To: <20200511182752.c83f3454bcb3e205cf2bda4a@kernel.org> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masami Hiramatsu > Sent: 11 May 2020 10:28 ... > > We may not avoid fixing related failures after your change: > > 1) We have to reuse built-in echo (do alias echo=echo) if we want to > > test common_pid for histogram. > > 2) We have to reuse built-in echo if some new tests want to interpret > > backslash escapes in future. > > 1) yes, that's what I need to do for avoiding "pid" key histogram > (but I think we should have better way to test it) > 2) No, in that case you should use "/bin/echo -e" explicitly. > dash's built-in echo doesn't support it. > > > Is it simple to provide two implementations of echo?(built-in echo and > > echo command?) and then just apply echo command for kprobe_syntax_errors.tc? > > Hmm, OK, there might be another reason we reconsider this patch. > > - Alisasing echo (this patch) can avoid dash related issues but > this also makes "echo" running in another process implicitly. > > - Using /bin/echo for backslash explicitly will be missed unless > user runs it on dash, but it will keep "echo" in same process. Why not change to use printf - probably a builtin in both shells? David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)