From patchwork Wed Sep 5 13:49:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 10588879 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EE3EB5A4 for ; Wed, 5 Sep 2018 13:49:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE83E2A1E7 for ; Wed, 5 Sep 2018 13:49:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D33A12A209; Wed, 5 Sep 2018 13:49:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 893482A1E7 for ; Wed, 5 Sep 2018 13:49:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EE8386E4A6; Wed, 5 Sep 2018 13:49:53 +0000 (UTC) X-Original-To: Intel-gfx@lists.freedesktop.org Delivered-To: Intel-gfx@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id E4CCA6E4A1 for ; Wed, 5 Sep 2018 13:49:50 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id w11-v6so7758350wrc.5 for ; Wed, 05 Sep 2018 06:49:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=u95euLJSsSvGtHMLx6OZ9r28UQzGdIK8Tk1PuNgDB7k=; b=fCf/43ATIeGjwFbx5LckcBPDXUbKx9xGukP7+4iVa+0jBQYD9LQNRYQyGqx36cgHRG 65V6L26dTiKhb8NbDY5srbtKihyAOgg7oklaRtZhfLAnRGNBihPpUwHxxzZYxs3+2xgx Kih/RvMDKuznZXWBkJys9taYvmEF07WWcA/4f8xgAAEPU5ModnslW+2bliu3Z9GghE88 +WFmPCx2fXpxZByabj5p3aYb4INTValEVVc5R4Tru1ElKEocai2ZCarJBinKfuX6pe2q 98tumv6/l/ZtRiLfkY53j02ByYkXHJ1RwdJzqlnkB8wImTd+Qj4KkEhztgkCbYxDj1OC B84g== X-Gm-Message-State: APzg51ArHkBNMyWnmHR6uXUaqlvQVp882aIqlXVdqpNKtUD7Ck0OkVTz OoP1zr8CSHcl84a5T9do8Pxc5w== X-Google-Smtp-Source: ANB0VdYnP9aTfoSUkNEjZ4BPivdBd3Kb/jV0SWq8jyPBrDdUpXwkZOyiwVHB92fgL/Xr6m8vdHNSvw== X-Received: by 2002:a5d:4089:: with SMTP id o9-v6mr26726080wrp.133.1536155389524; Wed, 05 Sep 2018 06:49:49 -0700 (PDT) Received: from localhost.localdomain ([95.144.165.37]) by smtp.gmail.com with ESMTPSA id j66-v6sm2701639wrj.28.2018.09.05.06.49.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 06:49:49 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: igt-dev@lists.freedesktop.org Date: Wed, 5 Sep 2018 14:49:31 +0100 Message-Id: <20180905134939.2942-6-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180905134939.2942-1-tvrtko.ursulin@linux.intel.com> References: <20180905134939.2942-1-tvrtko.ursulin@linux.intel.com> Subject: [Intel-gfx] [PATH i-g-t 05/13] gem_wsim: Make workload commands case sensitive X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Intel-gfx@lists.freedesktop.org MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Tvrtko Ursulin Need namespace for new commands and I never documented they are case insensitive so it is fine. Signed-off-by: Tvrtko Ursulin --- benchmarks/gem_wsim.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/benchmarks/gem_wsim.c b/benchmarks/gem_wsim.c index b05e9760f419..fe9535df75c6 100644 --- a/benchmarks/gem_wsim.c +++ b/benchmarks/gem_wsim.c @@ -310,7 +310,7 @@ parse_workload(struct w_arg *arg, unsigned int flags, struct workload *app_w) if ((field = strtok_r(fstart, ".", &fctx)) != NULL) { fstart = NULL; - if (!strcasecmp(field, "d")) { + if (!strcmp(field, "d")) { if ((field = strtok_r(fstart, ".", &fctx)) != NULL) { tmp = atoi(field); @@ -326,7 +326,7 @@ parse_workload(struct w_arg *arg, unsigned int flags, struct workload *app_w) step.delay = tmp; goto add_step; } - } else if (!strcasecmp(field, "p")) { + } else if (!strcmp(field, "p")) { if ((field = strtok_r(fstart, ".", &fctx)) != NULL) { tmp = atoi(field); @@ -342,7 +342,7 @@ parse_workload(struct w_arg *arg, unsigned int flags, struct workload *app_w) step.period = tmp; goto add_step; } - } else if (!strcasecmp(field, "s")) { + } else if (!strcmp(field, "s")) { if ((field = strtok_r(fstart, ".", &fctx)) != NULL) { tmp = atoi(field); @@ -359,7 +359,7 @@ parse_workload(struct w_arg *arg, unsigned int flags, struct workload *app_w) step.target = tmp; goto add_step; } - } else if (!strcasecmp(field, "t")) { + } else if (!strcmp(field, "t")) { if ((field = strtok_r(fstart, ".", &fctx)) != NULL) { tmp = atoi(field); @@ -375,7 +375,7 @@ parse_workload(struct w_arg *arg, unsigned int flags, struct workload *app_w) step.throttle = tmp; goto add_step; } - } else if (!strcasecmp(field, "q")) { + } else if (!strcmp(field, "q")) { if ((field = strtok_r(fstart, ".", &fctx)) != NULL) { tmp = atoi(field); @@ -391,7 +391,7 @@ parse_workload(struct w_arg *arg, unsigned int flags, struct workload *app_w) step.throttle = tmp; goto add_step; } - } else if (!strcasecmp(field, "a")) { + } else if (!strcmp(field, "a")) { if ((field = strtok_r(fstart, ".", &fctx)) != NULL) { tmp = atoi(field); @@ -407,7 +407,7 @@ parse_workload(struct w_arg *arg, unsigned int flags, struct workload *app_w) step.target = tmp; goto add_step; } - } else if (!strcasecmp(field, "f")) { + } else if (!strcmp(field, "f")) { step.type = SW_FENCE; goto add_step; }