Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to concatenate strings? #21

Closed
mlen opened this issue Mar 21, 2017 · 1 comment
Closed

How to concatenate strings? #21

mlen opened this issue Mar 21, 2017 · 1 comment

Comments

@mlen
Copy link

mlen commented Mar 21, 2017

Is it possible to do this? It'd be nice to have this, so that I can implement execsnoop with return code check. Currently, I can only do stuff like this:

kprobe:sys_execve {
  x = 0;

  printf("%s: ", mem(arg(0), "128s"));

  unroll (10) {
    if (mem(arg(1) + x*sizeof("p"), "p")) {
      printf("%s ", mem(mem(arg(1) + x*sizeof("p"), "p"), "128s"));
      x=x+1;
    }
  }

  printf("\n");
}
@mlen
Copy link
Author

mlen commented Mar 21, 2017

Noticed how you use multikey map for this in examples, nice!

@mlen mlen closed this as completed Mar 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant