From nobody Mon Feb 14 00:25:37 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id BDD2919B09EB; Mon, 14 Feb 2022 00:25:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JxlPF4wlkz4hZn; Mon, 14 Feb 2022 00:25:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644798337; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dc2HMD+uG3nT+ol21IbTUjudXlPlNEBtIojPRLC8qSQ=; b=Pv6i0KSgkEDU/Y941eWDFnXyG4B2QTc+vj8NueL+HyeAmz+y07GPGzXjIqDVK3PBjHaMuO EsXxQzjY/60a2l8nXEd3BbCcdfTuasjR2ZUkQfj5Vv5U8H4gqP1ZN1h2hC2DgTZMBGhoqA vVd35Cf1FIlFLjyxT1XMBLGz5ILsEqV8/6rjiGw6dU6mE6o2Gv3ZZpBam4ugV9vOYaDIMh eEGd4rh+HLgZHhJm8kWZr60NYECKbryKjbjQ/3KHUeJAK8BWt8HMrSE3SsFbF5PkuCJl1H VX4HPLEMdp39MYYAntcH5fujO8i/w1GQ41L4d0sbH7FEW7chwGB3wj70B9zSnA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 890FC24F95; Mon, 14 Feb 2022 00:25:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21E0Pbsu083759; Mon, 14 Feb 2022 00:25:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21E0PbOH083758; Mon, 14 Feb 2022 00:25:37 GMT (envelope-from git) Date: Mon, 14 Feb 2022 00:25:37 GMT Message-Id: <202202140025.21E0PbOH083758@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: a4529c46d4ee - main - LinuxKPI; add the beginning of a tracepoint.h implementation List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a4529c46d4ee330ff6d347a611d62f4792e94392 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644798337; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dc2HMD+uG3nT+ol21IbTUjudXlPlNEBtIojPRLC8qSQ=; b=WG80l1ZrvJG4wmBDFVjDqTaqUFaH8FHlT+SuO45GWDpPb0+eUaVOxlJKU1rK4nZfYcBNMo PjPDJKsjUW1Envh3NQ0tCww9wA8dAdo1kniaewoMmcmpqH9QNBHYlzYRvddpxwpex+BUur qg5MYcOXFvf3G9mkhJ08dUl7wi//bF211bmge48fQJJ9GGIAfQgaIo5SMn65EGlwPBIQCJ BuVde+ZARPyHffpxDxkf4VrP64I3zCuCzDtJ7iJPrcW71E94jtXiwHCdEPelYq25ebkM64 YMx9bY3qis0z8lwXPOxiaOhnPZhiZM04iaGYl3j22ViXZRfKcWuF2EvamoMtCw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644798337; a=rsa-sha256; cv=none; b=Va/9Xgt5n+6ycGZ7iRYkrhFOZfj1zqAGLCzz0QpCxwQAvze+zS738BxBJXT2Wun2Mu8EAn jEE4FhrHRuTQefXY4qmOePn5+gvdrNrfVs9U7za4fRMNbJQ3AVkS0HrC+TccoxTjdjeAC7 f0Qj5QFl70EevVcVPUiej66ESa7eZCc72Jr2d8QjItOmohVxyEGVMAUw87hl25bdVikLSn 7s+T4RBtydMAMgihXUHSl1yC8RQimF4CBDzyyHkco3M4gU11K3EfJ/16cfoPtZhC77LOTE n9t1huIwuKVTuiLLFYG4uea1i3vw55FAalUIWbWb7rr7EuE1KuFvaIToiV3X8A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=a4529c46d4ee330ff6d347a611d62f4792e94392 commit a4529c46d4ee330ff6d347a611d62f4792e94392 Author: Bjoern A. Zeeb AuthorDate: 2022-02-09 12:13:19 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-02-14 00:24:43 +0000 LinuxKPI; add the beginning of a tracepoint.h implementation Add a beginning of a tracepoint.h implementation to ease porting drivers making use of this Linux facility. MFC after: 3 days Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D34236 --- .../linuxkpi/common/include/linux/tracepoint.h | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/tracepoint.h b/sys/compat/linuxkpi/common/include/linux/tracepoint.h new file mode 100644 index 000000000000..0171427439f9 --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/tracepoint.h @@ -0,0 +1,44 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2022 Bjoern A. Zeeb + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $FreeBSD$ + */ + +#ifndef _LINUXKPI_LINUX_TRACEPOINT_H +#define _LINUXKPI_LINUX_TRACEPOINT_H + +#define TP_PROTO(...) __VA_ARGS__ +#define TP_ARGS(...) +#define TP_STRUCT__entry(...) +#define TP_fast_assign(...) +#define TP_printk(...) + +#define TRACE_EVENT(_name, _proto, _args, _struct, _assign, _printk) \ +static void trace_ ## _name(_proto) \ +{ \ +} + +#endif /* _LINUXKPI_LINUX_TRACEPOINT_H */