From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45A16C433DF for ; Tue, 9 Jun 2020 20:25:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 17160206C3 for ; Tue, 9 Jun 2020 20:25:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591734311; bh=Dc2KaBA0YaPvrVSNR7oaxqCSMmXiGjdT9I3+Z3OZxQw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-ID:From; b=nDUKS1lLKhF5VDpbW2Ez/Sk6vHVzIrfMmni/Zgo5K801j/BRynGjIAoepZp+V7NSg CFYKl5/vExXWEQPuRJMjyqvyqWhw8r+Kvpp0aYoSU9JCEGkGGGyHK8hZ+2K4nUsfzI cdMfAD3NAvfzYDsvbmc+K91fcyHVeQnbpQnmgU2k= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387670AbgFIUZJ (ORCPT ); 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-Google-Smtp-Source: ABdhPJzxTh55TjnmOg/XSzXnQ/u8fDQYGX0Tks1gLIZvUQGYGRIMrDcm5uD/nL/rlrEgh2ptqf0H+A== 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