Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp817471ybg; Tue, 9 Jun 2020 13:42:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUwoBOlYT4VywWJ6jndBSKVX+0p3FPkyNzS7My4gpv1uYovdAC3MnjBDA0go0KU0c0XLvn X-Received: by 2002:a17:906:8294:: with SMTP id h20mr182905ejx.17.1591735320727; Tue, 09 Jun 2020 13:42:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591735320; cv=none; d=google.com; s=arc-20160816; b=HJsr4rsVAZ131D20HnGerSVUCgNUSloJZPx2cPeCreRDJse0urxK2kPHLpBBdVsTId d/rU4VEQBhmudiN/0lzefj4hNN6hiXBMF8WBbI/dQcFahtNl+B4FZRSPwVhrbiOKbMBw vT2TdIvAZD5gBcKLzhPD4Fcpj6a0SaAQsB/bMZCpHuCERE1BUp9wyF/5pzrgLC4dqd+r i3tfo2WhjxAvrHaiwRPtRoBWl5M41UCASl6e57x3uHkmfHxakvNE/sdI/y3UeJChNwoc Fd6FvuIFpyQAwf4oY41QoYQnkqG7YvQu6mRpxQ54lXJ23JgJpxItBzUMWIufBVXDpm4H Ptkw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=3a1cFohP5xw0SV+VDh6kY4yNG0l/fwhW7wJHz/37M90=; b=P5ky8Mv+RqnFtJ+Zhz+TX8wxBZSgIGY9M66S3r4JPGIY1HPSZOAXza70OazplwnQDT jaPG0/H589MB+wfr4rsw6T6VeRFyRhRNH1AkTwh8KM/T2g8CRUY8iopnoQuf/6oLzxGW QmFXAzCnxZe+uYaSNT1sz0O5AKwZ1jMJpJs2+hV7Mh6mEer29Ej8ASpcnN7nbzDI7k1S DpPvkbyL0Tj53GwKCKqTWsKIA4pFKuW/taRmPEQTK39VBrLqdDJ0WdWNvhTlj5y11pQs dY9wlOSHyaYVSSAmv9RCWKj2k9tSKModzW2oGYY6wTIDerMMUOdL60jBWcgpZP/yenAJ TT3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=cHeNgvM5; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e20si11525404ejx.262.2020.06.09.13.41.38; Tue, 09 Jun 2020 13:42:00 -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; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=cHeNgvM5; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387584AbgFIUZJ (ORCPT + 99 others); Tue, 9 Jun 2020 16:25:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728272AbgFIUZH (ORCPT ); Tue, 9 Jun 2020 16:25:07 -0400 Received: from mail-oi1-x243.google.com (mail-oi1-x243.google.com [IPv6:2607:f8b0:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D106C05BD1E for ; Tue, 9 Jun 2020 13:25:07 -0700 (PDT) Received: by mail-oi1-x243.google.com with SMTP id k4so18456996oik.2 for ; Tue, 09 Jun 2020 13:25:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=3a1cFohP5xw0SV+VDh6kY4yNG0l/fwhW7wJHz/37M90=; b=cHeNgvM5Hf+c4H85+zrIqqKMKChQ7S50KExa9V4xoBcS5wkf0/gAR35whBaF7VbuxQ lGrGPr3/7TrOiAjgfs8MYAx01JEZu4oaU2/w+3/dZGAWBuwZgJdy2L4izk6jjv2TfY3w tzw/q7Wwg/rLiFR4hdka4xMMe6NWOSMxPTY+0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=3a1cFohP5xw0SV+VDh6kY4yNG0l/fwhW7wJHz/37M90=; b=nGyvGLpe7IlRIfWAptez/RdQS8gswQNhbW4bo7ed+3Q7TeFQ6CW0DIodoQDC4pIkm7 7KWl2b5lwNGIkhyyAdwrM6zJB/bu26PyCa3NLHqQZXORQ7DzbEiLrIPb6a9QsZdz2i1M /keO3swglbkpq6d3aef5/OSTi6bWz+2HmHTupSIkW7pmmLquUiSXqsQYtGKBaPT9g6+T De0D7uGAFnvOfUvl8RfWXxXVQJiY7Kh0WxaE9iicAELLi4HaUpcgkHrpHwlXXsr/g34+ qVIC2wzFZUcsloXJdJAA6t0trD90nWWT2Vdo2ek1+twTdBpwG8/zINSrfu8o0pcf7wYU BabA== X-Gm-Message-State: AOAM533HWSun+za0zWT/ienGTd0yqT9V62OtL8QzT011lh8Jo2gq5tQS 8uy3FKoQJmYw50DYiE5qpbUpEw== X-Received: by 2002:aca:4757:: with SMTP id u84mr30544oia.95.1591734306589; Tue, 09 Jun 2020 13:25:06 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id n60sm2385638otn.75.2020.06.09.13.25.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Jun 2020 13:25:06 -0700 (PDT) Subject: Re: [PATCH v4 kunit-next 0/2] kunit: extend kunit resources API To: Brendan Higgins , Alan Maguire Cc: David Gow , Patricia Alfonso , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , Linux Kernel Mailing List , Shuah Khan References: <1590788781-1895-1-git-send-email-alan.maguire@oracle.com> From: Shuah Khan Message-ID: Date: Tue, 9 Jun 2020 14:25:05 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/5/20 3:20 PM, Brendan Higgins wrote: > On Fri, May 29, 2020 at 2:46 PM Alan Maguire wrote: >> >> A recent RFC patch set [1] suggests some additional functionality >> may be needed around kunit resources. It seems to require >> >> 1. support for resources without allocation >> 2. support for lookup of such resources >> 3. support for access to resources across multiple kernel threads >> >> The proposed changes here are designed to address these needs. >> The idea is we first generalize the API to support adding >> resources with static data; then from there we support named >> resources. The latter support is needed because if we are >> in a different thread context and only have the "struct kunit *" >> to work with, we need a way to identify a resource in lookup. >> >> [1] https://lkml.org/lkml/2020/2/26/1286 >> >> Changes since v3: >> - removed unused "init" field from "struct kunit_resources" (Brendan) > > Shuah, it looks like you haven't sent a PR to Linus yet. Would you > mind picking this up for 5.8? > Applied to linux-kselftest kunit branch for second update for Linux 5.8-rc1 thanks, -- Shuah