Claudio Jeker <cje...@diehard.n-r-g.com> writes:
> This documents count(). This function only works when used like this > @map[key] = count(); > But it is implemented and works. If used differently you get a syntax > error which is not helpful. This is why I chose to document it like this. > Another option would be to document the language (so it is clear where it > is possible to use what). > > max(), min() and sum() are other functions that behave like this. Their > documentation should also be adjusted IMO. Since these are all "map functions" per bpftrace [1] and we're aiming to keep parity with that language, should we separate them from the vague list of "functions" into their own section? They can't be used elsewhere. -dv [1] https://github.com/iovisor/bpftrace/blob/master/docs/reference_guide.md#map-functions