Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3465402pxb; Mon, 4 Apr 2022 17:51:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVc0WqNN8RPF2d79EV+7ZeSV6SsXGbmjVfslP30KcrIIdZPoOX4qh6Qxs0vTtT0najuqEF X-Received: by 2002:a17:903:1105:b0:156:3e9d:bb7b with SMTP id n5-20020a170903110500b001563e9dbb7bmr767162plh.136.1649119894151; Mon, 04 Apr 2022 17:51:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649119894; cv=none; d=google.com; s=arc-20160816; b=MHf/mKPCSGUqDftHoBtnv7a8U4Y6H5l24IQBcE0tgZnsKjheXmGltnqsnOq4tJkVPk WKpPbCdsUXDAFt7UakrshZ6Nr7Ep6giplJ+iFyw4lhe8XxFd4qdkiXCUdMzRNOQcalE1 peR8cvbzs6TPH96wPGe+xRQK+kHA0eT8ZN9UZwN8L+SzNXdjZ6vaAaPkOYU9uPTOH5Pn KVd7Tv450zhaCuOBFwimvDZGGrD1SP3J/9iavA/2klO27X0yxXixZOG4O5fPIsE0/JqX P1Em6Y4b7j70Sqyl+r+wrk8m6By4zVGcVhkd48Q2no0ZrQWRZaY+mxDPLHAWt0ZG463d R/VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Yrk+LsPAZj6NgBL9bPWTDL2JqqAIRaC05jfjs6HeV6M=; b=d17/qz6Vy3p+5XAoiV4lNN5rdipASnym9386EsAJafCCtKsaAuGQsnsNXNAqTrveyX I+YD8hMOFCsu0MoLcuW1RaWltD3VIhgUvROtBC0yiyzOxi03TaC5Trnb7TDgLfDQkWUT yVsjdB3fbgnDrNt4Qj6Vplm19waF+Lx1mQUgwXbn2mLJ51GDasq8GOVqEMhUgTPYA7ub 6gMYG2tJNB0NjJT/t1deE3LjfH0PUI3jAKueTOfJxuuZq5V0jutMZwAl/ruoDBx3myLt ShUL6o88peNF7BIOUPE9rsahxTJ1xdD30GaEZ/EXwwwvUBdeLYwJHiX5o6IrJDfqf6+K Uuxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=C0CQSnrk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id a38-20020a056a001d2600b004fa3a8e0071si4642741pfx.296.2022.04.04.17.51.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 17:51:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=C0CQSnrk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1ABC92229B; Mon, 4 Apr 2022 17:00:27 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376972AbiDDOSe (ORCPT + 99 others); Mon, 4 Apr 2022 10:18:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237149AbiDDOSc (ORCPT ); Mon, 4 Apr 2022 10:18:32 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 596AF3B033 for ; Mon, 4 Apr 2022 07:16:34 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id bh17so20244760ejb.8 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=F8pV+DCi0IJKIgc8+Zpq73YvOrhkHjWmVYP14m3gxi2dh4gNafpyDJ1QCHFNWzwiNx JbBGah8OzE76MuXRv7+7MWJLXcZKUrNNUa9jFrEb2XuTVNeZ9nZuyS0Bo6uSenSGF9sj kR4bO0TrjMGgPJ3vxEwpeg9DKS5aJGvYJhC+xX0Rd3bl50NrgaQyIpqWIcXLhDdacor1 jzvHAFVeeXrVotMvClO2yPoS+pp79T8ODsJ9LI3XanIzz360M+4kQqxUmVCTl0Jqw3rT drvNxvPRw2YN5DqpPeAvw2XuqHz8dqAIA2WyQtZ7BPlKGxC1KrmNyo3C9BfN1YTIbTmP S0FQ== X-Gm-Message-State: AOAM530DlA3rLP3xOrTXfCVI9M1u7h9WIGhWmXZ4ZzwoqZNxcc0FyQCt /0wmyRqazZjpuaHNqVx2DMg= 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 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 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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