From patchwork Fri Mar 13 10:02:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Barbu X-Patchwork-Id: 45763 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f198.google.com (mail-we0-f198.google.com [74.125.82.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F3D45214BF for ; Fri, 13 Mar 2015 10:03:15 +0000 (UTC) Received: by wesp10 with SMTP id p10sf15722918wes.3 for ; Fri, 13 Mar 2015 03:03:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=BHoK8s7DoFVAeWc8jpCPFLFUp91LnPSeHq81aGXyghg=; b=RE+KNk9sSCMDVUJnQxk1zeANR42LyFQYdOuHpL5YPDooNnghjx35Goy5lNjIEk/Ucm jU5HeU067qArGbHgjOPKH5opF1gl8pBnpfSQv4z2d/UeCQY4h2c+lSI25VdtAf+U8xTs fze67SoCLI5F7dZO6oTasTZnkAepgG4L6sQJT3Q4tMVG3SsuPBrAcVjc0hW8IClCQ1KE L5NGn2tI3pzEtJNgoKz+IgJbG9m/hYVUeJITshOC5f3Dg6ioPoDGm9E03egE2fL8dlJf NKBM8n6b7lFtHtoViCGm7M5Xr0DV0f9/kGHiC7ZuwWS2+1l1XuoFWD+91skf1oUgYYWJ Zg5A== X-Gm-Message-State: ALoCoQnzQhzwod5zBps5IuFSCRVghjSbGwuy6rVZQKK5wpcB9A/7AS9x/rxCfFMCfjBTh4zqp8qM X-Received: by 10.180.87.166 with SMTP id az6mr236803wib.1.1426240976457; Fri, 13 Mar 2015 03:02:56 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.115.135 with SMTP id jo7ls425148lab.101.gmail; Fri, 13 Mar 2015 03:02:56 -0700 (PDT) X-Received: by 10.152.43.102 with SMTP id v6mr36569393lal.1.1426240976012; Fri, 13 Mar 2015 03:02:56 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id cd8si1019736lbd.142.2015.03.13.03.02.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Mar 2015 03:02:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by lamq1 with SMTP id q1so21440217lam.12 for ; Fri, 13 Mar 2015 03:02:55 -0700 (PDT) X-Received: by 10.152.121.33 with SMTP id lh1mr42776524lab.86.1426240975880; Fri, 13 Mar 2015 03:02:55 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp792188lbj; Fri, 13 Mar 2015 03:02:55 -0700 (PDT) X-Received: by 10.140.165.76 with SMTP id l73mr59625884qhl.16.1426240974692; Fri, 13 Mar 2015 03:02:54 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id o6si1459471qge.70.2015.03.13.03.02.53 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 13 Mar 2015 03:02:54 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YWMQd-0005Ge-NV; Fri, 13 Mar 2015 10:02:51 +0000 Received: from mail-lb0-f177.google.com ([209.85.217.177]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YWMQR-0005Fz-Fk for lng-odp@lists.linaro.org; Fri, 13 Mar 2015 10:02:39 +0000 Received: by lbdu14 with SMTP id u14so21727149lbd.0 for ; Fri, 13 Mar 2015 03:02:34 -0700 (PDT) X-Received: by 10.112.134.106 with SMTP id pj10mr43692771lbb.58.1426240953942; Fri, 13 Mar 2015 03:02:33 -0700 (PDT) Received: from cipriantemp.enea.se (sestofw01.enea.se. [192.36.1.252]) by mx.google.com with ESMTPSA id dz1sm295488lbc.47.2015.03.13.03.02.32 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Mar 2015 03:02:32 -0700 (PDT) From: Ciprian Barbu To: lng-odp@lists.linaro.org Date: Fri, 13 Mar 2015 12:02:15 +0200 Message-Id: <1426240935-28353-3-git-send-email-ciprian.barbu@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1426240935-28353-1-git-send-email-ciprian.barbu@linaro.org> References: <1426240935-28353-1-git-send-email-ciprian.barbu@linaro.org> Subject: [lng-odp] [RFC 2/2] validation: schedule: make sure SCHED queues get freed from the scheduler X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ciprian.barbu@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 This seems to be necessary only for linux-generic; SCHED type queues are not marked as free in odp_queue_destroy, they need to be processed by the scheduler so that the internal priority queues also get drained. Signed-off-by: Ciprian Barbu --- test/validation/odp_schedule.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/validation/odp_schedule.c b/test/validation/odp_schedule.c index b86f997..169c79e 100644 --- a/test/validation/odp_schedule.c +++ b/test/validation/odp_schedule.c @@ -645,6 +645,11 @@ static int destroy_queues(void) for (i = 0; i < prios; i++) { for (j = 0; j < QUEUES_PER_PRIO; j++) { char name[32]; + odp_event_t ev; + + ev = odp_schedule(NULL, ODP_SCHED_NO_WAIT); + if (ev != ODP_EVENT_INVALID) + odp_buffer_free(odp_buffer_from_event(ev)); snprintf(name, sizeof(name), "sched_%d_%d_n", i, j); if (destroy_queue(name))