Revision 614b84cf4e4a920d2af32b8f147ea1e3b8c27ea6 authored by Serge E. Hallyn on 07 April 2009, 02:01:08 UTC, committed by Linus Torvalds on 07 April 2009, 15:31:09 UTC
Move mqueue vfsmount plus a few tunables into the ipc_namespace struct.
The CONFIG_IPC_NS boolean and the ipc_namespace struct will serve both the
posix message queue namespaces and the SYSV ipc namespaces.

The sysctl code will be fixed separately in patch 3.  After just this
patch, making a change to posix mqueue tunables always changes the values
in the initial ipc namespace.

Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 909e6d9
Raw File
power.h
#ifndef _TRACE_POWER_H
#define _TRACE_POWER_H

#include <linux/ktime.h>
#include <linux/tracepoint.h>

enum {
	POWER_NONE = 0,
	POWER_CSTATE = 1,
	POWER_PSTATE = 2,
};

struct power_trace {
	ktime_t			stamp;
	ktime_t			end;
	int			type;
	int			state;
};

DECLARE_TRACE(power_start,
	TP_PROTO(struct power_trace *it, unsigned int type, unsigned int state),
	      TP_ARGS(it, type, state));

DECLARE_TRACE(power_mark,
	TP_PROTO(struct power_trace *it, unsigned int type, unsigned int state),
	      TP_ARGS(it, type, state));

DECLARE_TRACE(power_end,
	TP_PROTO(struct power_trace *it),
	      TP_ARGS(it));

#endif /* _TRACE_POWER_H */
back to top