Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19276369rwd; Wed, 28 Jun 2023 07:20:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ65DsPpvzgY9+QQnT7pH+l26nNQIHgexWYfMzC0Pr6ntqKmfeEFOxnpn2uaHXEo2vK1NR4g X-Received: by 2002:a17:90b:3906:b0:263:945:61ae with SMTP id ob6-20020a17090b390600b00263094561aemr6440771pjb.23.1687962027890; Wed, 28 Jun 2023 07:20:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687962027; cv=none; d=google.com; s=arc-20160816; b=RVB02GRBVJA6j432dsBcakL9uLFyPHS+B7m3e+ijydYdi/q5/EujFEXcvqlq44eRa0 anVoDFORvp+fTF044hsNXFWpTL+V0EV1k5XX6GpFyJJn914iboDqlXFCGWfRfYRIRc9I ujpn7ZSY078YK3aejvsmkwAWpgGZcpUJGiNuDHL+IlyaInnRGmP/BaxpqoX9CMnolzXC SaTCP5SE7zf76C9sbEHWOZ5xqVndpKk9VEJ+R8S3CG0FNjCqV9Odee2ed8qt3ro35MnE XU2RErjwruEloIR3CNsklT8q/Etj0w5LYdl+e14xo63FDUdKnJy0SVVL/tpAPVlZdKlZ 33qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9UCz4yEaBLsI1zCNNQCA7tKcSTDUIMBNJmFkNTE0KRI=; fh=b3wSAliEeqaW/SdjydUPxHhZo1+OjX/Mnp9OAil0r9U=; b=GHqQAkiiFvZzaDpfe+KrE7y6v/HndjjTuyWZuIjy0700fCQtph4e9rKJHU8mLnS1rE SE7zsDKtEYGjST10RJTXgMni+d+I8FpuSMpnWGUTgtWpKp+0JUI5ZuTC9cCPmFMoyCKy A/iljgPNj+Li5P9K4XyOkIeqrzlWDGnAkWe0/xCCHazA3MbTCjuLCeFyHeyj/RuT0W3I gyxetfavsZibVitBjsNYfbiqW8Gr1nOtqjXuc9ZdMjnAGFddWPKM4xkx5qIY0v+zvPyW SRWyTb6GJKMk735B31Lltla0pOLuGtQdzDNet6XnVKvFdbqTs5lQT0GNVU1yK2bX4h1D /Hag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=C4uWvpJH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k69-20020a638448000000b0053422305c20si9833477pgd.14.2023.06.28.07.20.14; Wed, 28 Jun 2023 07:20:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=C4uWvpJH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231745AbjF1Nye (ORCPT + 99 others); Wed, 28 Jun 2023 09:54:34 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]:49886 "EHLO mx0b-0031df01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231542AbjF1Ny1 (ORCPT ); Wed, 28 Jun 2023 09:54:27 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35S8JjLR002642; Wed, 28 Jun 2023 13:53:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=qcppdkim1; bh=9UCz4yEaBLsI1zCNNQCA7tKcSTDUIMBNJmFkNTE0KRI=; b=C4uWvpJHh2bV9CyOLmpfN9wuIXe4M4r/Q/4Amu4o0hqwq6DUgKQkuvS4FsM1TZM8FseZ vYV6o7Faur6wwj8csVoQgJFh+1cEMxMF66pewWfDDmH0O8cRCEKZfJwtE8V1BdO3/uP9 IIu7Kh9ijP0a1pDcBpP7+Se2TRd5dIRBU7kgABWL4FRE7cr1MN6dbiwMdhteR1q7CqV1 +roWNAZUpQzRYAxiUUMQkNSw3EDVkwM5ZH56Kd9/MARz4y2kq2UpE/8sxwRnf+srqtx0 fxb6UeR0oRtpNhDTBvcagpwvnpTz2XlJ8OA6dDda7zh3or6P6mmTdwQShZ9av64noMv3 pQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rgetph1u6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Jun 2023 13:53:26 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 35SDrOaL019508 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Jun 2023 13:53:24 GMT Received: from hu-pkondeti-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.7; Wed, 28 Jun 2023 06:53:16 -0700 Date: Wed, 28 Jun 2023 19:23:12 +0530 From: Pavan Kondeti To: Mukesh Ojha CC: , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v4 02/21] kallsyms: Export kallsyms_lookup_name Message-ID: References: <1687955688-20809-1-git-send-email-quic_mojha@quicinc.com> <1687955688-20809-3-git-send-email-quic_mojha@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1687955688-20809-3-git-send-email-quic_mojha@quicinc.com> X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: dvP17vLT4h84mAiuU6uJVhi4iE_WqiWm X-Proofpoint-GUID: dvP17vLT4h84mAiuU6uJVhi4iE_WqiWm X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-28_09,2023-06-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 mlxlogscore=869 spamscore=0 priorityscore=1501 suspectscore=0 clxscore=1011 bulkscore=0 mlxscore=0 phishscore=0 lowpriorityscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306280123 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 28, 2023 at 06:04:29PM +0530, Mukesh Ojha wrote: > Module like minidump providing debugging support will need to > get the symbol information from the core kernel e.g to get > the linux_banner, kernel section addresses bss, data, ro etc. > One might ask why we would need such a debug driver to be compiled as module? What would you do if we need to capture more kernel data structures later? Do you plan to continue use kallsyms_lookup_name() to query all the symbols? I have seen v3 discussion where you are asked to compile this driver as module but that time there was no reason why your driver needs to be compiled as statically, now you have a reason (linux_banner) for it. > commit 0bd476e6c671 ("kallsyms: unexport kallsyms_lookup_name() > and kallsyms_on_each_symbol()") unexports kallsyms_lookup_name > due to lack of in-tree user of the symbol. Now, that minidump > will one of its user, export it. > > Signed-off-by: Mukesh Ojha Thanks, Pavan