aboutsummaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2016-04-15erts: Implement tracer modulesLukas Larsson
Add the possibility to use modules as trace data receivers. The functions in the module have to be nifs as otherwise complex trace probes will be very hard to handle (complex means trace probes for ports for example). This commit changes the way that the ptab->tracer field works from always being an immediate, to now be NIL if no tracer is present or else be the tuple {TracerModule, TracerState} where TracerModule is an atom that is later used to lookup the appropriate tracer callbacks to call and TracerState is just passed to the tracer callback. The default process and port tracers have been rewritten to use the new API. This commit also changes the order which trace messages are delivered to the potential tracer process. Any enif_send done in a tracer module may be delayed indefinitely because of lock order issues. If a message is delayed any other trace message send from that process is also delayed so that order is preserved for each traced entity. This means that for some trace events (i.e. send/receive) the events may come in an unintuitive order (receive before send) to the trace receiver. Timestamps are taken when the trace message is generated so trace messages from differented processes may arrive with the timestamp out of order. Both the erlang:trace and seq_trace:set_system_tracer accept the new tracer module tracers and also the backwards compatible arguments. OTP-10267
2016-04-15Merge branch 'paulgray/inet_db_fix/PR-949/OTP-13470'Raimo Niskanen
* paulgray/inet_db_fix/PR-949/OTP-13470: Fix start timestamp instead of time check Allow to refresh resolver settings on startup
2016-04-13runtime_tools: Skip dyntrace test if LTTng is enabledBjörn-Egil Dahlberg
2016-04-13Merge branch 'egil/tools/modernize-tests'Björn-Egil Dahlberg
* egil/tools/modernize-tests: tools: Don't divide by zero in tests Fix instruments_SUITE sumblock check Eliminate use of doc and suite clauses Replace ?t with test_server Use test_server:is_debug/0 instead of custom check Replace use of test_server:format/2 with io:format/2 Eliminate use of ?config() macro Eliminate use of test_server:fail/0,1 Eliminate erlang:now/0 Modernize use of timetraps Remove ?line macros
2016-04-13tools: Don't divide by zero in testsBjörn-Egil Dahlberg
2016-04-13Merge branch 'siri/otp-19-vsns'Siri Hansen
* siri/otp-19-vsns: Update version of common_test for OTP-19 Update versions
2016-04-13Merge branch 'siri/ct/mods-in-app-file/OTP-13475'Siri Hansen
* siri/ct/mods-in-app-file/OTP-13475: Don't add explicit path to ct_release_test Add missing modules to common_test.app.src
2016-04-13Merge branch 'henrik/update-copyrightyear'Henrik Nord
* henrik/update-copyrightyear: update copyright-year
2016-04-12Merge branch 'sverker/crypto/skip-link_test-without-ldd'Sverker Eriksson
2016-04-12Merge branch 'sverk/big-external-creations.OTP-13488'Sverker Eriksson
2016-04-08Don't add explicit path to ct_release_testSiri Hansen
This module is now in common_test.app, so it will be included in the release which is upgraded from (and to).
2016-04-08Update version of common_test for OTP-19Siri Hansen
This is done early so test of ct_release_test shall work.
2016-04-08Remove unreachable code after 'raise' instructionsBjörn Gustavsson
Remove the unreachable instructions after a 'raise' instruction (e.g. a 'jump' or 'deallocate', 'return') to decrease code size.
2016-04-07erts: Add DFLAG_BIG_CREATIONSverker Eriksson
to let future nodes know that we can handle NEW_PID_EXT, NEW_PORT_EXT and NEWER_REFERENCE_EXT.
2016-04-07jinterface: Support 32-bit creation valuesSverker Eriksson
2016-04-07erl_interface: Support 32-bit creation for pid,port,refsSverker Eriksson
2016-04-07erl_interface: Cuddle test ei_tmo_SUITESverker Eriksson
Increase max number of messages sent to fill buffers.
2016-04-07test_server,erl_interface: Add test_host_not_reachable configSverker Eriksson
2016-04-07Merge branch 'egil/fix-erl_interface-tests'Björn-Egil Dahlberg
* egil/fix-erl_interface-tests: Remove forgotten line
2016-04-07Remove forgotten lineBjörn-Egil Dahlberg
2016-04-07Fix instruments_SUITE sumblock checkBjörn-Egil Dahlberg
2016-04-07Eliminate use of doc and suite clausesBjörn-Egil Dahlberg
Those clause are obsolete and never used by common_test.
2016-04-07Replace ?t with test_serverBjörn-Egil Dahlberg
The macro ?t is deprecated. Replace its use with 'test_server'.
2016-04-07Merge branch 'bjorn/kernel/rpc-pinfo/ERL-124/OTP-13460'Björn Gustavsson
* bjorn/kernel/rpc-pinfo/ERL-124/OTP-13460: Update spec for rpc:pinfo/2
2016-04-07Update spec for rpc:pinfo/2Björn Gustavsson
rpc:pinfo/2 is documented as a location-transparent version of process_info/2. Therefore, it should be expected that the spec would allow calls with an item list, for example: rpc:pinfo(Pid, [initial_call,last_calls]) Report-URL: http://bugs.erlang.org/browse/ERL-124 Reported-by: bjfish
2016-04-07Merge branch 'sverk/crypto/no-ec2m'Sverker Eriksson
2016-04-07Use test_server:is_debug/0 instead of custom checkBjörn-Egil Dahlberg
2016-04-07Replace use of test_server:format/2 with io:format/2Björn-Egil Dahlberg
2016-04-07Eliminate use of ?config() macroBjörn-Egil Dahlberg
2016-04-07Eliminate use of test_server:fail/0,1Björn-Egil Dahlberg
2016-04-07Eliminate erlang:now/0Björn-Egil Dahlberg
2016-04-07Modernize use of timetrapsBjörn-Egil Dahlberg
2016-04-06Remove ?line macrosBjörn-Egil Dahlberg
2016-04-06Merge branch 'egil/erts/fix-file_info/OTP-13478'Björn-Egil Dahlberg
* egil/erts/fix-file_info/OTP-13478: Don't check dates before 1970 Log additional test information in prim_file_SUITE Relax file_info tests Refactor time_t in efile_drv
2016-04-06crypto: Skip link_test if no 'ldd' availableSverker Eriksson
2016-04-06Add missing modules to common_test.app.srcSiri Hansen
2016-04-06ssl: Remove default support for use of md5 in TLS 1.2 signature algorithmsIngela Anderton Andin
2016-04-06ssl: Add option signature_algsIngela Anderton Andin
In TLS-1.2 The signature algorithm and the hash function algorithm used to produce the digest that is used when creating the digital signature may be negotiated through the signature algorithm extension RFC 5246. We want to make these algorithm pairs configurable. In connections using lower versions of TLS these algorithms are implicit defined and can not be negotiated or configured. DTLS is updated to not cause dialyzer errors, but needs to get a real implementation later.
2016-04-06Fix start timestamp instead of time checkRaimo Niskanen
Verify with: erl -noshell -eval 'io:write(inet_res:lookup("localhost",in,a)),io:nl(),init:stop().' Prints: [{127,0,0,1}] Without this correction you will get [] on a hostname that works later after system start.
2016-04-05Merge branch 'lukas/stdlib/error_logger_SUITE/OTP-13471'Lukas Larsson
* lukas/stdlib/error_logger_SUITE/OTP-13471: stdlib: Fix logfile testcase for hipelibs testrun
2016-04-05Merge branch 'waisbrot/remove-mod_include/PR-988/OTP-13445'Hans Nilsson
2016-04-05Merge branch 'FabioBatSilva/httpc-delete-body/PR-972/OTP-13383'Lars Thorsen
* FabioBatSilva/httpc-delete-body/PR-972/OTP-13383: inets: Add DELETE Body to client remove whitespaces
2016-04-05Merge branch 'legoscia/tls-dist-clean-shutdown/PR-962/OTP-13431'Ingela Anderton Andin
* legoscia/tls-dist-clean-shutdown/PR-962/OTP-13431: TLS distribution: shut down accept process cleanly
2016-04-04Merge tag 'OTP-18.3.1'Henrik Nord
=== OTP-18.3.1 === Changed Applications: - erts-7.3.1 - inets-6.2.1 - mnesia-4.13.4 Unchanged Applications: - asn1-4.0.2 - common_test-1.12 - compiler-6.0.3 - cosEvent-2.2 - cosEventDomain-1.2 - cosFileTransfer-1.2 - cosNotification-1.2.1 - cosProperty-1.2 - cosTime-1.2.1 - cosTransactions-1.3.1 - crypto-3.6.3 - debugger-4.1.2 - dialyzer-2.9 - diameter-1.11.2 - edoc-0.7.18 - eldap-1.2.1 - erl_docgen-0.4.2 - erl_interface-3.8.2 - et-1.5.1 - eunit-2.2.13 - gs-1.6 - hipe-3.15 - ic-4.4 - jinterface-1.6.1 - kernel-4.2 - megaco-3.18 - observer-2.1.2 - odbc-2.11.1 - orber-3.8.1 - os_mon-2.4 - ose-1.1 - otp_mibs-1.1 - parsetools-2.1.1 - percept-0.8.11 - public_key-1.1.1 - reltool-0.7 - runtime_tools-1.9.3 - sasl-2.7 - snmp-5.2.2 - ssh-4.2.2 - ssl-7.3 - stdlib-2.8 - syntax_tools-1.7 - test_server-3.10 - tools-2.8.3 - typer-0.9.10 - webtool-0.9.1 - wx-1.6.1 - xmerl-1.3.10 Conflicts: OTP_VERSION erts/emulator/test/save_calls_SUITE.erl erts/vsn.mk
2016-04-04Merge branch 'egil/os_mon/modernize-test'Björn-Egil Dahlberg
* egil/os_mon/modernize-test: Don't crash in end_per_testcase Eliminate use of doc and suite clauses Replace ?t:sleep/1 with ct:sleep/1 Replace use of test_server:format/2 with io:format/2 Eliminate use of test_server:fail/0,1 Eliminate use of ?config() macro Modernize use of timetraps Remove ?line macros
2016-04-04Merge branch 'bjorn/kernel/remove-deprecated/OTP-13449'Björn Gustavsson
* bjorn/kernel/remove-deprecated/OTP-13449: rpc: Remove functions deprecated in R12B
2016-04-04Merge branch 'bjorn/stdlib/clean-up-otp_internal'Björn Gustavsson
* bjorn/stdlib/clean-up-otp_internal: Remove information for functions removed in R13 and R14 Remove clauses for functions that have already been removed
2016-04-04Merge branch 'bjorn/cuddle-with-tests'Björn Gustavsson
* bjorn/cuddle-with-tests: inet_SUITE: Handle pointtopoint devices in getifaddrs/1 file_SUITE: Increase timetrap for large_write/1 gen_fsm_SUITE: Make abnormal1/1 stop failing gen_fsm_SUITE: Use timer:sleep/1 instead of ct:sleep/1 inet_SUITE: Handle {error,enoent} in simple_netns_open inet_SUITE: Handle missing SCTP support in simple_netns/1 asn1_SUITE: Remove temporary files file_name_SUITE: Improve handling of missing permission for link creation file_name_SUITE: Remove useless put/2 to process dictionary file_name_SUITE: Handle the case that HOMEPATH may not be set code_SUITE: Skip on_load_embedded/1 if no symlinks gen_sctp_SUITE: Skip most SCTP test cases on Solaris before 5.12 heart_SUITE: Increase timeout in restart/1 heart_SUITE: Use unique node names init_SUITE: Quote pathname that may contain a space gen_tcp_misc_SUITE: Clean up send_timeout{_active}/1 Clean up the determination of the hostname
2016-04-04wx: Fix wxListCtrl:hitTest arguments and delivered resultsDan Gudmundsson
May cause incompatibility for applications but the flags argument is out only in C++.
2016-04-04wx: Fix type error in wxMouseState recordDan Gudmundsson
severe typo