summaryrefslogtreecommitdiffstats
path: root/runtime
Commit message (Collapse)AuthorAgeFilesLines
* 2005-12-14 Martin Hunt <hunt@redhat.com>hunt2005-12-145-22/+71
| | | | | | | | | | | | | * pmap-gen.c (_stp_pmap_new_*): Initialize lock. (_stp_pmap_set_*): Lock map while in use. (_stp_pmap_add_*): Lock map while in use. (_stp_pmap_get_cpu): Ditto. (_stp_pmap_get): Lock each per-cpu map. * map-gen.c: Define and use NULLRET for a NULL return value. * map.c (_stp_pmap_clear): New function. (_stp_pmap_agg): Lock each per-cpu map as it gets aggregated.
* 2005-12-14 Martin Hunt <hunt@redhat.com>hunt2005-12-142-0/+17
| | | | * emul.h: Add fake spinlock funcs.
* 2005-12-13 Martin Hunt <hunt@redhat.com>hunt2005-12-132-1/+6
| | | | | * map.c (_stp_map_sortn): Set a limit of 30 for n. Automatically call _stp_map_sort() if more is requested.
* 2005-12-08 Frank Ch. Eigler <fche@elastic.org>fche2005-12-083-1/+38
| | | | | | | | | | | | | | | PR 1937 * buildrun.cxx (run_pass): Pass new "-d PID" option to stpd. Set SIGHUP to SIG_IGN too. 2005-12-08 Frank Ch. Eigler <fche@elastic.org> PR 1937 * stpd.c (main): Support new "-d" option. (usage): Document it. * librelay.c (driver_poll): New function to react to death of driver process. (stp_main_loop): Call it if "-d PID" given. Treat SIGHUP like others.
* 2005-12-08 Martin Hunt <hunt@redhat.com>hunt2005-12-082-2/+34
| | | | | | | * map.c (_new_map_create): Only increment map size if a node was moved off the free list. (_stp_map_size): New function. (_stp_pmap_size): New function.
* 2005-12-08 Martin Hunt <hunt@redhat.com>hunt2005-12-085-0/+190
| | | | | * maps/map.test: Add size test. * pmaps/pmap.test: Add size test.
* 2005-12-07 Martin Hunt <hunt@redhat.com>hunt2005-12-072-40/+4
| | | | | * agg/agg.test: Adjust results to match the more compact histogram format.
* 2005-12-07 Martin Hunt <hunt@redhat.com>hunt2005-12-073-95/+9
| | | | | * alloc.c: Remove all unused functions. * io.c: Add vprintf() prototype.
* 2005-12-07 Martin Hunt <hunt@redhat.com>hunt2005-12-076-295/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR1923 * map.h (struct map_root): Remove membuf. (struct pmap): Define. (PMAP): Declare. * map.c (_stp_map_init): Use kmalloc() to allocate individual nodes instead of using vmalloc() to allocate one big chunk. (_stp_map_new): Use kmalloc. (_stp_pmap_new): Use kmalloc. Return a PMAP. (__stp_map_del): New function. Free all the nodes in a map. (_stp_map_del): Call __stp_map_del() then free map struct. (_stp_pmap_del): Takes a PMAP. Calls __stp_map_del() for each cpu. (_stp_pmap_printn_cpu): Change arg to PMAP. (_stp_pmap_agg): Change arg to PMAP. (_stp_pmap_get_agg): Change arg to PMAP. * map-stat.c (_stp_pmap_new_hstat_linear): Use PMAP instead of MAP. Fix allocations. (_stp_pmap_new_hstat_log): Ditto. * pmap-gen.c Fix all functions to take or return PMAPS instead of MAPS. * alloc.c: Remove everything except kmalloc_node(). All runtime code now uses kmalloc() directly.
* 2005-12-07 Martin Hunt <hunt@redhat.com>hunt2005-12-0713-75/+24
| | | | | | | | | | * pmaps/*.c: Change pmap type from MAP to PMAP. * pmaps/pmap.test: Adjust results to match the more compact histogram format. * maps/map.test: Adjust results to match the more compact histogram format.
* 2005-12-02 Martin Hunt <hunt@redhat.com>hunt2005-12-022-6/+13
| | | | | | | * procfs.c (_stp_set_buffers): kmalloc the buffers instead of vmalloc. (_stp_register_procfs): Ditto. (_stp_unregister_procfs): kfree the buffers.
* 2005-11-30 Martin Hunt <hunt@redhat.com>hunt2005-11-302-1/+6
| | | | | * io.c (_stp_exit): To prevent any possible interactions with the probed function, just set a flag here.
* 2005-11-30 Martin Hunt <hunt@redhat.com>hunt2005-11-304-16/+39
| | | | | | | | | * 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.
* 2005-11-29 Martin Hunt <hunt@redhat.com>hunt2005-11-302-5/+4
| | | | * recreate_links: Remove links to deleted files.
* [ChangeLog]graydon2005-11-292-24/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 2005-11-28 Martin Hunt <hunt@redhat.com>hunt2005-11-288-26/+36
| | | | | | | | | | | * 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.
* 2005-11-28 Martin Hunt <hunt@redhat.com>hunt2005-11-282-1/+4
| | | | | * map.c (_stp_pmap_del): Use _stp_free_percpu() to free pmaps.
* 2005-11-28 Martin Hunt <hunt@redhat.com>hunt2005-11-286-1/+284
| | | | | * map-stat.c (_stp_pmap_new_hstat_log): Fix typo. Call _stp_pmap_new() instead of _stp_map_new().
* 2005-11-11 Martin Hunt <hunt@redhat.com>hunt2005-11-112-72/+4
| | | | * map.h: Removed old API macros and prototypes.
* 2005-11-10 Martin Hunt <hunt@redhat.com>hunt2005-11-114-24/+44
| | | | | | | | | * 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.
* 2005-11-10 Martin Hunt <hunt@redhat.com>hunt2005-11-114-1/+313
| | | | | | * pmaps/ix2.c: New test. Test _stp_pmap_get_*(). * pmaps/iii3.c: New test. Test _stp_pmap_get_*(). * pmaps/pmap.test: Update.
* 2005-11-10 Martin Hunt <hunt@redhat.com>hunt2005-11-104-58/+71
| | | | | | * 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.
* 2005-11-10 Martin Hunt <hunt@redhat.com>hunt2005-11-104-1/+71
| | | | | * pmaps/ii2.c: New test of maps and pmaps with the same keysym. * pmaps/pmap.test: Update.
* 2005-11-10 Martin Hunt <hunt@redhat.com>hunt2005-11-102-2/+6
| | | | * map.c (_stp_cmp): Use _stp_div64().
* *** empty log message ***hunt2005-11-091-14/+9
|
* 2005-11-09 Martin Hunt <hunt@redhat.com>hunt2005-11-094-9/+10
| | | | | | * map.h: Remove HSTAT_LOG and HSTAT_LINEAR. * map-gen.c: Fix comment. * pmap-gen.c: Ditto.
* 2005-11-09 Martin Hunt <hunt@redhat.com>hunt2005-11-092-4/+48
| | | | | | * map.c (_stp_cmp): Patch to sort on stats. (_stp_map_sort): Ditto. (_stp_map_sortn): Ditto.
* 2005-11-09 Martin Hunt <hunt@redhat.com>hunt2005-11-095-23/+541
| | | | | | * maps/sort2.c: New file. * maps/sort_stat.c: New file. * maps/map.test: Update
* 2005-11-09 Martin Hunt <hunt@redhat.com>hunt2005-11-092-2/+4
| | | | * map.c: Change order of includes.
* 2005-11-09 Martin Hunt <hunt@redhat.com>hunt2005-11-0911-1002/+101
| | | | | | | | | | | | | | | * 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.
* 2005-11-08 Martin Hunt <hunt@redhat.com>hunt2005-11-0918-1390/+260
| | | | | | | | | | | | | | | * 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.
* 2005-11-08 Martin Hunt <hunt@redhat.com>hunt2005-11-096-83/+97
| | | | | | | | * 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.
* 2005-11-08 Martin Hunt <hunt@redhat.com>hunt2005-11-082-21/+3
| | | | | * alloc.c (__stp_valloc_percpu): Fix call to vmalloc_node. (vmalloc_node): Remove nonworking code.
* *** empty log message ***hunt2005-11-081-4/+4
|
* 2005-11-08 Martin Hunt <hunt@redhat.com>hunt2005-11-082-2/+5
| | | | * alloc.c (__stp_valloc_percpu): Fix call to vmalloc_node.
* 2005-11-08 Martin Hunt <hunt@redhat.com>hunt2005-11-0811-245/+1395
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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().
* 2005-11-08 Martin Hunt <hunt@redhat.com>hunt2005-11-084-3/+15
| | | | | | * 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.
* 2005-11-08 Martin Hunt <hunt@redhat.com>hunt2005-11-089-0/+730
| | | | * pmaps/*: Add new pmaps tests.
* *** empty log message ***hunt2005-11-041-0/+6
|
* 2005-11-04 Martin Hunt <hunt@redhat.com>hunt2005-11-041-8/+3
| | | | | | * 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.
* Remove validate_sp() dependency, therefore don't need CONFIG_KALLSYMS_ALL ↵hien2005-11-042-45/+19
| | | | anymore
* Added ppc64 _stp_stack_printhien2005-11-022-0/+87
|
* 2005-10-31 Martin Hunt <hunt@redhat.com>hunt2005-10-3122-38/+179
| | | | * ALL: Cleanup copyrights.
* IA64 Runtime support patches. With this in placeaskeshav2005-10-287-3/+273
| | | | | | | 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>
* 2005-10-28 Martin Hunt <hunt@redhat.com>hunt2005-10-283-33/+61
| | | | | | | | | | | | | | | | | | * 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_*().
* 2005-10-28 Martin Hunt <hunt@redhat.com>hunt2005-10-286-13/+117
| | | | | | | | | | | | * 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.
* 2005-10-26 Martin Hunt <hunt@redhat.com>hunt2005-10-264-0/+109
| | | | | | * maps/map.test: Add results for iiiiii and ssssss. * maps/iiiiii.c: New file. * maps/ssssss.c: New file.
* 2005-10-26 Martin Hunt <hunt@redhat.com>hunt2005-10-262-4/+8
| | | | | * map-gen.c (KEY4CPY): Fix typo. (KEYCPY): Add missing semicolon.
* 2005-10-26 Martin Hunt <hunt@redhat.com>hunt2005-10-263-0/+50
| | | | * maps/map.test: Add results for issii2.
* 2005-10-26 Martin Hunt <hunt@redhat.com>hunt2005-10-2612-87/+752
| | | | | | | | | | | | | | | | | | * 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.