diff options
author | pfg <pfg@FreeBSD.org> | 2015-06-07 20:45:13 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2015-06-07 20:45:13 +0000 |
commit | 5c276e329ddaed9d4f6f4210e9fb9d4c349081f6 (patch) | |
tree | 708f349665b266b6700da6e004fd10b3d648b843 /sys/cddl/dev | |
parent | 0e7047f3cf7f81f1069743c80b4fc496de1b3620 (diff) | |
download | FreeBSD-src-5c276e329ddaed9d4f6f4210e9fb9d4c349081f6.zip FreeBSD-src-5c276e329ddaed9d4f6f4210e9fb9d4c349081f6.tar.gz |
MFC r278166, MFV r266993:
4469 DTrace helper tracing should be dynamic
Reference:
https://illumos.org/issues/4469
Obtained from: Illumos
Phabric: D1551
Reviewed by: markj
Diffstat (limited to 'sys/cddl/dev')
-rw-r--r-- | sys/cddl/dev/dtrace/dtrace_load.c | 11 | ||||
-rw-r--r-- | sys/cddl/dev/dtrace/dtrace_unload.c | 5 |
2 files changed, 0 insertions, 16 deletions
diff --git a/sys/cddl/dev/dtrace/dtrace_load.c b/sys/cddl/dev/dtrace/dtrace_load.c index 8a622c7..c49de55 100644 --- a/sys/cddl/dev/dtrace/dtrace_load.c +++ b/sys/cddl/dev/dtrace/dtrace_load.c @@ -137,17 +137,6 @@ dtrace_load(void *dummy) mutex_exit(&cpu_lock); - /* - * If DTrace helper tracing is enabled, we need to allocate the - * trace buffer and initialize the values. - */ - if (dtrace_helptrace_enabled) { - ASSERT(dtrace_helptrace_buffer == NULL); - dtrace_helptrace_buffer = - kmem_zalloc(dtrace_helptrace_bufsize, KM_SLEEP); - dtrace_helptrace_next = 0; - } - mutex_exit(&dtrace_lock); mutex_exit(&dtrace_provider_lock); diff --git a/sys/cddl/dev/dtrace/dtrace_unload.c b/sys/cddl/dev/dtrace/dtrace_unload.c index da58b8db..b0d22e6 100644 --- a/sys/cddl/dev/dtrace/dtrace_unload.c +++ b/sys/cddl/dev/dtrace/dtrace_unload.c @@ -69,11 +69,6 @@ dtrace_unload() mutex_exit(&cpu_lock); - if (dtrace_helptrace_enabled) { - kmem_free(dtrace_helptrace_buffer, 0); - dtrace_helptrace_buffer = NULL; - } - if (dtrace_probes != NULL) { kmem_free(dtrace_probes, 0); dtrace_probes = NULL; |