Current status of PAPI support

What is the current status of PAPI support in Bro? I recall that we
added support for it at some point, but do not remember any details.
Is it possible to profile the interpreter, or do we get just
performance counters for core functionality?

Also, at what granularity are these counters given to the user? per
event? per packet? per connection?

    Matthias

Iirc, PAPI support exists only in the old superlinear branch in SVN
(i.e., the multi-threaded Bro prototype). The code there measures
peformance counters per connection and per event I believe.

Robin

Iirc, PAPI support exists only in the old superlinear branch in SVN
(i.e., the multi-threaded Bro prototype). The code there measures
peformance counters per connection and per event I believe.

That's exactly what I need. Do you think that porting it to current
master will be doable in a few days?

    Matthias

Yeah, shouldn't be too hard. The code is easy to find, it's enclosed in
"#ifdef USE_PAPI".

Robin

Yeah, shouldn't be too hard. The code is easy to find, it's enclosed in
"#ifdef USE_PAPI".

Great. Would you mind pointing me to the old branch? I cannot get to it
via the old SVN:

    svn ls svn+ssh://svn.icir.org/bro/branches
    svn: E210002: Unable to connect to a repository at URL
'svn+ssh://svn.icir.org/bro'
    svn: E210002: To better debug SSH connection problems, remove the
-q option from 'ssh' in the [tunnels] section of your Subversion
configuration file.
    svn: E210002: Network connection closed unexpectedly

Another related PAPI question: does anyone know how to measure (i.e.,
what counters to read/combine) whether the memory bus is congested?

    Matthias