erlang:trace_pattern/3 is not expected to work on ports?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

erlang:trace_pattern/3 is not expected to work on ports?

Vladimir Gordeev
Currently trying to match received messages for ports, do the following:

  erlang:trace_pattern('receive', [MyComplexMatchSpec], []),
  erlang:trace(ports, true, [ports, timestamp, 'receive', {tracer, self()}]),

Got all messages received by port, filtering doesn't work. Okay, tried this one:

  erlang:trace_pattern('receive', false, []),
  erlang:trace(ports, true, [ports, timestamp, 'receive', {tracer, self()}]),

And still got all messages, while shouldn't receive any.

So, erlang:trace_pattern/3 is not supposed to work for ports? In official docs only processes are mentioned, but no explicit statement about ports.

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions