Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306647
b: refs/heads/master
c: 3a6b766
h: refs/heads/master
i:
  306645: 5d63e25
  306643: 1748c3f
  306639: ddd7fc3
v: v3
  • Loading branch information
Srikar Dronamraju authored and Ingo Molnar committed May 7, 2012
1 parent 1d7a0b2 commit 0d7f0a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cbc91f71b51b8335f1fc7ccfca8011f31a717367
refs/heads/master: 3a6b76661da8e92124a813b43607f5bec1a618de
16 changes: 8 additions & 8 deletions trunk/kernel/trace/trace_kprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ static struct trace_probe *alloc_trace_probe(const char *group,
void *addr,
const char *symbol,
unsigned long offs,
int nargs, int is_return)
int nargs, bool is_return)
{
struct trace_probe *tp;
int ret = -ENOMEM;
Expand Down Expand Up @@ -944,7 +944,7 @@ static int split_symbol_offset(char *symbol, unsigned long *offset)
#define PARAM_MAX_STACK (THREAD_SIZE / sizeof(unsigned long))

static int parse_probe_vars(char *arg, const struct fetch_type *t,
struct fetch_param *f, int is_return)
struct fetch_param *f, bool is_return)
{
int ret = 0;
unsigned long param;
Expand Down Expand Up @@ -977,7 +977,7 @@ static int parse_probe_vars(char *arg, const struct fetch_type *t,

/* Recursive argument parser */
static int __parse_probe_arg(char *arg, const struct fetch_type *t,
struct fetch_param *f, int is_return)
struct fetch_param *f, bool is_return)
{
int ret = 0;
unsigned long param;
Expand Down Expand Up @@ -1089,7 +1089,7 @@ static int __parse_bitfield_probe_arg(const char *bf,

/* String length checking wrapper */
static int parse_probe_arg(char *arg, struct trace_probe *tp,
struct probe_arg *parg, int is_return)
struct probe_arg *parg, bool is_return)
{
const char *t;
int ret;
Expand Down Expand Up @@ -1162,7 +1162,7 @@ static int create_trace_probe(int argc, char **argv)
*/
struct trace_probe *tp;
int i, ret = 0;
int is_return = 0, is_delete = 0;
bool is_return = false, is_delete = false;
char *symbol = NULL, *event = NULL, *group = NULL;
char *arg;
unsigned long offset = 0;
Expand All @@ -1171,11 +1171,11 @@ static int create_trace_probe(int argc, char **argv)

/* argc must be >= 1 */
if (argv[0][0] == 'p')
is_return = 0;
is_return = false;
else if (argv[0][0] == 'r')
is_return = 1;
is_return = true;
else if (argv[0][0] == '-')
is_delete = 1;
is_delete = true;
else {
pr_info("Probe definition must be started with 'p', 'r' or"
" '-'.\n");
Expand Down

0 comments on commit 0d7f0a1

Please sign in to comment.