[Bug 232675] dtrace: "failed to compile script" when more than 2^15 distinct types are in CTF info

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 08 Jan 2022 14:39:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232675

--- Comment #43 from Dani <i.dani@outlook.com> ---
If helpfull: Here are the stats from the same custom kernelconfig with FBSD
12.2:

- CTF Statistics -------------------------------------------------------------

  total number of data objects        = 31042

  total number of functions           = 33926
  total number of function arguments  = 82409
  maximum argument list length        = 22
  average argument list length        = 2.43

  total number of types               = 31478
  total number of integers            = 77
  total number of floats              = 0
  total number of pointers            = 7668
  total number of arrays              = 3340
  total number of func types          = 2091
  total number of structs             = 10738
  total number of unions              = 621
  total number of enums               = 886
  total number of forward tags        = 51
  total number of typedefs            = 5251
  total number of volatile types      = 55
  total number of const types         = 580
  total number of restrict types      = 0
  total number of unknowns (holes)    = 120

  total number of struct members      = 79250
  maximum number of struct members    = 248
  total size of all structs           = 19349614
  maximum size of a struct            = 2971720
  average number of struct members    = 7.38
  average size of a struct            = 1801.98

  total number of union members       = 2151
  maximum number of union members     = 90
  total size of all unions            = 133604
  maximum size of a union             = 41576
  average number of union members     = 3.46
  average size of a union             = 215.14

  total number of enum members        = 9025
  maximum number of enum members      = 1023
  average number of enum members      = 10.19

  total number of unique strings      = 67943
  bytes of string data                = 982977
  maximum string length               = 81
  average string length               = 14.47


Here's the kernelconfig (yes some stuff is double with GENERIC, we just want to
make sure these options are set):
include GENERIC

ident CUSTOM

options         DDB

options         IPFIREWALL
options         IPFIREWALL_VERBOSE
options         IPFIREWALL_VERBOSE_LIMIT=5
options         IPFIREWALL_DEFAULT_TO_ACCEPT
options         IPDIVERT

device          pf
device          pflog
device          pfsync

device          enc

device          cpuctl

device          tuntap

-- 
You are receiving this mail because:
You are on the CC list for the bug.