From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by sourceware.org (Postfix) with ESMTPS id 972F53858C2C for ; Fri, 1 Apr 2022 12:27:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 972F53858C2C Received: by mail-ej1-x62b.google.com with SMTP id o10so5569729ejd.1 for ; Fri, 01 Apr 2022 05:27:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=H00gLru8yvbWPz5zbzBz9PiMKfcfyKu5B2KoMh1LQ3Q=; b=J+xFEevcNVWgd9QCw1j3D7GrYE0UdWnxRRr1FOrcluqfgLnWjI/m3zdEvfL0Sw1XWZ fuXqwUCjHbN0VzX0vXRrx17cM2meTYMu4QI98/dLaPvdfStYGaSNoU1fV+pngSrzPVFH bOdSTphLZGCjLOghSXusUPDzMimScYoGMmyBJYq9/uK4yVtfPW1tCVILycjD6NNhXHUQ CPo8iVGfEd8hUBcT+LfGQiSvLZm1x+X/vA2iQAAPSC6k87/MAfrsXVYro94QKfxduiBs C57U9d3KJCfitnURVsyWHFlWucy+OFeE+XCTeprqLYrauI3XvsSylrVj6nxEJc3bzPwI o4Tg== X-Gm-Message-State: AOAM533Fy3yCFZEu6n4qCtUAb9WqAVc1+vjQkDkaU3rSnQIgKL2i+8np XQqkjGCvKi1obdk/7oZmj0xofNd5kQPiJYnEtcEU0YLXz+ZxdQ== X-Google-Smtp-Source: ABdhPJxEhugCq8p6vSwMYhp2f7njvWakmTTbEIVCXDsZdbAXuZxB1mOqh/I/UDugRxEy5V0TYdPb52t8O/uIwvCrFWo= X-Received: by 2002:a17:907:2a53:b0:6ce:e4fe:3f92 with SMTP id fe19-20020a1709072a5300b006cee4fe3f92mr9129168ejc.389.1648816047700; Fri, 01 Apr 2022 05:27:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Daire Byrne Date: Fri, 1 Apr 2022 13:26:51 +0100 Message-ID: Subject: Re: newer kernel+systemtap & nfs.fop.open To: systemtap@sourceware.org X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2022 12:27:31 -0000 Hi, Is anyone able to point me in the right direction or is there a better forum for asking these kinds of questions? Cheers, Daire On Thu, 10 Mar 2022 at 19:58, Daire Byrne wrote: > Hi, > > Bit of a newbie question, but I'm trying to port some older code to a > newer version of systemtap (4.7pre) and I'm seeing a change in > behaviour in the output of this: > > stap -e 'probe nfs.fop.open { filename = sprintf("%s", > d_path(&$filp->f_path)); printf("filename: %s\n", filename)}' > > On previous versions (RHEL7, stap v4.1), the resulting filename had > the full path including the mounted directory path or autompunt path, > But on newer version of the kernel and systemtap, it seems like only > the file path after the NFS mountpoint is being printed. > > Is there some other trick now required with the > d_path((&$filp->f_path)) to include the NFS mountpoint location and > provide the full path? > > Many thanks, > > Daire >