From patchwork Tue Aug 14 15:05:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 10565817 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 F05F6139A for ; Tue, 14 Aug 2018 15:05:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E29A22A05E for ; Tue, 14 Aug 2018 15:05:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D6AD32A0E6; Tue, 14 Aug 2018 15:05:35 +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 8E2E72A05E for ; Tue, 14 Aug 2018 15:05:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 770896E28A; Tue, 14 Aug 2018 15:05:33 +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 955056E284 for ; Tue, 14 Aug 2018 15:05:31 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id r16-v6so17485669wrt.11 for ; Tue, 14 Aug 2018 08:05:31 -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=AmQ4jUD/DCQG/DQqadHZ6xjUZKHhUw2VXBJ71AblBQ4=; b=cCkKn7yxift0aWX7QONmiG/oK9IFLz4TS/voKX4KYtGHVfnCKbGU/Ugbev04l760Id JdMHxIczfENMOkyvVdTrKcZpoFcNhEC0p9kf0ueo9P9CpeWuwmBrRh2eS0xPICiJyfXe 5LYP9dbOcNwQD3T/weGZCvA6YjT+FCdanlAQ/ZRQdZlDtKnnn5tCRFPRXvmk3CIJpEMb Zyxb8zgNErlB8GEwcmRorH/F+2t89C2t28epyS8UoRk9Yi3hvPsK6xJnelBBrIJWJekU HqbN2xVj5zU4l5xjckbKkWzG7umJ+uQWUD841FmWAEbwiCwmznAUghNuszq9ZET9v+Y3 Bzhw== X-Gm-Message-State: AOUpUlHZyILfFNcGxGhEWUyMT1oG9Wvf/aGpW8pe37b3l0YDVfU+dnKZ PbIqBy2amkj/hvqwwghn4qgMYQ== X-Google-Smtp-Source: AA+uWPz5UOwHIJ79KHLVVpqwhJWDcekRsdCbxvGLsOB+jrvMKSjIziXiv3IlXBbEzxKF4Q8S2nSKfw== X-Received: by 2002:a5d:4e92:: with SMTP id e18-v6mr14511659wru.32.1534259130328; Tue, 14 Aug 2018 08:05:30 -0700 (PDT) Received: from localhost.localdomain ([95.144.165.93]) by smtp.gmail.com with ESMTPSA id x82-v6sm39942383wmd.11.2018.08.14.08.05.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Aug 2018 08:05:29 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: igt-dev@lists.freedesktop.org Date: Tue, 14 Aug 2018 16:05:14 +0100 Message-Id: <20180814150519.20204-3-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180814150519.20204-1-tvrtko.ursulin@linux.intel.com> References: <20180814150519.20204-1-tvrtko.ursulin@linux.intel.com> Subject: [Intel-gfx] [PATCH i-g-t 2/7] 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 ead91b0f009b..e5eb1ef70a35 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; }