Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
ocd.c File Reference
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
#include <asm/ocd.h>

Go to the source code of this file.

Functions

void ocd_enable (struct task_struct *child)
 
void ocd_disable (struct task_struct *child)
 
 arch_initcall (ocd_init)
 

Function Documentation

arch_initcall ( ocd_init  )
void ocd_disable ( struct task_struct child)

ocd_disable - disable on-chip debugging : task that was being debugged, but isn't anymore

If is non-NULL, ocd_disable() checks if debugging is enabled for , and if it isn't, does nothing.

If is NULL (e.g. when debugging the kernel), or debugging is enabled, ocd_disable() decrements the reference count, and if it reaches zero, disables the debugging hardware.

Definition at line 59 of file ocd.c.

void ocd_enable ( struct task_struct child)

ocd_enable - enable on-chip debugging : task to be debugged

If is non-NULL, ocd_enable() first checks if debugging has already been enabled for , and if it has, does nothing.

If is NULL (e.g. when debugging the kernel), or debugging has not already been enabled for it, ocd_enable() increments the reference count and enables the debugging hardware.

Definition at line 28 of file ocd.c.