Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp493591ybl; Wed, 21 Aug 2019 23:48:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGg1xicHmgYCSlFXAnwxJ9+ReSlKOHqbnLrjwx67mLPb++cX3jLzUwSF2SOqDZsbC9bbSh X-Received: by 2002:a17:90a:d146:: with SMTP id t6mr3928845pjw.76.1566456512853; Wed, 21 Aug 2019 23:48:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566456512; cv=none; d=google.com; s=arc-20160816; b=tz+69hIMXSWgKHoxZk+VsK6r3hko0oYpwrR4UhkfO7WvAhpETN2Af/skQPt9FgQYqk FtWQ4a5u7d29hS52eQWdyc8fdVHtPiwPYCWxXGsr/uXzmSXwaInN5d/qBBWaaNiz+Sif KV441Jy51ZmNh3xa+tO9UegznJRqjXfLXMj1mGVne/3AnSng/6k6IdTCB5Bi68HhG0V9 8bH6IMN6tl4cVazbaZtgtXJzb24lmxmacD0kSz7zppaTKqTbkqr4z6lDHMeMAGamk2mQ ll6LSXFa+8cmhJTYcyA6uIUecWJ24rXNnk+n74OZyfxZGXZr7x+AGY6pAw00umyqYpXc Mbpw== 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=TtertmLvNhD994TQ2dS81rm18H0RxAIy1U/i+r1aP8c=; b=jh2c6tAiQZ+nbDnAdBbuG2ftfHzyViTlbF90DNqgw7T0aBJajTquwqKlnuwYp3GiL5 R8eKBUzJgF0kXGIgvP4E8g4fcmqTthZNEqzEVtqE6wgkZlWlA3yUDuP9cc7yC6SFo/gI wCYFYBlC4quMxFJLuinEMgOZDQcVgUAika6htjS+cO3hhEQ3Qnen5CZm9kFzd4V0Bg5k i9iQkPDu0T2EaC/+MxVF7Kbfm+IzGx3obis+hyhyzRdUQijT4O3w9jzXrrnvUEP30bN4 P+60OQtPHJUs3eE5YvHfqrJXwTaAZTuiChBYuDJCQbsMue5alLhTEjgaRyNjsLee/wiL CXGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fVn+IM8Y; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w18si16427183pll.132.2019.08.21.23.48.18; Wed, 21 Aug 2019 23:48:32 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=fVn+IM8Y; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730795AbfHVDQg (ORCPT + 99 others); Wed, 21 Aug 2019 23:16:36 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:44218 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726785AbfHVDQf (ORCPT ); Wed, 21 Aug 2019 23:16:35 -0400 Received: by mail-io1-f66.google.com with SMTP id j4so655782iog.11; Wed, 21 Aug 2019 20:16:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=TtertmLvNhD994TQ2dS81rm18H0RxAIy1U/i+r1aP8c=; b=fVn+IM8YO9kCNczHLi2YD/XfNxmhEf2UsVUOkmv4WYU8hT1mAb+2WclAcCAtXXAT69 uOW4AkayV4i+WXYIrra32kM+WRlTpOmvNOqQqHKl/haoonOyxCpomBLzuE1+eROW8XbT srfKPnbYJS6DIz4M9psKQSJWlm3/SGmIU8wxw3yt+VAe/jG/cYhMkjvkVVowKIV4WBFX WR2u/ja18MW73HyyNrP5+3OH1wz4Vvm2Zr82n+CggKaRQBQZS0FWynYy/wiT+2s1hIAs ncuuL2/9p9waVgTPz4ycytEaTAdZTlGjVxEAu5Njw0OejAtaBmII079XLkcazxrbe7YM Hgsw== 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=TtertmLvNhD994TQ2dS81rm18H0RxAIy1U/i+r1aP8c=; b=Lvt5gG06m6VCSvgEpiFbixDKuVjSWNI2cWvozxvsmfmbU9JogwRoaFbRMGknlsSrWe JqhKhwHGNuTb2fesqYbFWeZsckZS2yiblRZO3Z6rUsNrByTaMMBtxylcVhcOC+ac/SUT iwkc6mxkl/DNn6EhIk3DMLu2NFbdYhz9IF8IM/BwByKlgghW6LGPqwROCNmmehCQaZik hq0bzzdGlEjRoEwieTXNOjHmJuFTQPlQ7BjIjiJMSwLZ82lD8qdNZaolLRS2VPLB8c/3 u4KH1xgWo2M2/uxOY0snEouNrdJhVvf8LTFMWaBiFCz6fC6MD7FmvQcke9zU2NN1LnlR yZTg== X-Gm-Message-State: APjAAAUyamKSXkAbd6r3OO+2VXB9zWKwJ40npz97XtoN282DSIQhDCte bWdxKC8ZE9wiXpC0VX3g0g== X-Received: by 2002:a6b:3c0a:: with SMTP id k10mr7951406iob.271.1566443794786; Wed, 21 Aug 2019 20:16:34 -0700 (PDT) Received: from Test-Virtual-Machine (d24-141-106-246.home.cgocable.net. [24.141.106.246]) by smtp.gmail.com with ESMTPSA id 8sm19911023ion.26.2019.08.21.20.16.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Aug 2019 20:16:32 -0700 (PDT) Date: Wed, 21 Aug 2019 23:16:30 -0400 From: Branden Bonaby To: Harry Zhang Cc: KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "sashal@kernel.org" , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 3/3] tools: hv: add vmbus testing tool Message-ID: <20190822031630.GA37262@Test-Virtual-Machine> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Thu, Aug 22, 2019 at 01:36:09AM +0000, Harry Zhang wrote: > Tool function issues: Please validate args errors for '-p' and '--path', in or following validate_args_path(). > > Comments of functionality: > - it's confusing when fuzz_testing are all OFF, then user run ' python3 /home/lisa/vmbus_testing -p /sys/kernel/debug/hyperv/000d3a6e-4548-000d-3a6e-4548000d3a6e delay -d 0 0 -D ' which will enable all delay testing state ('Y' in state files). even I used "-D", "--dis_all" param. > - if we have subparsers of "disable-all" for the testing tool, then probably we don't need the mutually_exclusive_group under subparsers of "delay" > - the path argument (-p) could be an argument for subparsers of "delay" and "view" only. > > Regards, > Harry > So I made the choice to keep disabling the state and disabling delay testing seperate, because once we start adding other testing options you wouldn't want to inadvertently disable all testing especially if you were doing more than one type of test at a time. So with your configuration 'python3 /home/lisa/vmbus_testing -p /sys/kernel/debug/hyperv/000d3a6e-4548-000d-3a6e-4548000d3a6e delay -d 0 0 -D ' this would stop all delay testing on all the devices but wouldn't change their test state to OFF 'N'.So thats why I have the option -s --state to change the state to Off with a -s 0. Then to disable all types of testing and change the state to OFF thats where the 'disable-all' subparser comes in. with: 'python3 /home/lisa/vmbus_testing disable-all For that last point I don't understand what you mean, are you saying it would be better to have something like this using delay as an example? 'python3 /home/lisa/vmbus_testing delay -p /sys/kernel/debug/hyperv/000d3a6e-4548-000d-3a6e-4548000d3a6e' If thats what you mean I figured it was better to make the -p accessible to all test type so I made it apart of the main parser. This would allow us to just have it there once instead of having to make a -p for every subparser. Also maybe I need to change the examples and the help text because with the -D option for delay you wouldnt actually need to put in the path. As 'python3 /home/lisa/vmbus_testing delay -d 0 0 -D ' would suffice to stop delay testing on all devices; -E would enable it for all devices and change the state to On 'Y' if it wasn't already. let me know your thoughts branden bonaby