aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/mm.h3
-rw-r--r--include/linux/ptrace.h10
-rw-r--r--include/linux/sched.h13
3 files changed, 5 insertions, 21 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index bff1f0d475c7..a3963ba23a6d 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1320,7 +1320,6 @@ int vmemmap_populate(struct page *start_page, unsigned long pages, int node);
1320void vmemmap_populate_print_last(void); 1320void vmemmap_populate_print_last(void);
1321 1321
1322extern void *alloc_locked_buffer(size_t size); 1322extern void *alloc_locked_buffer(size_t size);
1323extern void free_locked_buffer(void *buffer, size_t size); 1323extern void refund_locked_buffer_memory(struct mm_struct *mm, size_t size);
1324extern void release_locked_buffer(void *buffer, size_t size);
1325#endif /* __KERNEL__ */ 1324#endif /* __KERNEL__ */
1326#endif /* _LINUX_MM_H */ 1325#endif /* _LINUX_MM_H */
diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h
index 67c15653fc23..59e133d39d50 100644
--- a/include/linux/ptrace.h
+++ b/include/linux/ptrace.h
@@ -95,7 +95,6 @@ extern void __ptrace_link(struct task_struct *child,
95 struct task_struct *new_parent); 95 struct task_struct *new_parent);
96extern void __ptrace_unlink(struct task_struct *child); 96extern void __ptrace_unlink(struct task_struct *child);
97extern void exit_ptrace(struct task_struct *tracer); 97extern void exit_ptrace(struct task_struct *tracer);
98extern void ptrace_fork(struct task_struct *task, unsigned long clone_flags);
99#define PTRACE_MODE_READ 1 98#define PTRACE_MODE_READ 1
100#define PTRACE_MODE_ATTACH 2 99#define PTRACE_MODE_ATTACH 2
101/* Returns 0 on success, -errno on denial. */ 100/* Returns 0 on success, -errno on denial. */
@@ -327,15 +326,6 @@ static inline void user_enable_block_step(struct task_struct *task)
327#define arch_ptrace_untrace(task) do { } while (0) 326#define arch_ptrace_untrace(task) do { } while (0)
328#endif 327#endif
329 328
330#ifndef arch_ptrace_fork
331/*
332 * Do machine-specific work to initialize a new task.
333 *
334 * This is called from copy_process().
335 */
336#define arch_ptrace_fork(child, clone_flags) do { } while (0)
337#endif
338
339extern int task_current_syscall(struct task_struct *target, long *callno, 329extern int task_current_syscall(struct task_struct *target, long *callno,
340 unsigned long args[6], unsigned int maxargs, 330 unsigned long args[6], unsigned int maxargs,
341 unsigned long *sp, unsigned long *pc); 331 unsigned long *sp, unsigned long *pc);
diff --git a/include/linux/sched.h b/include/linux/sched.h
index b4c38bc8049c..f4e3985c8593 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -96,8 +96,8 @@ struct exec_domain;
96struct futex_pi_state; 96struct futex_pi_state;
97struct robust_list_head; 97struct robust_list_head;
98struct bio; 98struct bio;
99struct bts_tracer;
100struct fs_struct; 99struct fs_struct;
100struct bts_context;
101 101
102/* 102/*
103 * List of flags we want to share for kernel threads, 103 * List of flags we want to share for kernel threads,
@@ -1209,18 +1209,11 @@ struct task_struct {
1209 struct list_head ptraced; 1209 struct list_head ptraced;
1210 struct list_head ptrace_entry; 1210 struct list_head ptrace_entry;
1211 1211
1212#ifdef CONFIG_X86_PTRACE_BTS
1213 /* 1212 /*
1214 * This is the tracer handle for the ptrace BTS extension. 1213 * This is the tracer handle for the ptrace BTS extension.
1215 * This field actually belongs to the ptracer task. 1214 * This field actually belongs to the ptracer task.
1216 */ 1215 */
1217 struct bts_tracer *bts; 1216 struct bts_context *bts;
1218 /*
1219 * The buffer to hold the BTS data.
1220 */
1221 void *bts_buffer;
1222 size_t bts_size;
1223#endif /* CONFIG_X86_PTRACE_BTS */
1224 1217
1225 /* PID/PID hash table linkage. */ 1218 /* PID/PID hash table linkage. */
1226 struct pid_link pids[PIDTYPE_MAX]; 1219 struct pid_link pids[PIDTYPE_MAX];
@@ -2001,8 +1994,10 @@ extern void set_task_comm(struct task_struct *tsk, char *from);
2001extern char *get_task_comm(char *to, struct task_struct *tsk); 1994extern char *get_task_comm(char *to, struct task_struct *tsk);
2002 1995
2003#ifdef CONFIG_SMP 1996#ifdef CONFIG_SMP
1997extern void wait_task_context_switch(struct task_struct *p);
2004extern unsigned long wait_task_inactive(struct task_struct *, long match_state); 1998extern unsigned long wait_task_inactive(struct task_struct *, long match_state);
2005#else 1999#else
2000static inline void wait_task_context_switch(struct task_struct *p) {}
2006static inline unsigned long wait_task_inactive(struct task_struct *p, 2001static inline unsigned long wait_task_inactive(struct task_struct *p,
2007 long match_state) 2002 long match_state)
2008{ 2003{