From owner-freebsd-dtrace@freebsd.org Mon Jun 18 19:15:47 2018 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 327A6101B296 for ; Mon, 18 Jun 2018 19:15:47 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-lf0-x229.google.com (mail-lf0-x229.google.com [IPv6:2a00:1450:4010:c07::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 956606D9A3 for ; Mon, 18 Jun 2018 19:15:46 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: by mail-lf0-x229.google.com with SMTP id i15-v6so26365178lfc.2 for ; Mon, 18 Jun 2018 12:15:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pycPcPpRGCbt1Zjy2xerjINXrO4CwU+FQ8eXEf4ot0g=; b=IYLLEn+hBt0Mtqfze9tNWStp57dj3VeSMrokwXnEndWcACCE3gO/XeeicJkLvxyKHD e/MH7ReL+tWS0mQiHyVAVNoq9HKo4dtBKu9wZUsOKlF8KD+x3o8p51TTggli0Zek6Sbv ozLbLbUWbv0DvsxqFbrcD7rcZ1FZTWRzZx+65GkqKNQoNDqHnmY7Gx04QfNBFCPRUrmd 9IPPVWdweWzN3ub8gIB9RL174N68hU4bLJVdeVZXJbvCmT7IFH+JvswacMd1friVXocu sGmXBhAbs25PB3/RmYBXDr6qmqrYcSc5wgcLNWp44Iw6A02kx3yBQR0Ji6s8YWEDyliS O23w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pycPcPpRGCbt1Zjy2xerjINXrO4CwU+FQ8eXEf4ot0g=; b=G+e/k/oHYz5vkNP0H9smxdbZLTfmjUxExRFV5oxNFExi4qZlq2Lq4Bew2nMHO9yorj ubig5FufzwMJJbQjj2ARkDbO+aCwZzGKpbxOQ/Uxi6mIs1vP0PAE1kPPVxFyQTtSj0tI ZFFbZ1G2ZuARvYD2Pzjx8exPeh1KlGez0kt0PD2oP8gpchsR99o/auYzGRe3T36BMZnG NlNw6O/P9or5PCzTtw430w59eReKpdijgBdYdUC/+0WHY3laA/y4h3z9tNYhrJPkvcbx 1PlB5BHgcT8lU654Rpf3oEZuW5L2qhpoubIiaANC3GYSC/53qijY8EoZjnm4sBfkdgkD hgJA== X-Gm-Message-State: APt69E2Veo02TRrUUdVsksvRulMx/Uo+7v3AH0IzHs76uml+0yIdpHqG FulunE0JPFqqbFMvZP7TlU36L7O2qiRP3inYuqY= X-Google-Smtp-Source: ADUXVKJ1olQmM9DKBIe9X8breindr2iC5ft8Hwn9j0FTjArwX/K3KP9UMQGU8NFdx38SGMlKgfQNwKCfoqzbcY92PTE= X-Received: by 2002:a19:b21c:: with SMTP id b28-v6mr6987046lff.20.1529349344463; Mon, 18 Jun 2018 12:15:44 -0700 (PDT) MIME-Version: 1.0 References: <1529348905.2613088.1412091424.2D14994E@webmail.messagingengine.com> In-Reply-To: <1529348905.2613088.1412091424.2D14994E@webmail.messagingengine.com> From: Ryan Stone Date: Mon, 18 Jun 2018 15:15:29 -0400 Message-ID: Subject: Re: where did FreeBSD 11's syscall::lstat go? where do syscall probes get defined? To: Dave Cottlehuber Cc: freebsd-dtrace@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2018 19:15:47 -0000 The syscall probes are automatically defined based off of the syscalls.master file. As a part of ino64, it seems that lstat() was retired as a system call. As you can see in lstat.c, lstat(3) is now implemented in terms of fstatat(2), so that's what new scripts should be used. You can also see that syscalls.master defines a compat11 version of lstat(), as this is necessary to maintain binary compatibility with pre-12.0 binaries.