]> sourceware.org Git - systemtap.git/log
systemtap.git
18 years agotypo release-0.5
fche [Fri, 2 Dec 2005 19:44:52 +0000 (19:44 +0000)]
typo

18 years agotypo
fche [Fri, 2 Dec 2005 19:43:03 +0000 (19:43 +0000)]
typo

18 years ago* add %changelog clause
fche [Fri, 2 Dec 2005 19:41:59 +0000 (19:41 +0000)]
* add %changelog clause

18 years ago2005-12-02 Frank Ch. Eigler <fche@elastic.org>
fche [Fri, 2 Dec 2005 19:34:36 +0000 (19:34 +0000)]
2005-12-02  Frank Ch. Eigler  <fche@elastic.org>

* configure.ac: Bump version number.
* stap.1.in: Document some of the new print/stats stuff.
* configure: Regenerated.
* systemtap.spec.in: Enable ia64 and ppc builds.

18 years ago2005-12-02 Martin Hunt <hunt@redhat.com>
hunt [Fri, 2 Dec 2005 17:41:56 +0000 (17:41 +0000)]
2005-12-02  Martin Hunt  <hunt@redhat.com>

* procfs.c (_stp_set_buffers): kmalloc the buffers instead
of vmalloc.
(_stp_register_procfs): Ditto.
(_stp_unregister_procfs): kfree the buffers.

18 years ago2005-12-01 Frank Ch. Eigler <fche@elastic.org>
fche [Fri, 2 Dec 2005 03:21:00 +0000 (03:21 +0000)]
2005-12-01  Frank Ch. Eigler  <fche@elastic.org>

PR 1944 improved hack.
* translator.cxx (c_tmpcounter::visit_block): New routine, allows
overlay of sequential statements' temporaries within context.

18 years ago2005-12-01 Frank Ch. Eigler <fche@redhat.com>
fche [Thu, 1 Dec 2005 21:10:30 +0000 (21:10 +0000)]
2005-12-01  Frank Ch. Eigler  <fche@redhat.com>

PR 1944 quick hack.
* translator.cxx (translate_pass): Reduce default MAXNESTING to 10.
(emit_module_init): Add a paranoid check against oversize contexts.
* stap.1.in: Document MAXNESTING change.

2005-12-01  Frank Ch. Eigler  <fche@redhat.com>

PR 1944 quick hack.
* testsuite/systemtap.sample/control_limits.*: Adapt to new
MAXNESTING default.

18 years ago2005-11-30 Frank Ch. Eigler <fche@redhat.com>
fche [Wed, 30 Nov 2005 22:19:03 +0000 (22:19 +0000)]
2005-11-30  Frank Ch. Eigler  <fche@redhat.com>

PR 1276
From Josh Stone <joshua.i.stone@intel.com>:
* tapsets.cxx (profile_derived_probe, profile_builder,
register_standard_tapsets): Support timer.profile variety.
* stapprobes.5.in: Document it.
* testsuite/builok/fourteen.stp: Test its buildability.

18 years ago2005-11-30 Martin Hunt <hunt@redhat.com>
hunt [Wed, 30 Nov 2005 08:39:03 +0000 (08:39 +0000)]
2005-11-30  Martin Hunt  <hunt@redhat.com>

* io.c (_stp_exit): To prevent any possible interactions
with the probed function, just set a flag here.

18 years ago2005-11-30 Martin Hunt <hunt@redhat.com>
hunt [Wed, 30 Nov 2005 08:38:13 +0000 (08:38 +0000)]
2005-11-30  Martin Hunt  <hunt@redhat.com>

* transport.h (STP_WORK_TIMER): Declare.
* transport.c (_stp_work_queue): Wake up every STP_WORK_QUEUE
jiffies and check IO and exit status.
(_stp_handle_exit): Deleted.
* procfs.c (_stp_proc_write_cmd): Just set exit flag on STP_EXIT.
(_stp_write): Don't call wake_up_interruptible.

18 years ago2005-11-29 Martin Hunt <hunt@redhat.com>
hunt [Wed, 30 Nov 2005 00:54:11 +0000 (00:54 +0000)]
2005-11-29  Martin Hunt  <hunt@redhat.com>

* recreate_links: Remove links to deleted files.

18 years ago[ChangeLog]
graydon [Tue, 29 Nov 2005 01:06:47 +0000 (01:06 +0000)]
[ChangeLog]

2005-11-28  Graydon Hoare  <graydon@redhat.com>

* translate.cxx (var::assert_hist_compatible): New method.
(var::hist): New method.
(c_unparser::load_aggregate): New method.
(hist_op_downcaster): Remove, it was a mistake.
(expression_is_hist_op): Likewise.
(c_tmpcounter::visit_print_format): Implement print(@hist(...)).
(c_unparser::visit_print_format): Likewise.

* staptree.h (struct print_format): Add optional hist_op* member.
* staptree.cxx (traversing_visitor::visit_functioncall): Visit
hist_op if present in print_format.
(deep_copy_visitor::visit_print_format): Likewise.

* parse.cxx (parse_symbol): Special case to consume print(@hist(...)).

* elaborate.cxx (typeresolution_info::visit_arrayindex): Fix type inference bug.
(typeresolution_info::visit_foreach_loop): Likewise.

* testsuite/buildok/print_histograms.stp: New test.

[runtime/ChangeLog]

2005-11-28  Graydon Hoare  <graydon@redhat.com>

* stat-common.c (_stp_stat_print_histogram): Various formatting
corrections and aesthetic tweaks.
(__stp_stat_add): Correction to linear bucket underflow cases.

18 years ago2005-11-28 Martin Hunt <hunt@redhat.com>
hunt [Mon, 28 Nov 2005 22:08:39 +0000 (22:08 +0000)]
2005-11-28  Martin Hunt  <hunt@redhat.com>

* alloc.c (__stp_valloc_percpu): Use same code for up and smp.
(_stp_per_cpu_ptr): New macro.
* user/alloc.c: Ditto.
* map.c: Use _stp_map_cpu_ptr().
* map-stat.c: Ditto.
* pmap-gen.c: Ditto.
* runtime.h: Include alloc.c
* user/runtime.h: Ditto.

18 years ago2005-11-28 Frank Ch. Eigler <fche@redhat.com>
fche [Mon, 28 Nov 2005 21:58:39 +0000 (21:58 +0000)]
2005-11-28  Frank Ch. Eigler  <fche@redhat.com>

* translate.cxx (c_tmpcounter_assignment::visit_symbol): Don't
emit unused temporary into context.  Saves mucho space with strings.

18 years ago2005-11-28 Martin Hunt <hunt@redhat.com>
hunt [Mon, 28 Nov 2005 20:51:06 +0000 (20:51 +0000)]
2005-11-28  Martin Hunt  <hunt@redhat.com>

* map.c (_stp_pmap_del): Use _stp_free_percpu() to
free pmaps.

18 years ago2005-11-28 Martin Hunt <hunt@redhat.com>
hunt [Mon, 28 Nov 2005 20:08:09 +0000 (20:08 +0000)]
2005-11-28  Martin Hunt  <hunt@redhat.com>

* map-stat.c (_stp_pmap_new_hstat_log): Fix typo. Call
_stp_pmap_new() instead of _stp_map_new().

18 years ago* commented pciconfig_* system calls that failed to resolve to probe
kevinrs [Mon, 28 Nov 2005 19:09:43 +0000 (19:09 +0000)]
* commented pciconfig_* system calls that failed to resolve to probe
  points.
* commented reference to arg stack_start in clone, fork, vfork that
  were unable to resolve properly.
* commented arg reference to pt_regs in execve, it is an unsupported
  type.
* commented arg reference to union semun arg in semctl, it is an
  unsupported type.
* This tapset tested for i386.

18 years ago.
roland [Mon, 28 Nov 2005 02:14:01 +0000 (02:14 +0000)]
.

18 years ago2005-11-27 Roland McGrath <roland@redhat.com>
roland [Mon, 28 Nov 2005 02:13:57 +0000 (02:13 +0000)]
2005-11-27  Roland McGrath  <roland@redhat.com>

* loc2c.c (location_from_address): Diagnose null FB_ATTR specially.

18 years ago.
roland [Mon, 28 Nov 2005 02:11:39 +0000 (02:11 +0000)]
.

18 years ago2005-11-27 Roland McGrath <roland@redhat.com>
roland [Mon, 28 Nov 2005 02:11:36 +0000 (02:11 +0000)]
2005-11-27  Roland McGrath  <roland@redhat.com>

* loc2c.c (location_from_address): Fix function name in error message.

18 years ago(location_from_address): w/s tweak
roland [Mon, 28 Nov 2005 02:10:48 +0000 (02:10 +0000)]
(location_from_address): w/s tweak

18 years ago2005-11-27 Frank Ch. Eigler <fche@elastic.org>
fche [Mon, 28 Nov 2005 01:16:03 +0000 (01:16 +0000)]
2005-11-27  Frank Ch. Eigler  <fche@elastic.org>

* loc2c.c (location_from_address): Tolerate errors with NULL *input.

18 years ago.
roland [Sun, 27 Nov 2005 02:05:39 +0000 (02:05 +0000)]
.

18 years ago.
roland [Sun, 27 Nov 2005 02:05:15 +0000 (02:05 +0000)]
.

18 years ago2005-11-26 Roland McGrath <roland@redhat.com>
roland [Sun, 27 Nov 2005 02:05:00 +0000 (02:05 +0000)]
2005-11-26  Roland McGrath  <roland@redhat.com>

* loc2c.c (struct location): Move frame_base member out of the union.
(alloc_location): Initialize it.
(new_synthetic_loc, translate, location_from_address): Update uses.
(emit_loc_value): Don't handle frame_base here.
(c_emit_location): Do it here instead.
(translate): Track USED_DEREF separately for each piece.
Use a temporary struct when allocating a new piece, letting
a pending loc_address piece finish up first.

18 years ago.
roland [Sun, 27 Nov 2005 00:09:50 +0000 (00:09 +0000)]
.

18 years ago2005-11-26 Roland McGrath <roland@redhat.com>
roland [Sun, 27 Nov 2005 00:09:45 +0000 (00:09 +0000)]
2005-11-26  Roland McGrath  <roland@redhat.com>

* loc2c.c (translate): Initialize LOC->address.used_deref at start.

18 years ago2005-11-26 Roland McGrath <roland@redhat.com>
roland [Sun, 27 Nov 2005 00:09:43 +0000 (00:09 +0000)]
2005-11-26  Roland McGrath  <roland@redhat.com>

* loc2c-test.c (main): Free SCOPES at end.
(handle_variable): Free POOL at end.

18 years agotypo
roland [Sat, 26 Nov 2005 23:21:05 +0000 (23:21 +0000)]
typo

18 years ago2005-11-25 Frank Ch. Eigler <fche@elastic.org>
fche [Fri, 25 Nov 2005 20:31:40 +0000 (20:31 +0000)]
2005-11-25  Frank Ch. Eigler  <fche@elastic.org>

PR 1336.
* tapsets.cxx (translate_final_fetch_or_store): Remove apparently
unnecessary check.
* testsuite/transok/ten.stp: New test for void* integerification.

18 years ago2005-11-24 Frank Ch. Eigler <fche@redhat.com>
fche [Thu, 24 Nov 2005 22:45:52 +0000 (22:45 +0000)]
2005-11-24  Frank Ch. Eigler  <fche@redhat.com>

PR 1903
* parse.cxx (eval_pp_conditional): Support %( arch == "i686" %) form.
* stap.1.in: Document it.
* testsuite/parseok/fourteen.stp: Test it.
* session.h (architecture): New field.
* main.cxx (main): Initialize it.

18 years ago2005-11-24 Frank Ch. Eigler <fche@redhat.com>
fche [Thu, 24 Nov 2005 21:18:37 +0000 (21:18 +0000)]
2005-11-24  Frank Ch. Eigler  <fche@redhat.com>

PR 1917
* translate.cxx (emit_common_header, emit_module_init,
emit_module_exit): Switch context array to per-cpu kmalloc variant.
* tapsets (*::emit_probe_entires): Use per_cpu_ptr() for my context.

18 years ago2005-11-23 Graydon Hoare <graydon@redhat.com>
graydon [Thu, 24 Nov 2005 05:55:52 +0000 (05:55 +0000)]
2005-11-23  Graydon Hoare  <graydon@redhat.com>

* elaborate.h (get_symbol_within_expression): Make visible.
* elaborate.cxx (get_symbol_within_expression): Make non-static.
(stat_decl_collector): New struct.
(semantic_pass_stats): New semantic pass.
(semantic_pass): Call it.
(semantic_pass_symbols): Remove collection of statistic_decls from files.
(visit_stat_op): Only fail if inferred type is not pe_long.

* parse.cxx (parser::parse): Don't pass per-file statistic_decl
into parse_global.
(parser::parse_global): Don't parse global statistic_decls,
they're obsolete.
* parse.hh (parser::parse_global): Adjust signature to match.

* session.h (statistic_decl::operator==): New method.

* staptree.h (print_format::is_empty): New method.
(stapfile::stat_decls): Remove field.
* staptree.cxx (string_to_components): Fix bugs in format-string
parser.

* translate.cxx (var): Make private fields protected.
(var::init): Support HIST_NONE stats.
(aggvar): New struct.
(mapvar::is_parallel): New method.
(mapvar::call_prefix): Use it.
(mapvar::calculate_aggregate): New method.
(mapvar::fetch_existing_aggregate): New method.
(mapvar::get): Support pe_stats.
(mapvar::init): Use is_parallel(), and support HIST_NONE.
(itervar::itervar): Only fault on pe_unknown.
(itervar::start): Use mapvar::is_parallel and
mapvar::fetch_existing_aggregate.
(emit_map_type_instantiations): Include alloc.c before pmap-gen.c.
Include pmap-gen.c for pe_stats maps.
(c_unparser::gensym_aggregate): New method.
(c_unparser::visit_foreach_loop): Handle mapvar::is_parallel case.
(arrayindex_downcaster): New struct.
(expression_is_arrayindex): New function.
(c_tmpcounter::visit_stat_op): New method.
(c_unparser::visit_stat_op): Implement.
(c_unparser::visit_hist_op): Add commentary, still not implemented.

* testsuite/buildok/stat_{insert,extract}.stp: New tests.
* testsuite/semok/ten.stp: Correct for changes to global declarations.
* testsuite/semko/*.stp: Likewise.

18 years ago* from presentation given at Beaverton group meeting
fche [Wed, 23 Nov 2005 18:23:59 +0000 (18:23 +0000)]
* from presentation given at Beaverton group meeting

18 years ago.
roland [Tue, 22 Nov 2005 00:30:03 +0000 (00:30 +0000)]
.

18 years ago2005-11-21 Roland McGrath <roland@redhat.com>
roland [Tue, 22 Nov 2005 00:29:54 +0000 (00:29 +0000)]
2005-11-21  Roland McGrath  <roland@redhat.com>

* loc2c.c (c_translate_location): Take Dwarf_Op vector as argument
directly, not Dwarf_Attribute.p
* loc2c.h: Update decl.
* loc2c-test.c (get_location): New function.
(handle_variable): Use it.
* tapsets.cxx (dwflpp::translate_location): New method.
(dwflpp::translate_components, dwflpp::literal_stmt_for_local): Use it.

18 years ago2005-11-21 Frank Ch. Eigler <fche@elastic.org>
fche [Mon, 21 Nov 2005 19:02:44 +0000 (19:02 +0000)]
2005-11-21  Frank Ch. Eigler  <fche@elastic.org>

PR 1276
From Josh Stone <joshua.i.stone@intel.com>:
* tapsets.cxx (timer_derived_probe, timer_builder,
register_standard_tapsets): Support timer.ms() variety.
* stapprobes.5.in: Document it.
* testsuite/builok/fourteen.stp: Test its buildability.

18 years ago2005-11-18 Martin Hunt <hunt@redhat.com>
hunt [Fri, 18 Nov 2005 21:57:30 +0000 (21:57 +0000)]
2005-11-18  Martin Hunt  <hunt@redhat.com>

PR 1837
* testsuite/buildko/one.stp: Replace printk.
* testsuite/buildok/one.stp: Ditto.
* testsuite/buildok/two.stp: Ditto.
* testsuite/semko/fifteen.stp: Ditto.
* testsuite/semko/fourteen.stp: Ditto.
* testsuite/semko/thirteen.stp: Ditto.
* testsuite/transok/eight.stp: Ditto.
* testsuite/transok/seven.stp: Ditto.
* testsuite/transok/six.stp: Ditto.

* tapsets.cxx (*::emit_probe_entries): Replace printk() calls
with _stp_warn().

* stap.1.in: Replace printk with printf in example.

* stapfuncs.5.in: Remove docs for printk and add for
print and printf.

* tapset/logging.stp (printk): Deleted.

18 years ago2005-11-13 Graydon Hoare <graydon@redhat.com>
graydon [Mon, 14 Nov 2005 04:39:47 +0000 (04:39 +0000)]
2005-11-13  Graydon Hoare  <graydon@redhat.com>

* staptree.h (struct indexable): New struct.
(classify_indexable): New function.
(classify_const_indexable): New function.
(struct symbol): Implement indexable.
(struct arrayindex): Take indexable as base.
(struct foreach_loop): Take indexable as base.
(struct print_format): New struct.
(enum stat_component_type): New enum.
(struct stat_op): New struct.
(enum historgram_type): New enum.
(struct hist_op): New struct.
(struct visitor)
(struct traversing_visitor)
(struct throwing_visitor)
(struct deep_copy_visitor): Add new visitor methods.
(require): Specialize for indexable*.

* staptree.cxx (print_format::*)
(stat_op::*)
(hist_op::*)
(indexable::*)
(traversing_visitor::*)
(throwing_visitor::*)
(deep_copy_visitor::*)
(classify_indexable)
(classify_const_indexable): Implement
(deep_copy_visitor::*): Update to use indexables.

* parse.h (parser::parse_indexable): New method.
(parser::parse_hist_op_or_bare_name): New method.

* parse.cxx (lexer::scan): Accept @ in identifiers.
(parser::parse_array_in)
(parser::parse_foreach_loop): Call parse_indexable.
(parser::parse_hist_op_or_bare_name): Implement.
(parser::parse_indexable): Implement.
(parser::parse_symbol): Accept printf, stat_ops, hist_ops.

* elaborate.h (struct typeresolution_info): Add methods for
visiting print_format, stat_op, hist_op.

* elaborate.cxx (symbol_fetcher): New class.
(get_symbol_within_expression): New function.
(get_symbol_within_indexable): New function.
(mutated_var_collector): Replace mutated_map_collector.
(no_var_mutation_during_iteration_check): Replace
no_map_mutation_during_iteration_check.
(semantic_pass_vars): Replace semantic_pass_maps.
(semantic_pass): Update call accordingly.
(symresolution_info::*) Add new visitors, teach about indexables
(typeresolution_info::*) Likewise.

* translate.cxx
(c_unparser::getiter): Take symbol, not foreach_loop.
(c_unparser::*) Add new visitors, teach about indexables.
(c_tmpcounter::*)
(delete_statement_operand_visitor::visit_arrayindex)
(c_tmpcounter_assignment::*)
(c_unparser_assignment::*): Likewise.
(hist_op_downcaster): New struct.
(expression_is_hist_op): New function.

* testsuite/buildok/printf.stp: New test for print_format.

18 years ago2005-11-11 Martin Hunt <hunt@redhat.com>
hunt [Fri, 11 Nov 2005 17:47:18 +0000 (17:47 +0000)]
2005-11-11  Martin Hunt  <hunt@redhat.com>

* map.h: Removed old API macros and prototypes.

18 years ago2005-11-10 Martin Hunt <hunt@redhat.com>
hunt [Fri, 11 Nov 2005 06:17:29 +0000 (06:17 +0000)]
2005-11-10  Martin Hunt  <hunt@redhat.com>

* pmap-gen.c (_stp_pmap_get()): New function. Aggregates
the per-cpu map nodes into an aggregation map node.

* map.c (_stp_new_agg): Return a struct map_node *.
(_stp_add_agg): If count is 0  when adding,
just set the stats.

18 years ago2005-11-10 Martin Hunt <hunt@redhat.com>
hunt [Fri, 11 Nov 2005 06:13:24 +0000 (06:13 +0000)]
2005-11-10  Martin Hunt  <hunt@redhat.com>
* pmaps/ix2.c: New test. Test _stp_pmap_get_*().
* pmaps/iii3.c: New test. Test _stp_pmap_get_*().
* pmaps/pmap.test: Update.

18 years ago* system_calls.stp
kevinrs [Thu, 10 Nov 2005 21:23:27 +0000 (21:23 +0000)]
* system_calls.stp
  Polished entry point aliases, no more pointer-deref
  faults (instead the user-space address is given for
  pointer arguments). Return probe aliases still dont
  do much. Tested on vanilla 2.6.13 and 2.6.14.
* aux_syscalls.stp
  Any helpers for the syscall tapset are now in this
  file. More to come.

18 years ago2005-11-10 Martin Hunt <hunt@redhat.com>
hunt [Thu, 10 Nov 2005 21:22:35 +0000 (21:22 +0000)]
2005-11-10  Martin Hunt  <hunt@redhat.com>
* map.c: Doc updates.
* pmap-gen.c: Change a bunch of generated function names to
avoid conflicts with maps with the same key and value types.

18 years ago2005-11-10 Martin Hunt <hunt@redhat.com>
hunt [Thu, 10 Nov 2005 21:19:29 +0000 (21:19 +0000)]
2005-11-10  Martin Hunt  <hunt@redhat.com>

* pmaps/ii2.c: New test of maps and pmaps with the same keysym.
* pmaps/pmap.test: Update.

18 years ago2005-11-10 Frank Ch. Eigler <fche@elastic.org>
fche [Thu, 10 Nov 2005 19:16:15 +0000 (19:16 +0000)]
2005-11-10  Frank Ch. Eigler  <fche@elastic.org>

* translate.cxx (c_unparser::visit_array_in, visit_arrayindex):
Finish adapting to PR 1275 by switching back to read locks.

18 years ago2005-11-10 Martin Hunt <hunt@redhat.com>
hunt [Thu, 10 Nov 2005 18:33:54 +0000 (18:33 +0000)]
2005-11-10  Martin Hunt  <hunt@redhat.com>

* map.c (_stp_cmp): Use _stp_div64().

18 years ago*** empty log message ***
hunt [Wed, 9 Nov 2005 23:12:38 +0000 (23:12 +0000)]
*** empty log message ***

18 years ago2005-11-09 Martin Hunt <hunt@redhat.com>
hunt [Wed, 9 Nov 2005 22:46:49 +0000 (22:46 +0000)]
2005-11-09  Martin Hunt  <hunt@redhat.com>

* translate.cxx: New API uses HIST_LOG and HIST_LINEAR
instead of HSTAT_LOG and HSTAT_LINEAR.

18 years ago2005-11-09 Martin Hunt <hunt@redhat.com>
hunt [Wed, 9 Nov 2005 22:41:51 +0000 (22:41 +0000)]
2005-11-09  Martin Hunt  <hunt@redhat.com>

* map.h: Remove HSTAT_LOG and HSTAT_LINEAR.
* map-gen.c: Fix comment.
* pmap-gen.c: Ditto.

18 years ago2005-11-09 Martin Hunt <hunt@redhat.com>
hunt [Wed, 9 Nov 2005 22:04:05 +0000 (22:04 +0000)]
2005-11-09  Martin Hunt  <hunt@redhat.com>
* map.c (_stp_cmp): Patch to sort on stats.
(_stp_map_sort): Ditto.
(_stp_map_sortn): Ditto.

18 years ago2005-11-09 Martin Hunt <hunt@redhat.com>
hunt [Wed, 9 Nov 2005 22:00:59 +0000 (22:00 +0000)]
2005-11-09  Martin Hunt  <hunt@redhat.com>

* maps/sort2.c: New file.
* maps/sort_stat.c: New file.
* maps/map.test: Update

18 years ago2005-11-09 Frank Ch. Eigler <fche@elastic.org>
fche [Wed, 9 Nov 2005 17:08:19 +0000 (17:08 +0000)]
2005-11-09  Frank Ch. Eigler  <fche@elastic.org>

Reported by Guang Lei Li <liguangl@cn.ibm.com>:
* tapset/context.stp (pid,ppid,tid): Correctly pick tgid vs pid.
* testsuite/buildok/context_test.stp: Print out tid() too.

18 years ago2005-11-09 Martin Hunt <hunt@redhat.com>
hunt [Wed, 9 Nov 2005 09:00:47 +0000 (09:00 +0000)]
2005-11-09  Martin Hunt  <hunt@redhat.com>
* map.c: Change order of includes.

18 years ago2005-11-09 Martin Hunt <hunt@redhat.com>
hunt [Wed, 9 Nov 2005 08:24:52 +0000 (08:24 +0000)]
2005-11-09  Martin Hunt  <hunt@redhat.com>

* map.h (struct map_root): Delete fields
used by old API.

* map.c: Remove old map API functions.
* map-stat.c (_stp_map_add_stat): Delete.
(_stp_pmap_new_hstat_linear): Move here from map.c.
(_stp_pmap_new_hstat_log): Ditto.

* list.c: Deleted.
* map-keys.c: Deleted.
* map-values.c: Deleted.
* map-int.c: Deleted.

18 years ago2005-11-08 Martin Hunt <hunt@redhat.com>
hunt [Wed, 9 Nov 2005 06:55:42 +0000 (06:55 +0000)]
2005-11-08  Martin Hunt  <hunt@redhat.com>

* maps/map.test: Remove old map API tests.
* maps/ii2.c: Renamed ii.c.
* maps/iiss2.c: Renamed iiss.c.
* maps/is2.c: Renamed is.c.
* maps/issii2.c: Renamed issii.c.
* maps/isx2.c: Renamed isx.c.
* maps/map_format2.c: Renamed map_format.c.
* maps/si2.c: Renamed si.c.
* maps/keys.c: Deleted
* maps/test_list_int64.c: Deleted.
* maps/test_list_string.c: Deleted.
* maps/sort.c: Update to use new map API.

18 years ago2005-11-08 Martin Hunt <hunt@redhat.com>
hunt [Wed, 9 Nov 2005 01:00:40 +0000 (01:00 +0000)]
2005-11-08  Martin Hunt  <hunt@redhat.com>

* shellsnoop/shellsnoop.c: Updated to use new map API.
* where_func/kprobe_where_funct.c: Ditto.
* os_timer/os_timer.c (probe_start): Ditto.
* test4/test4.c: Ditto.
* scf/scf.c: Ditto.

18 years ago2005-11-08 Martin Hunt <hunt@redhat.com>
hunt [Tue, 8 Nov 2005 23:00:39 +0000 (23:00 +0000)]
2005-11-08  Martin Hunt  <hunt@redhat.com>

* alloc.c (__stp_valloc_percpu): Fix call to vmalloc_node.
(vmalloc_node): Remove nonworking code.

18 years ago*** empty log message ***
hunt [Tue, 8 Nov 2005 20:12:22 +0000 (20:12 +0000)]
*** empty log message ***

18 years ago2005-11-08 Martin Hunt <hunt@redhat.com>
hunt [Tue, 8 Nov 2005 19:58:42 +0000 (19:58 +0000)]
2005-11-08  Martin Hunt  <hunt@redhat.com>

* alloc.c (__stp_valloc_percpu): Fix call to vmalloc_node.

18 years ago2005-11-08 Martin Hunt <hunt@redhat.com>
hunt [Tue, 8 Nov 2005 19:48:23 +0000 (19:48 +0000)]
2005-11-08  Martin Hunt  <hunt@redhat.com>

* map.c (_stp_map_init): New function. Extracted from _stp_map_new()
so it can be used in _stp_pmap_new().
(_stp_map_new): Call _stp_map_init().
(_stp_pmap_new): New function.
(_stp_pmap_new_hstat_linear): New function.
(_stp_pmap_new_hstat_log): New function.
(_stp_pmap_del): New function.
(_stp_pmap_printn_cpu): New function.
(_stp_pmap_printn): New function.
(_stp_new_agg): New function.
(_stp_add_agg): New function.
(_stp_pmap_agg): New function.
(_new_map_clear_node): New function.

* map.h (struct map_root): Add Hist struct. Add copy
and cmp function pointers for pmaps.

* stat.h: Remove Stat struct. Replace with Hist struct
that is limited to only histogram params.
* map-stat.c: Fix up references to histogram params in map_root.
* stat-common.c: Ditto.
* stat.c: Ditto.

* pmap-gen.c: New file. Implements per-cpu maps.

* map-gen.c: Minor bug fixes. Use new VAL_IS_ZERO() macro.

* alloc.c (vmalloc_node): For NUMA, provide a vmalloc that
does node-local allocations.
(_stp_alloc_cpu): A version of _stp_alloc() that does
node-local allocations.
(_stp_valloc): A version of _stp_valloc() that does
node-local allocations.
(__stp_valloc_percpu): New function. Like alloc_percpu()
except uses _stp_valloc().
(_stp_vfree_percpu): New function. Like free_percpu().

18 years ago2005-11-08 Frank Ch. Eigler <fche@redhat.com>
fche [Tue, 8 Nov 2005 19:45:59 +0000 (19:45 +0000)]
2005-11-08  Frank Ch. Eigler  <fche@redhat.com>

* tapsets.cxx (blacklisted_p): Tolerate NULL filename parameter.
* src/testsuite/semok/twenty.stp: New test to enumerate everything
dwarfly probeable.

18 years ago2005-11-08 Martin Hunt <hunt@redhat.com>
hunt [Tue, 8 Nov 2005 19:26:16 +0000 (19:26 +0000)]
2005-11-08  Martin Hunt  <hunt@redhat.com>

* recreate_links: Add link to pmap-gen.c
* print.c (next_fmt): Remove unneeded dbug().
* alloc.c: Update to reflect changes to runtime/alloc.c.

18 years ago2005-11-08 Martin Hunt <hunt@redhat.com>
hunt [Tue, 8 Nov 2005 19:23:27 +0000 (19:23 +0000)]
2005-11-08  Martin Hunt  <hunt@redhat.com>

* pmaps/*: Add new pmaps tests.

18 years ago2005-11-08 Frank Ch. Eigler <fche@redhat.com>
fche [Tue, 8 Nov 2005 18:43:37 +0000 (18:43 +0000)]
2005-11-08  Frank Ch. Eigler  <fche@redhat.com>

* translate.cxx (c_unparser::visit_foreach_loop): With PR 1275
done, add back read lock around foreach loop.  Add a write lock
around preceding sort operation.  Leave a race condition window. :-(

18 years ago2005-11-08 Frank Ch. Eigler <fche@redhat.com>
fche [Tue, 8 Nov 2005 17:12:13 +0000 (17:12 +0000)]
2005-11-08  Frank Ch. Eigler  <fche@redhat.com>

* translate.cxx (mapvar::exists): Correct some more.

18 years ago2005-11-08 Frank Ch. Eigler <fche@redhat.com>
fche [Tue, 8 Nov 2005 17:02:13 +0000 (17:02 +0000)]
2005-11-08  Frank Ch. Eigler  <fche@redhat.com>

Patch from "Mao, Bibo" <bibo.mao@intel.com>
* translate.cxx (mapvar::exists): Correct 64-bit type mismatch.

18 years ago2005-11-08 Frank Ch. Eigler <fche@redhat.com>
fche [Tue, 8 Nov 2005 16:52:36 +0000 (16:52 +0000)]
2005-11-08  Frank Ch. Eigler  <fche@redhat.com>

* tapsets.cxx (blacklisted_p): Add blacklist for some .return
probes to kludge around bug #1345.
* tapset/system_calls.stp: Add some %( %? %) conditionals to
get closer to using tapset on 2.6.9 kernel.

18 years ago2005-11-07 Frank Ch. Eigler <fche@redhat.com>
fche [Mon, 7 Nov 2005 22:00:16 +0000 (22:00 +0000)]
2005-11-07  Frank Ch. Eigler  <fche@redhat.com>

PR 1828.
* tapsets.cxx (blacklisted_p): New function.  Add a few blacklist
entries.
* testsuite/semko/thirtythree.stp: New test.

18 years ago2005-11-07 Frank Ch. Eigler <fche@redhat.com>
fche [Mon, 7 Nov 2005 18:12:41 +0000 (18:12 +0000)]
2005-11-07  Frank Ch. Eigler  <fche@redhat.com>

* testsuite/buildok/twentytwo.stp: Add another test for PR 1271.

18 years ago2005-11-04 Frank Ch. Eigler <fche@redhat.com>
fche [Fri, 4 Nov 2005 21:46:14 +0000 (21:46 +0000)]
2005-11-04  Frank Ch. Eigler  <fche@redhat.com>

* tapsets.cxx (dwarf_derived_probe::emit_registrations): Add
possible kprobe address prechecking logic.  Set kretprobes
maxactive to zero.
* translate.cxx (emit_module_init): Set a more helpful default
probe_point value for use in registration errors.  Exit properly
after registration failure of probe #0.

18 years ago.
roland [Fri, 4 Nov 2005 21:02:26 +0000 (21:02 +0000)]
.

18 years ago2005-11-04 Roland McGrath <roland@redhat.com>
roland [Fri, 4 Nov 2005 21:02:22 +0000 (21:02 +0000)]
2005-11-04  Roland McGrath  <roland@redhat.com>

* tapsets.cxx (add_probe_point): Use dwfl_module_relocation_info to
get symbol name when dwfl_module_relocations has the info.

18 years ago*** empty log message ***
hunt [Fri, 4 Nov 2005 17:38:59 +0000 (17:38 +0000)]
*** empty log message ***

18 years ago2005-11-04 Martin Hunt <hunt@redhat.com>
hunt [Fri, 4 Nov 2005 17:17:34 +0000 (17:17 +0000)]
2005-11-04  Martin Hunt  <hunt@redhat.com>

* runtime.h: #include <linux/version.h>.
(init_module): Remove old ppc comment.
ifdef _stp_kta so it only gets set for x86 and x86_64.

18 years agoRemove validate_sp() dependency, therefore don't need CONFIG_KALLSYMS_ALL anymore
hien [Fri, 4 Nov 2005 17:07:52 +0000 (17:07 +0000)]
Remove validate_sp() dependency, therefore don't need CONFIG_KALLSYMS_ALL anymore

18 years ago.
roland [Thu, 3 Nov 2005 21:56:11 +0000 (21:56 +0000)]
.

18 years ago2005-11-03 Roland McGrath <roland@redhat.com>
roland [Thu, 3 Nov 2005 21:56:08 +0000 (21:56 +0000)]
2005-11-03  Roland McGrath  <roland@redhat.com>

* tapsets.cxx (add_probe_point): Use explicit test with assignment in
while condition.

18 years ago2005-11-03 Frank Ch. Eigler <fche@elastic.org>
fche [Thu, 3 Nov 2005 21:20:52 +0000 (21:20 +0000)]
2005-11-03  Frank Ch. Eigler  <fche@elastic.org>

PR 1329.
* tapsets.cxx (dwarf_query::add_probe_point): Look up section name
containing given address.  Skip request if it came from .init.*.
* testsuite/semko/thirtytwo.stp: New test.

18 years agoAdded ppc64 _stp_stack_print
hien [Wed, 2 Nov 2005 18:51:09 +0000 (18:51 +0000)]
Added ppc64 _stp_stack_print

18 years ago2005-11-02 Martin Hunt <hunt@redhat.com>
hunt [Wed, 2 Nov 2005 16:45:55 +0000 (16:45 +0000)]
2005-11-02  Martin Hunt  <hunt@redhat.com>

* Makefile.am (EXTRA_DIST): Add session.h.
* Makefile.in: Regenerated.

18 years ago2005-11-01 Frank Ch. Eigler <fche@elastic.org>
fche [Wed, 2 Nov 2005 01:46:39 +0000 (01:46 +0000)]
2005-11-01  Frank Ch. Eigler  <fche@elastic.org>

Sound advice from <drepper@redhat.com>:
* configure.ac: Undo last change.
* configure.ac: Unregenerated.
* parse.cxx: Use glibc strverscmp function instead of rpmlib.
* stap.1.in: Update correspondingly.

18 years ago2005-11-01 Graydon Hoare <graydon@redhat.com>
graydon [Tue, 1 Nov 2005 23:31:55 +0000 (23:31 +0000)]
2005-11-01  Graydon Hoare  <graydon@redhat.com>

* translate.cxx (c_unparser::collect_map_index_types)
(c_unparser::emit_map_type_instantiations)
(c_unparser::visit_arrayindex)
(c_unparser::visit_array_in)
(delete_statement_operand_visitor::visit_arrayindex)
(c_unparser_assignment::visit_arrayindex)
(mapvar::*): Update to new runtime map API.

18 years ago2005-11-01 Frank Ch. Eigler <fche@elastic.org>
fche [Tue, 1 Nov 2005 16:13:35 +0000 (16:13 +0000)]
2005-11-01  Frank Ch. Eigler  <fche@elastic.org>

PR 1425.
* configure.ac: Look for rpm-devel headers and libs.
* configure: Regenerated.
* session.h: New file to contain systemtap_session decl.
* staptree.h: Likewise evict statistics_decl.
* elaborate.h: Corresponding changes.
* main.cxx (usage): Elaborate.  Re-enable "-r RELEASE" option.
* parse.cxx (parser): Add systemtap_session& field.  Update users.
(scan_pp, eval_pp_conditional): New routines for preprocessing.
(peek, next): Call it.
(lexer::scan): Lex the preprocessor operators.
(parser::parse): Include an extra level of exception catching
for parse errors that occur during recovery.
* parse.h: Corresponding changes.
(parse_error): Allow explicit token parameter.
* stap.1.in: Document preprocessing.
* testsuite/parseok/fourteen.stp: New test.

18 years ago.
roland [Tue, 1 Nov 2005 00:24:16 +0000 (00:24 +0000)]
.

18 years ago2005-10-31 Roland McGrath <roland@redhat.com>
roland [Tue, 1 Nov 2005 00:24:05 +0000 (00:24 +0000)]
2005-10-31  Roland McGrath  <roland@redhat.com>

* systemtap.spec.in, configure.ac: Version 0.4.2 cooked.
* configure: Regenerated.

18 years ago.
roland [Mon, 31 Oct 2005 22:09:33 +0000 (22:09 +0000)]
.

18 years ago2005-10-31 Roland McGrath <roland@redhat.com>
roland [Mon, 31 Oct 2005 22:09:30 +0000 (22:09 +0000)]
2005-10-31  Roland McGrath  <roland@redhat.com>

* configure.ac: Update libdw test to require 0.116 with dwarf_diecu.
* configure: Regenerated.
* systemtap.spec.in: Update elfutils requirement to 0.116.
* loc2c.c: Dwarf_Loc -> Dwarf_Op.
(location_from_address): dwarf_addrloclists -> dwarf_getlocation_addr.
(c_translate_location): Likewise.
(max_fetch_size): Remove fakeo dwarf_diecu macro.
* tapsets.cxx (dwflpp): Dwarf_Func -> Dwarf_Die;
dwarf_func_name -> dwarf_diename;
dwarf_func_entrypc -> dwarf_entrypc;
dwarf_func_file, dwarf_func_line -> dwarf_decl_file, dwarf_decl_line.

18 years ago2005-10-31 Martin Hunt <hunt@redhat.com>
hunt [Mon, 31 Oct 2005 19:23:21 +0000 (19:23 +0000)]
2005-10-31  Martin Hunt  <hunt@redhat.com>

* ALL: Cleanup copyrights.

18 years agoIA64 Runtime support patches. With this in place
askeshav [Fri, 28 Oct 2005 22:49:28 +0000 (22:49 +0000)]
IA64 Runtime support patches. With this in place
Systemtap should now be able to build on Ia64.
Includes supports for - function probes, return probes,
function parameter access and dumping stack backtrace.
Added by Anil S Keshavamurthy <Anil.s.keshavamurthy@intel.com>

18 years ago2005-10-28 Martin Hunt <hunt@redhat.com>
hunt [Fri, 28 Oct 2005 19:44:58 +0000 (19:44 +0000)]
2005-10-28  Martin Hunt  <hunt@redhat.com>

* map-gen.c (MAP_GET_VAL): Use the _stp_get_*() functions.
(_stp_map_set_*): When setting to "", don't create
node if key not found.
(_stp_map_get_*): Use new MAP_GET_VAL. Return "" when
string lookups not found.

* map.c (_stp_get_int64): Check args and return
0 on bad args or wrong type.
(_stp_get_stat): Ditto.
(_stp_key_get_int64): Ditto.
(_stp_get_str): Check args and return
"bad type" on bad args or wrong type.
(_stp_key_get_str): Ditto.
(_new_map_set_str): If setting to "", delete node.
(_new_map_get_*): Delete. Use _stp_get_*().

18 years ago2005-10-28 Martin Hunt <hunt@redhat.com>
hunt [Fri, 28 Oct 2005 19:20:28 +0000 (19:20 +0000)]
2005-10-28  Martin Hunt  <hunt@redhat.com>
* maps/keys.c: New file. Tests specific to _stp_key_get_*().

* maps/iiss2.c (main): Add some comments to make clear expected
results.
* maps/is2.c (main): _stp_map_get_*s() now returns "" instead
of NULL when lookup fails. _stp_map_set_*s() now deletes a node
when setting to "" (as well as NULL).
* maps/setadd.c (main): Ditto.
* maps/map.test: update results.

18 years ago.
roland [Wed, 26 Oct 2005 20:19:15 +0000 (20:19 +0000)]
.

18 years ago2005-10-26 Roland McGrath <roland@redhat.com>
roland [Wed, 26 Oct 2005 20:18:13 +0000 (20:18 +0000)]
2005-10-26  Roland McGrath  <roland@redhat.com>

* loc2c.c (max_fetch_size): Default to host pointer size,
while still waiting for new libdw entrypoint.

18 years ago2005-10-26 Martin Hunt <hunt@redhat.com>
hunt [Wed, 26 Oct 2005 18:05:59 +0000 (18:05 +0000)]
2005-10-26  Martin Hunt  <hunt@redhat.com>

* maps/map.test: Add results for iiiiii and ssssss.
* maps/iiiiii.c: New file.
* maps/ssssss.c: New file.

18 years ago2005-10-26 Martin Hunt <hunt@redhat.com>
hunt [Wed, 26 Oct 2005 17:39:37 +0000 (17:39 +0000)]
2005-10-26  Martin Hunt  <hunt@redhat.com>

* map-gen.c (KEY4CPY): Fix typo.
(KEYCPY): Add missing semicolon.

18 years ago2005-10-26 Martin Hunt <hunt@redhat.com>
hunt [Wed, 26 Oct 2005 17:39:08 +0000 (17:39 +0000)]
2005-10-26  Martin Hunt  <hunt@redhat.com>

* maps/map.test: Add results for issii2.

18 years ago2005-10-26 Martin Hunt <hunt@redhat.com>
hunt [Wed, 26 Oct 2005 08:29:38 +0000 (08:29 +0000)]
2005-10-26  Martin Hunt  <hunt@redhat.com>

* map.c (_new_map_create, _new_map_del_node, _new_map_del_node,
_new_map_set_int64, _new_map_set_str,_new_map_get_int64,
_new_map_get_str, _new_map_get_stat, _new_map_set_stat):
New internal functions for the new API.

* map-int.c (__stp_map_set_int64): Modify to return an
error code.
* map-stat.c (_stp_map_add_stat): Ditto.
* map-str (_stp_map_set_str): Ditto.

* Doxyfile: Remove predefines NEED_STRING_VALS,
NEED_STATS, NEED_INT64.
* map-keys.c: Ditto.
* list.c (_stp_list_new): Ditto. Also set map->list.
* map-values.c: Ditto.

18 years ago2005-10-26 Martin Hunt <hunt@redhat.com>
hunt [Wed, 26 Oct 2005 08:09:46 +0000 (08:09 +0000)]
2005-10-26  Martin Hunt  <hunt@redhat.com>

* recreate_links: Add link to map-gen.c.

This page took 0.068734 seconds and 5 git commands to generate.