]> granicus.if.org Git - strace/commit
pathtrace.c: introduce user-provided sets of paths
authorNikolay Marchuk <marchuk.nikolay.a@gmail.com>
Sat, 8 Jul 2017 08:28:56 +0000 (15:28 +0700)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 10 Jul 2017 00:10:50 +0000 (00:10 +0000)
commit09c781b184ac6e2104715a6a22ec4c766656ac75
tree7a839fc2b61c2e7778469870e06d384aa45a055a
parentb53552b2d834ae83ff723cf5d6927ae73c257632
pathtrace.c: introduce user-provided sets of paths

* defs.h (struct path_set): New structure.
(global_path_set): New variable prototype.
(tracing_paths): Change macro body to use global_path_set variable.
(pathtrace_select_set): Add "struct path_set *" argument.
(pathtrace_match_set): Likewise.  Change return type to bool.
(pathtrace_select, pathtrace_match): Change into thin macro wrappers
around pathtrace_select_set and pathtrace_match_set, repsectively.
* pathtrace.c (global_path_set): New variable.
(storepath, pathtrace_select_set): Add "struct path_set *" argument.
(pathmatch, upathmatch, fdmatch, pathtrace_match_set): Likewise.
Change return type to bool.
defs.h
pathtrace.c