[DTrace-devel] [PATCH v2 05/08] Remove dt_state.h from the list of included files in dt_impl.h

Eugene Loh eugene.loh at oracle.com
Thu Sep 17 15:59:30 PDT 2020


Reviewed-by: Eugene Loh <eugene.loh at oracle.com>


On 09/14/2020 12:51 PM, Kris Van Hees wrote:
> The dt_impl.h include file was pulling in dt_state.h even though not
> that many source files in libdtrace actually need it.
>
> Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
> ---
>   libdtrace/dt_bpf.c  | 1 +
>   libdtrace/dt_impl.h | 1 -
>   2 files changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libdtrace/dt_bpf.c b/libdtrace/dt_bpf.c
> index 7adcf70d..a381a86e 100644
> --- a/libdtrace/dt_bpf.c
> +++ b/libdtrace/dt_bpf.c
> @@ -14,6 +14,7 @@
>   #include <dtrace.h>
>   #include <dt_impl.h>
>   #include <dt_probe.h>
> +#include <dt_state.h>
>   #include <dt_bpf.h>
>   #include <port.h>
>   
> diff --git a/libdtrace/dt_impl.h b/libdtrace/dt_impl.h
> index 510517ce..f1a2513f 100644
> --- a/libdtrace/dt_impl.h
> +++ b/libdtrace/dt_impl.h
> @@ -50,7 +50,6 @@ extern "C" {
>   #include <dt_pt_regs.h>
>   #include <dt_printf.h>
>   #include <dt_dctx.h>
> -#include <dt_state.h>
>   #include <dt_debug.h>
>   #include <dt_version.h>
>   




More information about the DTrace-devel mailing list