mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
flag base script as being known to ZAM optimization
This commit is contained in:
parent
ef4386ea13
commit
263093af78
1 changed files with 4 additions and 0 deletions
|
@ -18,6 +18,10 @@ export {
|
||||||
global directed_id_string: function(id: conn_id, is_orig: bool): string;
|
global directed_id_string: function(id: conn_id, is_orig: bool): string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
### Note, this function is known to -O ZAM (see `known_funcs` and
|
||||||
|
### `ScriptOptBuiltinExpr::FUNC_ID_STRING` in src/script_opt/Expr.cc),
|
||||||
|
### which replaces it with a custom instruction, so if changed here,
|
||||||
|
### that needs to be changed too.
|
||||||
function id_string(id: conn_id): string
|
function id_string(id: conn_id): string
|
||||||
{
|
{
|
||||||
return fmt("%s:%d > %s:%d",
|
return fmt("%s:%d > %s:%d",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue