This file is indexed.

/usr/share/systemtap/runtime/linux/autoconf-module-tracepoints.c is in systemtap-common 2.9-2ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <linux/module.h>
#include <trace/events/module.h>

// NB: in kernels which do have the requisite pieces, just unconfigured, then
// everything below will compile just fine, only returning ENOSYS at runtime.
// To get the compile-time error that autoconf needs, check it directly:
#ifndef CONFIG_TRACEPOINTS
#error "CONFIG_TRACEPOINTS is not enabled"
#endif

// presuming void *data-parametrized tracepoint callback api

void __module_load(void *cb_data, struct module* mod)
{
        (void) cb_data;
        (void) mod;
	return;
}

void __module_free(void *cb_data, struct module* mod)
{
        (void) cb_data;
        (void) mod;
	return;
}

void __autoconf_func(void)
{
	(void) register_trace_module_load(__module_load, NULL);
        (void) register_trace_module_free(__module_free, NULL);
}