Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp542641ybg; Fri, 12 Jun 2020 08:12:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWBd/x8Ax9KDRVo4F0bfj3K4yv/ZkosC0N2je1+2JsPQOgIVEixANRubwPM3qTN933WDKQ X-Received: by 2002:a17:906:84a:: with SMTP id f10mr14260175ejd.102.1591974744111; Fri, 12 Jun 2020 08:12:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591974744; cv=none; d=google.com; s=arc-20160816; b=cMAyn0csapDiztn5qsMaxopJaRG8MWjbgenb/BKccO4g1L5N/E9sio200her0Gfdm6 60pFNUkJrhhXYSyl6UVxHHgPUf0DZanaj0gDyTwVKdZlANYnML95LLAyVC4rDI8xdqD8 LCjqULUfxIvAAxz4/3Pe/CtNa4VZjthSr/noYEHaWc5exhHhjWMarJ40UuagC4YaHp4X RNe3RIXr+cjqd5rUQpcQZoutdkmVJ9cmiH1fPzcsE/L0spka9WKJXJDKeQVca/17QoOh 79F1Lj8zPGgfHXW0OaidZmxaf1xCFSmlV3pHn9/1f2AK6+Yxlvi9SLMGf76ANSt/BNCy i+CA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+0KA0dOhmw5UB0xe1wGnzSeL3/LIui1ay1wP2Ey5MGg=; b=kL1KLAxcH+m8p9ooaZ30fftMMa0JKKjrnziwyjdzR0FKly22Bs0RxDNHirDB/YjAxu 3I9T4p33oXToS6uZqx8xL00cPMuP4/TuLttlB0v3VjyMm38ecwv8TA2nE3/vKKcvs94Y E3h8NvRRDT+fUgpW+MntwG8FDY4LdvuXqGYGlWORJuZcjLl/iC56OVIwkrQkn9VjNjdW WRMBqUl0yDGO6lrBKtkbTI95HX9/NFkSJMoC/9Kvun/usfBWdjUQCnqLKoPrn+6SDpWB uuL6HO31zWGAzcxHcsnTsjeC5YMFVTlKdnK3ITccC1guCGO9gpkJ+uhALlyHtlYABYl3 D1qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=eaID3cTv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a2si1946412edk.226.2020.06.12.08.12.01; Fri, 12 Jun 2020 08:12:24 -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=@mediatek.com header.s=dk header.b=eaID3cTv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726535AbgFLPKP (ORCPT + 99 others); Fri, 12 Jun 2020 11:10:15 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:29623 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726366AbgFLPKN (ORCPT ); Fri, 12 Jun 2020 11:10:13 -0400 X-UUID: 969f7aa8454b4ddabc62278aaea843a9-20200612 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=+0KA0dOhmw5UB0xe1wGnzSeL3/LIui1ay1wP2Ey5MGg=; b=eaID3cTvZCfa59n34eaUV9pwbbuVl/oZfmdU8lesH8Q0YYxMvpcppJJSc/FeyrVNCZXNyBVJKYgC2vxLXgG3y5P+17R08PXpdQ7u5OZM5bwCIp95xqptRHSXskb1WSy8cSaRsnqSRebpZieZIzZDvl7FX3nWHW/8tkEGa0MvruA=; X-UUID: 969f7aa8454b4ddabc62278aaea843a9-20200612 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1554280324; Fri, 12 Jun 2020 23:10:08 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 12 Jun 2020 23:10:02 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 12 Jun 2020 23:10:01 +0800 From: Stanley Chu To: , , , , , CC: , , , , , , , , , , , , , Stanley Chu Subject: [PATCH v1 2/2] scsi: ufs: Add trace event for UIC commands Date: Fri, 12 Jun 2020 23:10:00 +0800 Message-ID: <20200612151000.27639-3-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200612151000.27639-1-stanley.chu@mediatek.com> References: <20200612151000.27639-1-stanley.chu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 59D9D01AB4EC54D1F10C739C554AC979AC81CEAF602D64FA508FA0139328F5D72000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VXNlIHRoZSBmdHJhY2UgaW5mcmFzdHJ1Y3R1cmUgdG8gY29uZGl0aW9uYWxseSB0cmFjZSBVRlMg VUlDIGNvbW1hbmQNCmV2ZW50cy4NCg0KTmV3IHRyYWNlIGV2ZW50ICJ1ZnNoY2RfdWljX2NvbW1h bmQi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