Stackdb
Stackdb is a stackable, multi-target and -level source debugger and memory forensics library.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Functions | Variables
psaction.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/user.h>
#include <sys/ptrace.h>
#include <inttypes.h>
#include <signal.h>
#include <argp.h>
#include "log.h"
#include "dwdebug.h"
#include "target_api.h"
#include "target.h"
#include "target_os_linux_generic.h"
#include "probe_api.h"
#include "probe.h"
#include "alist.h"
#include "list.h"
Include dependency graph for psaction.c:

Go to the source code of this file.

Data Structures

struct  local_sigset_t
 
struct  signame
 
struct  psa_siginfo
 
struct  linux_task_struct
 
struct  psa_argp_state
 

Macros

#define LOCAL_NSIG   64
 
#define LOCAL_NSIG_BPW   32
 
#define LOCAL_NSIG_WORDS   (LOCAL_NSIG / LOCAL_NSIG_BPW)
 
#define LOCAL_TIF_SIGPENDING   (1UL << 2)
 
#define LOCAL_SIGNAL_GROUP_EXIT   0x00000008
 
#define LOCAL_TIF_SIGPENDING   (1UL << 2)
 

Functions

target_status_t cleanup ()
 
void sigh (int signo)
 
int pslist_list (struct target *target, struct value *value, void *data)
 
int pslist_check (struct target *target, struct value *value, void *data)
 
int pslist_zombie (struct target *target, struct value *value, void *data)
 
int pslist_sig (struct target *target, struct value *value, void *data)
 
int __ps_kill (struct target *target, struct value *value)
 
int pslist_kill (struct target *target, struct value *value, void *data)
 
int pslist_load (struct target *target, struct value *value, void *data)
 
error_t psa_argp_parse_opt (int key, char *arg, struct argp_state *state)
 
int main (int argc, char **argv)
 

Variables

struct targett = NULL
 
GHashTable * probes = NULL
 
struct psa_argp_state opts
 
struct argp_option psa_argp_opts []
 
struct argp psa_argp
 

Macro Definition Documentation

#define LOCAL_NSIG   64

Definition at line 165 of file psaction.c.

#define LOCAL_NSIG_BPW   32

Definition at line 166 of file psaction.c.

#define LOCAL_NSIG_WORDS   (LOCAL_NSIG / LOCAL_NSIG_BPW)

Definition at line 167 of file psaction.c.

#define LOCAL_SIGNAL_GROUP_EXIT   0x00000008
#define LOCAL_TIF_SIGPENDING   (1UL << 2)
#define LOCAL_TIF_SIGPENDING   (1UL << 2)

Function Documentation

int __ps_kill ( struct target target,
struct value value 
)

Definition at line 420 of file psaction.c.

target_status_t cleanup ( void  )

Definition at line 47 of file psaction.c.

int main ( int  argc,
char **  argv 
)

Definition at line 716 of file psaction.c.

error_t psa_argp_parse_opt ( int  key,
char *  arg,
struct argp_state *  state 
)

Definition at line 674 of file psaction.c.

int pslist_check ( struct target target,
struct value value,
void *  data 
)

Definition at line 100 of file psaction.c.

int pslist_kill ( struct target target,
struct value value,
void *  data 
)

Definition at line 532 of file psaction.c.

int pslist_list ( struct target target,
struct value value,
void *  data 
)

Definition at line 79 of file psaction.c.

int pslist_load ( struct target target,
struct value value,
void *  data 
)

Definition at line 578 of file psaction.c.

int pslist_sig ( struct target target,
struct value value,
void *  data 
)

Definition at line 275 of file psaction.c.

int pslist_zombie ( struct target target,
struct value value,
void *  data 
)

Definition at line 129 of file psaction.c.

void sigh ( int  signo)

Definition at line 71 of file psaction.c.

Variable Documentation

struct psa_argp_state opts

Definition at line 668 of file psaction.c.

GHashTable* probes = NULL

Definition at line 45 of file psaction.c.

struct argp psa_argp
Initial value:
= {
psa_argp_opts,psa_argp_parse_opt,NULL,NULL,NULL,NULL,NULL,
}
struct argp_option psa_argp_opts[]
Definition: psaction.c:670
error_t psa_argp_parse_opt(int key, char *arg, struct argp_state *state)
Definition: psaction.c:674

Definition at line 712 of file psaction.c.

struct argp_option psa_argp_opts[]
Initial value:
= {
{ 0,0,0,0,0,0 },
}

Definition at line 670 of file psaction.c.

struct target* t = NULL

Definition at line 43 of file psaction.c.