This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH v2 0/1] PR11096: Add support for the "module" argument to @var


From: "Yichun Zhang (agentzh)" <agentzh@gmail.com>

v2:
* Move cu_name from target_symbol to its subclasses cast_op and atvar_op.
* Revert the changes in .gitignore.
* Cleanup executable files at the end of the test files for @var when the
  verbse level is 0.
* Now @var attempts all the CUs that look like a match for the specified
  CU name patter. When no CU name is specified by the user, all the CUs
  will be attempted for the variable until a hit is found. Also add (passing)
  test file at_var_cu.exp for it.
* Add support for @var in tracepoint probe handlers and add (passing) test
  file at_var_tracepoint.exp for it.
* Allow the @var tests run for other runtimes like dyninst.
* Add new test file at_var_pie.exp for using @var to access globas in PIE.
  the tests are currently failing because even the current master does not
  really support using @var for globals in PIE nor DSO even when the module
  argument is not specified. So no regressions here.
* Define visit_atvar_op for void_statement_reducer and add (passing)
  test file at_var_void_stmt.exp for it.
* Define visit_atvar_op for varuse_collecting_visitor which fixes
  the bogus "Eliding side-effect-free expression" warning in v1 when
  the lvalue @var cannot be resolved. Add the (passing) test file
  at_var_unresolved_lvalue.exp for this case.

Thanks Josh Stone for all the suggestions.

Yichun Zhang (agentzh) (1):
  PR11096: Add support for the "module" argument to @var

 dwflpp.cxx                                         |  12 +-
 elaborate.cxx                                      |  48 ++++
 elaborate.h                                        |   1 +
 parse.cxx                                          |  29 +-
 staptree.cxx                                       |  76 +++++-
 staptree.h                                         |  19 +-
 tapsets.cxx                                        | 296 ++++++++++++++++-----
 testsuite/systemtap.base/at_var.exp                |   3 +
 testsuite/systemtap.base/at_var_cu.exp             |  56 ++++
 testsuite/systemtap.base/at_var_cu.stp             |  31 +++
 testsuite/systemtap.base/at_var_cu_1.c             |  12 +
 testsuite/systemtap.base/at_var_cu_2.c             |  13 +
 testsuite/systemtap.base/at_var_cu_3.c             |  13 +
 testsuite/systemtap.base/at_var_func.exp           |  48 ++++
 testsuite/systemtap.base/at_var_func.stp           |  21 ++
 testsuite/systemtap.base/at_var_lvalue.c           |  29 ++
 testsuite/systemtap.base/at_var_lvalue.exp         |  34 +++
 testsuite/systemtap.base/at_var_lvalue.stp         |  25 ++
 testsuite/systemtap.base/at_var_mark.exp           |   5 +-
 testsuite/systemtap.base/at_var_mark_func.exp      |  26 ++
 testsuite/systemtap.base/at_var_mark_func.stp      |  24 ++
 testsuite/systemtap.base/at_var_pie.exp            |  45 ++++
 testsuite/systemtap.base/at_var_timer_profile.c    |  27 ++
 testsuite/systemtap.base/at_var_timer_profile.exp  |  46 ++++
 testsuite/systemtap.base/at_var_timer_profile.stp  |  23 ++
 testsuite/systemtap.base/at_var_tracepoint.exp     |  10 +
 testsuite/systemtap.base/at_var_tracepoint.stp     |   9 +
 .../systemtap.base/at_var_unresolved_lvalue.exp    |  42 +++
 .../systemtap.base/at_var_unresolved_lvalue.stp    |   5 +
 testsuite/systemtap.base/at_var_void_stmt.c        |  27 ++
 testsuite/systemtap.base/at_var_void_stmt.exp      |  49 ++++
 testsuite/systemtap.base/at_var_void_stmt.stp      |  13 +
 testsuite/systemtap.base/global_var_kernel.exp     |   5 +-
 testsuite/systemtap.base/global_var_kernel.stp     |   7 +
 translate.cxx                                      |   8 +
 35 files changed, 1034 insertions(+), 103 deletions(-)
 create mode 100644 testsuite/systemtap.base/at_var_cu.exp
 create mode 100644 testsuite/systemtap.base/at_var_cu.stp
 create mode 100644 testsuite/systemtap.base/at_var_cu_1.c
 create mode 100644 testsuite/systemtap.base/at_var_cu_2.c
 create mode 100644 testsuite/systemtap.base/at_var_cu_3.c
 create mode 100644 testsuite/systemtap.base/at_var_func.exp
 create mode 100644 testsuite/systemtap.base/at_var_func.stp
 create mode 100644 testsuite/systemtap.base/at_var_lvalue.c
 create mode 100644 testsuite/systemtap.base/at_var_lvalue.exp
 create mode 100644 testsuite/systemtap.base/at_var_lvalue.stp
 create mode 100644 testsuite/systemtap.base/at_var_mark_func.exp
 create mode 100644 testsuite/systemtap.base/at_var_mark_func.stp
 create mode 100644 testsuite/systemtap.base/at_var_pie.exp
 create mode 100644 testsuite/systemtap.base/at_var_timer_profile.c
 create mode 100644 testsuite/systemtap.base/at_var_timer_profile.exp
 create mode 100644 testsuite/systemtap.base/at_var_timer_profile.stp
 create mode 100644 testsuite/systemtap.base/at_var_tracepoint.exp
 create mode 100644 testsuite/systemtap.base/at_var_tracepoint.stp
 create mode 100644 testsuite/systemtap.base/at_var_unresolved_lvalue.exp
 create mode 100644 testsuite/systemtap.base/at_var_unresolved_lvalue.stp
 create mode 100644 testsuite/systemtap.base/at_var_void_stmt.c
 create mode 100644 testsuite/systemtap.base/at_var_void_stmt.exp
 create mode 100644 testsuite/systemtap.base/at_var_void_stmt.stp

-- 
1.7.11.7


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]