output_autoconf(s, o, "autoconf-procfs-owner.c", "STAPCONF_PROCFS_OWNER", NULL);
output_autoconf(s, o, "autoconf-alloc-percpu-align.c", "STAPCONF_ALLOC_PERCPU_ALIGN", NULL);
output_autoconf(s, o, "autoconf-x86-gs.c", "STAPCONF_X86_GS", NULL);
+ output_autoconf(s, o, "autoconf-grsecurity.c", "STAPCONF_GRSECURITY", NULL);
#if 0
/* NB: For now, the performance hit of probe_kernel_read/write (vs. our
static void _stp_print_kernel_info(char *vstr, int ctx, int num_probes)
{
+ printk(KERN_DEBUG
+ "%s: systemtap: %s, base: %p, memory: %lu+%lu+%u+%u"
#ifdef DEBUG_MEM
- printk(KERN_DEBUG "%s: systemtap: %s, base: %p, memory: %lu+%lu+%u+%u+%u data+text+ctx+net+alloc, probes: %d\n",
+ "+%u"
+#endif
+ " data+text+ctx+net"
+#ifdef DEBUG_MEM
+ "+alloc"
+#endif
+ ", probes: %d\n",
THIS_MODULE->name,
vstr,
- THIS_MODULE->module_core,
+ THIS_MODULE->module_core,
+#ifndef STAPCONF_GRSECURITY
(unsigned long) (THIS_MODULE->core_size - THIS_MODULE->core_text_size),
(unsigned long) THIS_MODULE->core_text_size,
- ctx,
- _stp_allocated_net_memory,
- _stp_allocated_memory - _stp_allocated_net_memory,
- num_probes);
#else
- printk(KERN_DEBUG "%s: systemtap: %s, base: %p, memory: %lu+%lu+%u+%u data+text+ctx+net, probes: %d\n",
- THIS_MODULE->name,
- vstr,
- THIS_MODULE->module_core,
- (unsigned long) (THIS_MODULE->core_size - THIS_MODULE->core_text_size),
- (unsigned long) THIS_MODULE->core_text_size,
+ (unsigned long) (THIS_MODULE->core_size_rw - THIS_MODULE->core_size_rx),
+ (unsigned long) THIS_MODULE->core_size_rx,
+#endif
ctx,
_stp_allocated_net_memory,
- num_probes);
+#ifdef DEBUG_MEM
+ _stp_allocated_memory - _stp_allocated_net_memory,
#endif
+ num_probes);
}
/** @} */