From: Kris Van Hees Date: Wed, 23 Jan 2013 09:47:21 +0000 (-0500) Subject: dtrace: move psinfo to its own header file X-Git-Tag: v4.1.12-92~313^2~94 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7df40cdebf91b95041417a50b5297447c693a84c;p=users%2Fjedix%2Flinux-maple.git dtrace: move psinfo to its own header file The psinfo structure definition and related function prototypes have been moved to their own header file to avoiding including dtrace_os.h in sched.h. This is also one step closer to providing the psinfo as a more generic piece of info, rather than it being dtrace specific. Signed-off-by: Kris Van Hees --- diff --git a/include/linux/dtrace_os.h b/include/linux/dtrace_os.h index 070899f02004b..c0d0ed33fa3bb 100644 --- a/include/linux/dtrace_os.h +++ b/include/linux/dtrace_os.h @@ -1,27 +1,10 @@ -/* Copyright (C) 2011 Oracle Corporation */ +/* Copyright (C) 2011, 2012, 2013 Oracle Corporation */ #ifndef _DTRACE_OS_H_ #define _DTRACE_OS_H_ -#define PR_PSARGS_SZ 80 - -typedef struct dtrace_psinfo { - union { - unsigned long argc; - struct dtrace_psinfo *next; - }; - char **argv; - char **envp; - char psargs[PR_PSARGS_SZ]; -} dtrace_psinfo_t; - -#ifndef COMPILE_OFFSETS - #include -extern dtrace_psinfo_t *dtrace_psinfo_alloc(struct task_struct *); -extern void dtrace_psinfo_free(dtrace_psinfo_t *); - typedef uint32_t dtrace_id_t; #define DTRACE_IDNONE 0 @@ -98,6 +81,4 @@ typedef void *(fbt_provide_fn)(struct module *, char *, uint8_t, extern void dtrace_fbt_init(fbt_provide_fn); -#endif /* COMPILE_OFFSETS */ - #endif /* _DTRACE_OS_H_ */ diff --git a/include/linux/dtrace_psinfo.h b/include/linux/dtrace_psinfo.h new file mode 100644 index 0000000000000..7c6c6c1723a45 --- /dev/null +++ b/include/linux/dtrace_psinfo.h @@ -0,0 +1,21 @@ +/* Copyright (C) 2011, 2012, 2013 Oracle, Inc. */ + +#ifndef _DTRACE_PSINFO_H_ +#define _DTRACE_PSINFO_H_ + +#define PR_PSARGS_SZ 80 + +typedef struct dtrace_psinfo { + union { + unsigned long argc; + struct dtrace_psinfo *next; + }; + char **argv; + char **envp; + char psargs[PR_PSARGS_SZ]; +} dtrace_psinfo_t; + +extern dtrace_psinfo_t *dtrace_psinfo_alloc(struct task_struct *); +extern void dtrace_psinfo_free(dtrace_psinfo_t *); + +#endif /* _DTRACE_PSINFO_H_ */ diff --git a/include/linux/sched.h b/include/linux/sched.h index 51e211a70201d..2b89630bbfc49 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -58,7 +58,7 @@ struct sched_param { #include #include #include -#include +#include #include