Bug 216439

Summary: sqlhist: Implement cast buckets=#
Product: Tools Reporter: Steven Rostedt (rostedt)
Component: Trace-cmd/KernelsharkAssignee: Default virtual assignee for Trace-cmd and kernelshark (tools_tracecmd_kernelshark)
Status: NEW ---    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: N/A Subsystem:
Regression: No Bisected commit-id:

Description Steven Rostedt 2022-09-01 21:48:10 UTC
The cast function of sqlhist does not implement .buckets as it does for log2.

That is, one could do:

  sqlhist -e 'select comm,prio,cast(delta as log2) from wakeup_lat'

But not:

  sqlhist -e 'select comm,prio,cast(delta as buckets=10) from wakeup_lat'