~ubuntu-branches/ubuntu/trusty/erlang/trusty

« back to all changes in this revision

Viewing changes to erts/emulator/beam/erl_mtrace.c

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2011-05-05 15:48:43 UTC
  • mfrom: (3.5.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110505154843-0om6ekzg6m7ugj27
Tags: 1:14.b.2-dfsg-3ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to.
  - Drop erlang-wx binary.
  - Drop erlang-wx dependency from -megaco, -common-test, and -reltool, they
    do not really need wx. Also drop it from -debugger; the GUI needs wx,
    but it apparently has CLI bits as well, and is also needed by -megaco,
    so let's keep the package for now.
  - debian/patches/series: Do what I meant, and enable build-options.patch
    instead.
* Additional changes:
  - Drop erlang-wx from -et
* Dropped Changes:
  - patches/pcre-crash.patch: CVE-2008-2371: outer level option with
    alternatives caused crash. (Applied Upstream)
  - fix for ssl certificate verification in newSSL: 
    ssl_cacertfile_fix.patch (Applied Upstream)
  - debian/patches/series: Enable native.patch again, to get stripped beam
    files and reduce the package size again. (build-options is what
    actually accomplished this)
  - Remove build-options.patch on advice from upstream and because it caused
    odd build failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * %CopyrightBegin%
3
 
 * 
4
 
 * Copyright Ericsson AB 2003-2009. All Rights Reserved.
5
 
 * 
 
3
 *
 
4
 * Copyright Ericsson AB 2003-2010. All Rights Reserved.
 
5
 *
6
6
 * The contents of this file are subject to the Erlang Public License,
7
7
 * Version 1.1, (the "License"); you may not use this file except in
8
8
 * compliance with the License. You should have received a copy of the
9
9
 * Erlang Public License along with this software. If not, it can be
10
10
 * retrieved online at http://www.erlang.org/.
11
 
 * 
 
11
 *
12
12
 * Software distributed under the License is distributed on an "AS IS"
13
13
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
14
 * the License for the specific language governing rights and limitations
15
15
 * under the License.
16
 
 * 
 
16
 *
17
17
 * %CopyrightEnd%
18
18
 */
19
19
 
79
79
#define UI16_SZ                                 (2)
80
80
#define UI32_SZ                                 (4)
81
81
#define UI64_SZ                                 (8)
82
 
#ifdef ARCH_64
 
82
#ifdef ARCH_64 /* XXX:PaN Halfword? (whole file...) */
83
83
#  define UI_SZ                                 UI64_SZ
84
84
#else
85
85
#  define UI_SZ                                 UI32_SZ
188
188
                  byte tag,
189
189
                  Uint16 ct_no, int ct_no_n,
190
190
                  Uint16 type, int type_n,
191
 
                  Uint res, int res_n,
 
191
                  UWord res, int res_n,
192
192
                  Uint size, int size_n,
193
193
                  Uint32 ti,int ti_n);
194
194
void
196
196
                    byte tag,
197
197
                    Uint16 ct_no, int ct_no_n,
198
198
                    Uint16 type, int type_n,
199
 
                    Uint res, int res_n,
200
 
                    Uint ptr, int ptr_n,
 
199
                    UWord res, int res_n,
 
200
                    UWord ptr, int ptr_n,
201
201
                    Uint size, int size_n,
202
202
                    Uint32 ti,int ti_n);
203
203
void
205
205
                 byte tag,
206
206
                 Uint16 ct_no, int ct_no_n,
207
207
                 Uint16 t_no, int t_no_n,
208
 
                 Uint ptr, int ptr_n,
 
208
                 UWord ptr, int ptr_n,
209
209
                 Uint32 ti,int ti_n);
210
210
void
211
211
check_time_inc_entry(byte *sp, byte *ep,
585
585
        Uint16 port;
586
586
 
587
587
        erts_mtx_init(&mtrace_buf_mutex, "mtrace_buf");
588
 
        erts_mtx_set_forksafe(&mtrace_buf_mutex);
589
588
        erts_mtx_init(&mtrace_op_mutex, "mtrace_op");
590
 
        erts_mtx_set_forksafe(&mtrace_op_mutex);
591
589
 
592
590
        socket_desc = erts_sock_open();
593
591
        if (socket_desc == ERTS_SOCK_INVALID_SOCKET) {
785
783
                              tag,
786
784
                              ct_no, ct_no_n,
787
785
                              t_no, t_no_n,
788
 
                              (Uint) res, res_n,
 
786
                              (UWord) res, res_n,
789
787
                              size, size_n,
790
788
                              ti, ti_n);
791
789
#endif
865
863
                                tag,
866
864
                                ct_no, ct_no_n,
867
865
                                t_no, t_no_n,
868
 
                                (Uint) res, res_n,
869
 
                                (Uint) ptr, ptr_n,
 
866
                                (UWord) res, res_n,
 
867
                                (UWord) ptr, ptr_n,
870
868
                                size, size_n,
871
869
                                ti, ti_n);
872
870
#endif
934
932
                             tag,
935
933
                             ct_no, ct_no_n,
936
934
                             t_no, t_no_n,
937
 
                             (Uint) ptr, ptr_n,
 
935
                             (UWord) ptr, ptr_n,
938
936
                             ti, ti_n);
939
937
#endif
940
938
        }
1135
1133
                  byte tag,
1136
1134
                  Uint16 ct_no, int ct_no_n,
1137
1135
                  Uint16 t_no, int t_no_n,
1138
 
                  Uint res, int res_n,
 
1136
                  UWord res, int res_n,
1139
1137
                  Uint size, int size_n,
1140
1138
                  Uint32 ti,int ti_n)
1141
1139
{
1163
1161
                    byte tag,
1164
1162
                    Uint16 ct_no, int ct_no_n,
1165
1163
                    Uint16 t_no, int t_no_n,
1166
 
                    Uint res, int res_n,
1167
 
                    Uint ptr, int ptr_n,
 
1164
                    UWord res, int res_n,
 
1165
                    UWord ptr, int ptr_n,
1168
1166
                    Uint size, int size_n,
1169
1167
                    Uint32 ti,int ti_n)
1170
1168
{
1193
1191
                 byte tag,
1194
1192
                 Uint16 ct_no, int ct_no_n,
1195
1193
                 Uint16 t_no, int t_no_n,
1196
 
                 Uint ptr, int ptr_n,
 
1194
                 UWord ptr, int ptr_n,
1197
1195
                 Uint32 ti,int ti_n)
1198
1196
{
1199
1197
    byte *p = sp;