From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 965162F21 for ; Mon, 4 Apr 2022 14:16:34 +0000 (UTC) Received: by mail-ej1-f47.google.com with SMTP id bg10so20289368ejb.4 for ; Mon, 04 Apr 2022 07:16:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=Yrk+LsPAZj6NgBL9bPWTDL2JqqAIRaC05jfjs6HeV6M=; b=C0CQSnrkT94LDeC4aymHxJuLO2rX5kVxd1bwalPdQCHCPhlzw9BgtNCNqGvLj/5NzH +kmPzX98/bS8hRL1+b36hhL1ZLFlcZSqIzfQMQXlaWyMdgFmSsh9Ldf3i2QFiU5DgQOW fQnguE6E2ed4f3QSkRHe613J4wOhuVpuCgoj8YyalA5UcKmsgod7XbwQ+CLmyCvrMSrv khfEP4OlSKcps0B1Vfh70wLkcguDLSLhp9Zc72rDKGCs6sSLadBxPeoUs+tt+dmLS/rn 0ecsQV34R94NtDo1QbGSK6Uob16u/gBZHB1OpULpjjj1SZ/aZqA6CVHTNlV9v0+PwFh+ l+GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=Yrk+LsPAZj6NgBL9bPWTDL2JqqAIRaC05jfjs6HeV6M=; b=rdTTkLARN60D9Ap58IoR21LXFG7pcfnmWaidx94I2+M82N4d8h97mbCzZX9IX36T4N k7ZHRKJWIJ6cIv6NodD4qig+j1f4doVWlQHp8EifO2cKvSU3BXlG3jrhq0NLG845+Yl9 E82skKvqZG6WcgaMOj7u0XHcKat1dhP1kuyuxE+yewOGU2XGVGQGi1OW3axuIx2UUb9G z+7EUY6+Z/XD3s/aaoOAwDHK+TUt0rk8VQLRb7Ip9Ovo6aOvhtWWJasX4W5j2BzIRVjk egnfhPx7/bOtLybS7rQcJCIETRc0q9WaP5Re7CcvsVbtmw65lh3KTADV3NgxvIx+6dgv TpcQ== X-Gm-Message-State: AOAM531EfcY9bxt5uiuE2tkF1sKD2gI1Xzceuc4dpIroP8y/nfZ85wCO OQvqwiJS8+m8KDS7XoHbtwsu/8yzNGE= X-Google-Smtp-Source: ABdhPJwvxYyF0JUDpmRlQHyz90MqCDt9VyxoPybNjJQvz6+gMQG4EbL38QpAT2rrxotiAAc0RzaZoA== X-Received: by 2002:a17:907:7e94:b0:6e4:9d72:a784 with SMTP id qb20-20020a1709077e9400b006e49d72a784mr260209ejc.346.1649081792880; Mon, 04 Apr 2022 07:16:32 -0700 (PDT) Received: from [192.168.0.253] (ip5f5abb55.dynamic.kabel-deutschland.de. [95.90.187.85]) by smtp.gmail.com with ESMTPSA id ga10-20020a1709070c0a00b006dfc7c089f7sm4389965ejc.1.2022.04.04.07.16.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Apr 2022 07:16:32 -0700 (PDT) Message-ID: <66efc2d7-ec85-25af-1499-0dce2a09c3cd@gmail.com> Date: Mon, 4 Apr 2022 16:16:31 +0200 Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: staging: r8188eu: how to handle nested mutex under spinlock Content-Language: en-US To: Dan Carpenter Cc: "Fabio M. De Francesco" , Greg KH , Larry Finger , Phillip Potter , "open list:STAGING SUBSYSTEM" , Linux Kernel Mailing List References: <356c24cf-625b-eea2-2c04-ce132d881cac@gmail.com> <1858641.taCxCBeP46@leap> <2366209.jE0xQCEvom@leap> <617af7b6-eeac-372a-7bbb-828db11a2aa9@gmail.com> <20220404133312.GC3293@kadam> From: Michael Straube In-Reply-To: <20220404133312.GC3293@kadam> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/4/22 15:33, Dan Carpenter wrote: > On Sun, Apr 03, 2022 at 02:18:04PM +0200, Michael Straube wrote: >> On 4/3/22 14:10, Fabio M. De Francesco wrote: >>> For a list of all the paths to a given function you may use Smatch: >>> >>> ./smatch/smatch_data/db/smdb.py ips_leave >>> >>> or >>> >>> ./smatch/smatch_data/db/smdb.py call_tree ips_leave >>> >>> But perhaps you already know how to do it. >> >> Yes, but thank you anyway. :) >> > > My email (gmail account) has been so weird recently. I don't know why > I'm not getting Fabio's emails... Presumably they will show up in a few > days. > > The other command to use is: > > $ ./smatch/smatch_data/db/smdb.py preempt ips_leave > rtw_set_802_11_disassociate() <- disables preempt > -> _rtw_pwr_wakeup() > -> LeaveAllPowerSaveMode() > -> ips_leave() > > I save that to a file, open it with with vim and run a vim function > `hall` (for highlight all) from my .vimrc file. > > " Use :hall to highlight all the words in a file (for debugging sleeping bugs) > function HLall() > let a=[] > %s/\w\+/\=add(a, submatch(0))/gn > let @/ = join(a, "\\|") > endfunction > cnoreabbrev hall call HLall() :set hls > > That highlights all the functions is the call tree, then I use cscope to > jump to rtw_set_802_11_disassociate and follow the highlighted functions > to ips_leave(). Thank you for this hint Dan. :) thanks, Michael