From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-00364e01.pphosted.com (mx0a-00364e01.pphosted.com [148.163.135.74]) by sourceware.org (Postfix) with ESMTPS id 583293857C41 for ; Tue, 1 Aug 2023 13:57:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 583293857C41 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=columbia.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=columbia.edu Received: from pps.filterd (m0167070.ppops.net [127.0.0.1]) by mx0a-00364e01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 371Dk0jS001861 for ; Tue, 1 Aug 2023 09:57:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=columbia.edu; h=mime-version : references : in-reply-to : from : date : message-id : subject : to : cc : content-type : content-transfer-encoding; s=pps01; bh=QsSiR45eziOePiM36AJuViveTyFZ2a2Q8rzA4IwI7yE=; b=kdiR31n9o+WGAZVKP2f+U5ELnO14KZi0NrU3sNjSj14HNWZlpKeMmGbYSMrBhKJ4+yPn HiPm1q+mZtjU0vXu58PXFsW0rl9Te/IQlLEnE1IARDQKTsEDnFys14tv+Dl7ysSBhm24 CMcsgWHQnhlB8Jr/UZLG83IKmOlvlgJxlX5B16fcIiSK7cz16raYAk6MyAkYbfxO8gEg lCSSxlG7W7UfgHlbo+8/2GiKu47xPX2kI4U8M6kxjmXel5BCujE3okVKXfywxuOvrXMp GRiGxD1BdsjSOXt3JEsZj7TYe7xIzu/sDA8TP8XXdMRP54LF24tPLhtUbllAmrxsAtm2 mg== Received: from mail-vk1-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) by mx0a-00364e01.pphosted.com (PPS) with ESMTPS id 3s4xu3ahk2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 01 Aug 2023 09:57:30 -0400 Received: by mail-vk1-f198.google.com with SMTP id 71dfb90a1353d-486550830b5so1168498e0c.0 for ; Tue, 01 Aug 2023 06:57:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690898249; x=1691503049; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QsSiR45eziOePiM36AJuViveTyFZ2a2Q8rzA4IwI7yE=; b=fUDDin8iJHgXVdabJ4mqnPxYe8UbjqudvtFN/z4Vfz5d7OxpKxYNg6upK9AxsoVW3w fRZTd6+VnrVJJP1LrlkHI7GyYk8VWlUEwXyx1WOj3/DGAdOI6Xz5WkYV8Wzh8nmifhq1 DFE4fKsQfNVoYAIbZ+jakxKQWPobSLSKdLPPsk7hBWBT3ApSs/v8QnlSMe6I6xnHmOWL SXCJA4Wi74+SzFFJ64n/hZrUGSi3NHH+iX2kRNQpe0fnEtSZptehnhesyGF/Xq/59MkA ibcCZXzpkJYXC1Tctfci8nZD7PeDQaF9rUrleLr+ER1oTgXUeX8xnZi064TwRhEhFiUk k1mQ== X-Gm-Message-State: ABy/qLaCP/T6sLmLntP6b7NP6ZbECZ6NxgxzTblHJPeEpLP1uMzRf4BL K7U4wx6kWnclLnAvFD147Xscbj4nfTqDAu0sF7p10hio5hDjh4hv4bHX7m1hIMhj2wJvENXpFa8 p42vOoo3ZOEDNmTanZMUVAoJnmtV8 X-Received: by 2002:a1f:cf86:0:b0:47e:52e9:82b6 with SMTP id f128-20020a1fcf86000000b0047e52e982b6mr2297331vkg.7.1690898248788; Tue, 01 Aug 2023 06:57:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlHvYW7xjiIrq7mv7bkakCoFgOhUNIMybn0nuFs9kEigFMdv23HX+N+BPbeCugTp7Qsjb1Jx+kSSWKWedY6Kjeo= X-Received: by 2002:a1f:cf86:0:b0:47e:52e9:82b6 with SMTP id f128-20020a1fcf86000000b0047e52e982b6mr2297325vkg.7.1690898248599; Tue, 01 Aug 2023 06:57:28 -0700 (PDT) MIME-Version: 1.0 References: <969057b59e5cf472b73e8e1dedcc4a46630b31a0.camel@redhat.com> <6050a30719fed76a5bdb36c00620f4cb44e00aad.camel@redhat.com> In-Reply-To: <6050a30719fed76a5bdb36c00620f4cb44e00aad.camel@redhat.com> From: Eric Feng Date: Tue, 1 Aug 2023 09:57:17 -0400 Message-ID: Subject: Re: Update and Questions on CPython Extension Module -fanalyzer plugin development To: David Malcolm Cc: gcc@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: JpnGU2gbSS4sNnmk0-TdZ-aHeR9Aenis X-Proofpoint-GUID: JpnGU2gbSS4sNnmk0-TdZ-aHeR9Aenis 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-08-01_09,2023-08-01_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 malwarescore=0 mlxlogscore=999 impostorscore=10 bulkscore=10 lowpriorityscore=10 priorityscore=1501 suspectscore=0 mlxscore=0 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308010126 X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > > My guess is that you were trying to do it from the PLUGIN_ANALYZER_INIT > hook rather than from the plugin_init function, but it's hard to be > sure without seeing the code. > Thanks Dave, you are entirely right =E2=80=94 I made the mistake of trying = to do it from PLUGIN_ANALYZER_INIT hook and not from the plugin_init function. After following your suggestion, the callbacks are getting registered as expected. I submitted a patch to review for this feature on gcc-patches; please let me know if it looks OK. Best, Eric