libipt no longer requires initialization

Since commit d701c95bb9f6db652ada625023bf8bdf54750365, this initialization
patch has not been needed:

  commit d701c95bb9f6db652ada625023bf8bdf54750365
  Author: Markus Metzger <markus.t.metzger@intel.com>
  Date:   Mon Jan 30 17:30:44 2017 +0100

    libipt, init: remove library constructor

    Now that the instruction length decoder no longer needs initialization, we can
    remove the library's constructor.

    Change-Id: Ibaa43be9a8af6e4e4f3a78fd9c84b3589cf33e99
    Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>

I've verified that RHEL7 IPT still works.
This commit is contained in:
Keith Seitz 2023-06-08 13:07:39 -07:00
parent 5f67b86ed1
commit dc392f53a2
1 changed files with 0 additions and 13 deletions

View File

@ -1,13 +0,0 @@
Index: processor-trace-2.0/libipt/src/posix/init.c
===================================================================
--- processor-trace-2.0.orig/libipt/src/posix/init.c
+++ processor-trace-2.0/libipt/src/posix/init.c
@@ -29,7 +29,7 @@
#include "pt_ild.h"
-static void __attribute__((constructor)) init(void)
+void __libipt_init(void)
{
/* Initialize the Intel(R) Processor Trace instruction decoder. */
pt_ild_init();