From: Randy Dunlap Date: Fri, 15 Jul 2011 16:44:43 +0000 (-0700) Subject: dtrace: update sdt provider (sdt_mod.c) with lots of functions X-Git-Tag: v4.1.12-92~313^2~174 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=57204d06afdec9b2af468310135708edb5a40980;p=users%2Fjedix%2Flinux-maple.git dtrace: update sdt provider (sdt_mod.c) with lots of functions NOTES: - module loadcnt may need more work. - kernel_searchsym() is incomplete (see FIXMEs). Add sdt_subr.c and build it in Makefile. Add str_impl.h for internal sdt use. Add more fields to linux/module.h for static probe bookkeeping. Signed-off-by: Randy Dunlap --- diff --git a/include/linux/module.h b/include/linux/module.h index b3389fc9a5a49..6eb2674fb8f75 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -352,7 +352,9 @@ struct module { #if defined(CONFIG_DTRACE) || defined(CONFIG_DTRACE_MODULE) struct sdt_probedesc *sdt_probes; - unsigned int num_dtrace_probes; + unsigned int num_dtrace_probes; /* from kernel build */ + size_t sdt_nprobes; /* managed at probe load time */ + int mod_nenabled; /* # of enabled dtrace probes in module */ #endif #ifdef CONFIG_MODULE_UNLOAD diff --git a/kernel/dtrace/Makefile b/kernel/dtrace/Makefile index d32738477e162..924fc341fbe21 100644 --- a/kernel/dtrace/Makefile +++ b/kernel/dtrace/Makefile @@ -31,6 +31,6 @@ fasttrap-y := fasttrap_mod.o fasttrap_dev.o fbt-y := fbt_mod.o fbt_dev.o lockstat-y := lockstat_mod.o lockstat_dev.o profile-y := profile_mod.o profile_dev.o -sdt-y := sdt_mod.o sdt_dev.o +sdt-y := sdt_mod.o sdt_dev.o sdt_subr.o systrace-y := systrace_mod.o systrace_dev.o dt_test-y := dt_test_mod.o dt_test_dev.o