2025-08-31 17:54 ftp://ftp.de.debian.org/debian/pool/main/k/kernelshark/kernelshark_2.4.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=qt --library=boost --library=opengl --library=openmp --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.12.41+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 2ee39fe (2025-08-30 22:07:31 +0200) count: 744 792 elapsed-time: 2.4 6.1 head-timing-info: old-timing-info: head results: kernel-shark-kernelshark-v2.4.0/examples/cmd_split.cpp:43:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/examples/configio.c:27:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KS_CONFIG_JSON [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/examples/datafilter.c:55:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KS_HIDE_TASK_FILTER [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/examples/datahisto.c:56:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KS_EMPTY_BIN [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/examples/datahisto.c:115:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/examples/dataplot.cpp:40:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/examples/dataplot.cpp:53:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COLOR_BUFFER_BIT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/examples/dataplot.cpp:149:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COLOR_BUFFER_BIT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/examples/dataplot.cpp:183:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/examples/widgetdemo.cpp:31:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/examples/widgetdemo.cpp:44:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/examples/widgetdemo.cpp:66:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KS_VERSION_STRING [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/examples/widgetdemo.cpp:34:44: style: C-style pointer casting [cstyleCast] kernel-shark-kernelshark-v2.4.0/examples/widgetdemo.cpp:89:13: style: C-style pointer casting [cstyleCast] kernel-shark-kernelshark-v2.4.0/examples/widgetdemo.cpp:90:18: style: C-style pointer casting [cstyleCast] kernel-shark-kernelshark-v2.4.0/examples/widgetdemo.cpp:41:34: performance: Function parameter 'pids' should be passed by const reference. However it seems that 'print' is a callback function. [passedByValueCallback] kernel-shark-kernelshark-v2.4.0/examples/widgetdemo.cpp:148:22: note: Function pointer used here. kernel-shark-kernelshark-v2.4.0/examples/widgetdemo.cpp:41:34: note: Function parameter 'pids' should be passed by const reference. However it seems that 'print' is a callback function. kernel-shark-kernelshark-v2.4.0/examples/widgetdemo.cpp:119:16: style: Variable 'failedPlugins' is assigned a value that is never used. [unreadVariable] kernel-shark-kernelshark-v2.4.0/examples/widgetdemo.cpp:115:15: style: Unused variable: streamIds [unusedVariable] kernel-shark-kernelshark-v2.4.0/examples/dataplot.cpp:45:34: style: C-style pointer casting [cstyleCast] kernel-shark-kernelshark-v2.4.0/examples/dataplot.cpp:225:16: style: C-style pointer casting [cstyleCast] kernel-shark-kernelshark-v2.4.0/examples/dataplot.cpp:130:24: style: Iterating over container 'Tasks' that is always empty. [knownEmptyContainer] kernel-shark-kernelshark-v2.4.0/src/KsUtils.hpp:106:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KS_BUILTIN_PLUGINS [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.hpp:230:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Checked [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.hpp:432:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SingleSelection [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.hpp:500:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SingleSelection [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsAdvFilteringDialog.cpp:50:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HLine [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsAdvFilteringDialog.cpp:275:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SingleSelection [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsAdvFilteringDialog.cpp:457:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Checked [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsCaptureDialog.cpp:91:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HLine [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsCaptureDialog.cpp:404:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AlignRight [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsCaptureDialog.cpp:448:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Checked [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsCaptureDialog.cpp:470:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable End [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsCaptureDialog.cpp:514:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Checked [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsCaptureDialog.cpp:523:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NormalExit [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsCaptureDialog.cpp:560:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable close [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsCaptureDialog.cpp:593:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NormalExit [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsCaptureDialog.cpp:623:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteOnly [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsDualMarker.cpp:21:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RightButton [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsDualMarker.cpp:153:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Panel [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:34:2: style: Class 'Color' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:142:2: style: Class 'Shape' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:274:2: style: Class 'Polyline' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:290:2: style: Class 'Polygon' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:348:2: style: Class 'TextBox' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:653:2: style: Class 'VirtGap' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.hpp:38:2: style: Class 'KsProgressBar' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.hpp:177:2: style: Class 'KsMessageDialog' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.hpp:334:2: style: Class 'KsCheckBoxDialog' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.hpp:426:2: style: Class 'KsCheckBoxTableWidget' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.hpp:494:2: style: Class 'KsCheckBoxTreeWidget' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.hpp:539:2: style: Struct 'KsCPUCheckBoxWidget' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.hpp:555:2: style: Struct 'KsTasksCheckBoxWidget' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.hpp:575:2: style: Struct 'KsEventsCheckBoxWidget' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kernel-shark-kernelshark-v2.4.0/src/KsCaptureDialog.hpp:27:2: style: Struct 'KsCommandLineEdit' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:149:11: style: The destructor '~Shape' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:99:11: note: Virtual destructor in base class kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:149:11: note: Destructor in derived class kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:194:11: style: The destructor '~Point' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:149:11: note: Virtual destructor in base class kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:194:11: note: Destructor in derived class kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:241:11: style: The destructor '~Line' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:149:11: note: Virtual destructor in base class kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:241:11: note: Destructor in derived class kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:279:11: style: The destructor '~Polyline' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:149:11: note: Virtual destructor in base class kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:279:11: note: Destructor in derived class kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:295:11: style: The destructor '~Polygon' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:149:11: note: Virtual destructor in base class kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:295:11: note: Destructor in derived class kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:326:11: style: The destructor '~Triangle' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:295:11: note: Virtual destructor in base class kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:326:11: note: Destructor in derived class kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:338:11: style: The destructor '~Rectangle' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:295:11: note: Virtual destructor in base class kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:338:11: note: Destructor in derived class kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:359:11: style: The destructor '~TextBox' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:99:11: note: Virtual destructor in base class kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:359:11: note: Destructor in derived class kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:391:11: style: The destructor '~Mark' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:99:11: note: Virtual destructor in base class kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:391:11: note: Destructor in derived class kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:462:11: style: The destructor '~Bin' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:99:11: note: Virtual destructor in base class kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:462:11: note: Destructor in derived class kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:631:11: style: The destructor '~VirtBridge' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:279:11: note: Virtual destructor in base class kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:631:11: note: Destructor in derived class kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.hpp:528:7: style: The function '_verify' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.hpp:317:15: note: Virtual function in base class kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.hpp:528:7: note: Function in derived class kernel-shark-kernelshark-v2.4.0/src/KsUtils.hpp:280:2: performance: Function 'getUserPlugins()' should return member '_userPlugins' by const reference. [returnByReference] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.hpp:225:10: performance: Function 'name()' should return member '_name' by const reference. [returnByReference] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.hpp:246:15: performance: Function 'getIds()' should return member '_id' by const reference. [returnByReference] kernel-shark-kernelshark-v2.4.0/src/KsDualMarker.cpp:35:14: warning: Member variable 'KsGraphMark::_ts' is not initialized in the constructor. [uninitMemberVar] kernel-shark-kernelshark-v2.4.0/src/KsDualMarker.cpp:49:14: warning: Member variable 'KsGraphMark::_ts' is not initialized in the constructor. [uninitMemberVar] kernel-shark-kernelshark-v2.4.0/src/KsCaptureDialog.cpp:468:23: style: C-style pointer casting [cstyleCast] kernel-shark-kernelshark-v2.4.0/src/KsCaptureDialog.cpp:478:23: style: C-style pointer casting [cstyleCast] kernel-shark-kernelshark-v2.4.0/src/KsCaptureDialog.cpp:521:23: style: C-style pointer casting [cstyleCast] kernel-shark-kernelshark-v2.4.0/src/KsCaptureDialog.cpp:454:50: style:inconclusive: Function '_argsReady' argument 1 names different: declaration 'test' definition 'args'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/KsCaptureDialog.hpp:157:33: note: Function '_argsReady' argument 1 names different: declaration 'test' definition 'args'. kernel-shark-kernelshark-v2.4.0/src/KsCaptureDialog.cpp:454:50: note: Function '_argsReady' argument 1 names different: declaration 'test' definition 'args'. kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:566:32: performance: Function parameter 'text' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.hpp:383:54: performance: Function parameter 'cbws' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsCaptureDialog.cpp:34:46: performance: Function parameter 'text' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/libkshark.h:583:67: style: Parameter 'kshark_ctx' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.h:26:61: style: Parameter 'stream' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.h:166:65: style: Parameter 'histo' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-plot.h:124:62: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/KsCaptureDialog.cpp:602:24: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] kernel-shark-kernelshark-v2.4.0/src/KsAdvFilteringDialog.cpp:224:22: style: The scope of the variable 'stream' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsAdvFilteringDialog.cpp:243:14: style: The scope of the variable 'eventName' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsAdvFilteringDialog.cpp:244:8: style: The scope of the variable 'filterStr' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsAdvFilteringDialog.cpp:270:20: style: The scope of the variable 'i1' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsAdvFilteringDialog.cpp:270:25: style: The scope of the variable 'i2' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsDualMarker.hpp:153:10: style:inconclusive: Either there is a missing 'override', or the member function 'KsDualMarkerSM::markerAPos' can be const. [functionConst] kernel-shark-kernelshark-v2.4.0/src/KsAdvFilteringDialog.cpp:270:30: style: The scope of the variable 'i3' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsDualMarker.hpp:156:10: style:inconclusive: Either there is a missing 'override', or the member function 'KsDualMarkerSM::markerBPos' can be const. [functionConst] kernel-shark-kernelshark-v2.4.0/src/KsAdvFilteringDialog.cpp:324:24: style: The scope of the variable 'name' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsAdvFilteringDialog.cpp:376:25: style: The scope of the variable 'eventName' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.hpp:335:6: style:inconclusive: Either there is a missing 'override', or the member function 'KsGLWidget::_bin0Offset' can be const. [functionConst] kernel-shark-kernelshark-v2.4.0/src/KsDualMarker.hpp:62:2: style: Class 'KsGraphMark' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.hpp:134:10: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.hpp:143:10: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:59:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable update [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:93:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TT_FONT_FILE [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:134:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COLOR_BUFFER_BIT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:190:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LeftButton [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:293:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LeftButton [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:325:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LeftButton [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:334:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ControlModifier [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:397:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Key_Plus [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:581:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:622:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _taskList [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:703:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cpuGraphs [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:774:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cpuGraphs [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:1217:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cpuGraphs [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsModels.cpp:286:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ForegroundRole [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsModels.cpp:388:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Horizontal [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsModels.cpp:494:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ItemIsEnabled [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:288:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:343:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nothrow [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:861:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:908:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nothrow [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:1059:4: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:742:9: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] kernel-shark-kernelshark-v2.4.0/src/KsModels.cpp:18:21: warning: Member variable 'KsFilterProxyModel::_searchProgress' is not initialized in the constructor. [uninitMemberVar] kernel-shark-kernelshark-v2.4.0/src/KsModels.cpp:18:21: warning: Member variable 'KsFilterProxyModel::_data' is not initialized in the constructor. [uninitMemberVar] kernel-shark-kernelshark-v2.4.0/src/KsPlugins.hpp:112:7: style: The function '_doubleClick' overrides a function in a base class but is identical to the overridden function [uselessOverride] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:129:15: note: Virtual function in base class kernel-shark-kernelshark-v2.4.0/src/KsPlugins.hpp:112:7: note: Function in derived class kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:201:6: style: The scope of the variable 'pid' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:230:6: style: The scope of the variable 'cpu' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:312:9: style: The scope of the variable 'distance' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsModels.cpp:62:13: style: The scope of the variable 'row' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:419:6: style: The scope of the variable 'nCPUs' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsModels.cpp:64:10: style: The scope of the variable 'item' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:756:6: style: The scope of the variable 'sd' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:938:6: style: The scope of the variable 'cpu' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:1210:12: style: The scope of the variable 'n' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsModels.cpp:384:38: style:inconclusive: Function 'headerData' argument 1 names different: declaration 'section' definition 'column'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/KsModels.hpp:69:26: note: Function 'headerData' argument 1 names different: declaration 'section' definition 'column'. kernel-shark-kernelshark-v2.4.0/src/KsModels.cpp:384:38: note: Function 'headerData' argument 1 names different: declaration 'section' definition 'column'. kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:963:10: style: Local variable 'found' shadows outer function [shadowFunction] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.hpp:223:7: note: Shadowed declaration kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:963:10: note: Shadow variable kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:1073:7: style: Local variable 'found' shadows outer function [shadowFunction] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.hpp:223:7: note: Shadowed declaration kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:1073:7: note: Shadow variable kernel-shark-kernelshark-v2.4.0/src/KsPlugins.hpp:127:51: performance: Function parameter 'graph' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsPlugins.hpp:128:26: performance: Function parameter 'bins' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsPlugins.hpp:129:48: performance: Function parameter 'data' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:66:14: style: Variable 'g' can be declared as reference to const [constVariableReference] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:634:13: style: Variable 'c' can be declared as reference to const [constVariableReference] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:311:22: style: Variable 'pluginClicked' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:821:22: style: Variable 'stream' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/KsGLWidget.cpp:852:22: style: Variable 'stream' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/KsModels.cpp:331:15: error: Uninitialized variable: buffer [uninitvar] kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.hpp:33:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ControlModifier [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:147:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CTRL [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:189:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NotRunning [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:308:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable close [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:434:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable aboutToShow [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:555:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable triggered [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:624:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Yes [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1231:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KS_VERSION_STRING [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1242:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TolerantMode [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1248:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TolerantMode [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1382:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CaseInsensitive [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1543:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NormalExit [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1646:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Warning [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:803:6: warning: Member variable 'Bin::_visMask' is not initialized in the constructor. [uninitMemberVar] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:827:8: warning: Member variable 'Graph::_hMargin' is not initialized in the constructor. [uninitMemberVar] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:827:8: warning: Member variable 'Graph::_labelSize' is not initialized in the constructor. [uninitMemberVar] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:827:8: warning: Member variable 'Graph::_height' is not initialized in the constructor. [uninitMemberVar] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:847:8: warning: Member variable 'Graph::_hMargin' is not initialized in the constructor. [uninitMemberVar] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:847:8: warning: Member variable 'Graph::_labelSize' is not initialized in the constructor. [uninitMemberVar] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:847:8: warning: Member variable 'Graph::_height' is not initialized in the constructor. [uninitMemberVar] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:875:12: style:inconclusive: Technically the member function 'KsPlot::Graph::_firstBinOffset' can be const. [functionConst] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:618:6: note: Technically the member function 'KsPlot::Graph::_firstBinOffset' can be const. kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:875:12: note: Technically the member function 'KsPlot::Graph::_firstBinOffset' can be const. kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:849:3: warning: Class 'Graph' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:1477:25: style: Condition '_bins[b]._idBack!=lastPid' is always false [knownConditionTrueFalse] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:1476:25: note: Assuming that condition '_bins[b]._idFront!=lastPid' is not redundant kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:1475:25: note: Assuming that condition '_bins[b]._idFront!=_bins[b]._idBack' is not redundant kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:1477:25: note: Condition '_bins[b]._idBack!=lastPid' is always false kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:126:17: style: The scope of the variable 'pid' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:179:6: style: The scope of the variable 'nCPUs' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:929:6: style: The scope of the variable 'mod' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:1413:24: style:inconclusive: Function 'draw' argument 1 names different: declaration 's' definition 'size'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:539:18: note: Function 'draw' argument 1 names different: declaration 's' definition 'size'. kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:1413:24: note: Function 'draw' argument 1 names different: declaration 's' definition 'size'. kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:79:6: style: Local variable 'r' shadows outer function [shadowFunction] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:37:10: note: Shadowed declaration kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:79:6: note: Shadow variable kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:80:6: style: Local variable 'g' shadows outer function [shadowFunction] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:40:10: note: Shadowed declaration kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:80:6: note: Shadow variable kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:81:6: style: Local variable 'b' shadows outer function [shadowFunction] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:43:10: note: Shadowed declaration kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:81:6: note: Shadow variable kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:93:6: style: Local variable 'r' shadows outer function [shadowFunction] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:37:10: note: Shadowed declaration kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:93:6: note: Shadow variable kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:94:6: style: Local variable 'g' shadows outer function [shadowFunction] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:40:10: note: Shadowed declaration kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:94:6: note: Shadow variable kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:95:6: style: Local variable 'b' shadows outer function [shadowFunction] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:43:10: note: Shadowed declaration kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:95:6: note: Shadow variable kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:110:6: style: Local variable 'r' shadows outer function [shadowFunction] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:37:10: note: Shadowed declaration kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:110:6: note: Shadow variable kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:111:6: style: Local variable 'g' shadows outer function [shadowFunction] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:40:10: note: Shadowed declaration kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:111:6: note: Shadow variable kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:112:6: style: Local variable 'b' shadows outer function [shadowFunction] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:43:10: note: Shadowed declaration kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:112:6: note: Shadow variable kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:1076:6: style: Local variable 'bin' shadows outer function [shadowFunction] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:563:13: note: Shadowed declaration kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:1076:6: note: Shadow variable kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:1206:66: style: Local variable 'bin' shadows outer function [shadowFunction] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.hpp:563:13: note: Shadowed declaration kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:1206:66: note: Shadow variable kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:180:22: style: Variable 'stream' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:348:10: warning: Size of pointer '_points' used instead of size of its data. [pointerSize] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:1213:7: error: Uninitialized variable: cpuFront [uninitvar] kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:1219:41: error: Uninitialized variable: visMask [uninitvar] kernel-shark-kernelshark-v2.4.0/src/KsPlugins.cpp:147:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable second [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsPlugins.cpp:167:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable second [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsPlugins.cpp:272:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsPlugins.cpp:318:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsPlugins.cpp:415:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsPlugins.cpp:191:27: style: The scope of the variable 'dataA' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsPlugins.cpp:193:6: style: The scope of the variable 'binA' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsPlugins.cpp:294:16: style: The scope of the variable 'buffer' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsPlugins.cpp:50:30: style: Parameter 'histo' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:637:24: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1321:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1453:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] kernel-shark-kernelshark-v2.4.0/src/KsTraceViewer.hpp:195:7: style:inconclusive: Either there is a missing 'override', or the member function 'KsTraceViewer::_searchDone' can be const. [functionConst] kernel-shark-kernelshark-v2.4.0/src/KsTraceViewer.hpp:32:2: style: Class 'KsTableItemDelegate' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.hpp:76:70: performance: Function parameter 'streamIds' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.hpp:87:74: performance: Function parameter 'streamIds' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1177:19: style: Condition '!canDoAsRoot' is always true [knownConditionTrueFalse] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1171:19: note: Assignment 'canDoAsRoot(false)', assigned value is 0 kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1177:19: note: Condition '!canDoAsRoot' is always true kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1489:19: style: Condition '!canDoAsRoot' is always true [knownConditionTrueFalse] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1483:19: note: Assignment 'canDoAsRoot(false)', assigned value is 0 kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1489:19: note: Condition '!canDoAsRoot' is always true kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1531:22: style: C-style pointer casting [cstyleCast] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:772:8: style: The scope of the variable 'show' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:983:20: style: The scope of the variable 'cpus_cbd' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:986:6: style: The scope of the variable 'nCPUs' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1022:22: style: The scope of the variable 'stream' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1023:20: style: The scope of the variable 'tasks_cbd' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1025:6: style: The scope of the variable 'nPids' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1067:26: style: The scope of the variable 'enabledPlugins' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1067:42: style: The scope of the variable 'failedPlugins' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1070:26: style: The scope of the variable 'plugin_cbw' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1072:14: style: The scope of the variable 'pluginList' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1371:42: style:inconclusive: Function '_error' argument 1 names different: declaration 'text' definition 'mesg'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.hpp:294:29: note: Function '_error' argument 1 names different: declaration 'text' definition 'mesg'. kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1371:42: note: Function '_error' argument 1 names different: declaration 'text' definition 'mesg'. kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:878:45: performance: Function parameter 'show' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:881:9: performance: Function parameter 'vec' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:882:9: performance: Function parameter 'vec' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:914:45: performance: Function parameter 'show' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:917:9: performance: Function parameter 'vec' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:918:9: performance: Function parameter 'vec' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:950:45: performance: Function parameter 'show' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:953:9: performance: Function parameter 'vec' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:954:9: performance: Function parameter 'vec' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1110:55: performance: Function parameter 'pluginStates' should be passed by const reference. However it seems that '_pluginUpdate' is a callback function. [passedByValueCallback] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1103:25: note: Function pointer used here. kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1110:55: note: Function parameter 'pluginStates' should be passed by const reference. However it seems that '_pluginUpdate' is a callback function. kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1151:52: performance: Function parameter 's' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:211:22: style: Variable 'stream' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1195:22: style: Variable 'dialog' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:485:47: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] kernel-shark-kernelshark-v2.4.0/src/KsMainWindow.cpp:1046:26: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] kernel-shark-kernelshark-v2.4.0/src/KsSearchFSM.cpp:20:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CaseInsensitive [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsSearchFSM.cpp:25:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CaseInsensitive [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsSearchFSM.cpp:30:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CaseInsensitive [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsSearchFSM.cpp:141:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MatchContains [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsQuickContextMenu.hpp:26:2: style: Class 'KsQuickMarkerMenu' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kernel-shark-kernelshark-v2.4.0/src/KsQuickContextMenu.cpp:71:24: warning: Either the condition '!_data' is redundant or there is possible null pointer dereference: _data. [nullPointerRedundantCheck] kernel-shark-kernelshark-v2.4.0/src/KsQuickContextMenu.cpp:79:17: note: Assuming that condition '!_data' is not redundant kernel-shark-kernelshark-v2.4.0/src/KsQuickContextMenu.cpp:71:24: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/src/KsQuickContextMenu.cpp:75:20: style: The scope of the variable 'ret' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsQuickContextMenu.cpp:73:22: style: Variable 'stream' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/KsSearchFSM.cpp:138:55: style:inconclusive: Function 'handleInput' argument 2 names different: declaration 'i' definition 'input'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/KsSearchFSM.hpp:75:47: note: Function 'handleInput' argument 2 names different: declaration 'i' definition 'input'. kernel-shark-kernelshark-v2.4.0/src/KsSearchFSM.cpp:138:55: note: Function 'handleInput' argument 2 names different: declaration 'i' definition 'input'. kernel-shark-kernelshark-v2.4.0/src/KsSearchFSM.cpp:171:54: style:inconclusive: Function 'handleInput' argument 2 names different: declaration 'i' definition 'input'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/KsSearchFSM.hpp:92:47: note: Function 'handleInput' argument 2 names different: declaration 'i' definition 'input'. kernel-shark-kernelshark-v2.4.0/src/KsSearchFSM.cpp:171:54: note: Function 'handleInput' argument 2 names different: declaration 'i' definition 'input'. kernel-shark-kernelshark-v2.4.0/src/KsSearchFSM.cpp:201:58: style:inconclusive: Function 'handleInput' argument 2 names different: declaration 'i' definition 'input'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/KsSearchFSM.hpp:83:47: note: Function 'handleInput' argument 2 names different: declaration 'i' definition 'input'. kernel-shark-kernelshark-v2.4.0/src/KsSearchFSM.cpp:201:58: note: Function 'handleInput' argument 2 names different: declaration 'i' definition 'input'. kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:214:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_string [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:366:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_array [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:451:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_array [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:508:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_array [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.cpp:51:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Horizontal [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.cpp:276:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AlignRight [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.cpp:339:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.cpp:585:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PM_ScrollBarExtent [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.cpp:638:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MouseButtonDblClick [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:206:15: style: The scope of the variable 'jwindow' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:206:25: style: The scope of the variable 'jwidth' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:206:34: style: The scope of the variable 'jheight' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:207:6: style: The scope of the variable 'width' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:207:13: style: The scope of the variable 'height' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:257:15: style: The scope of the variable 'jspl' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:257:22: style: The scope of the variable 'jgraphsize' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:257:35: style: The scope of the variable 'jviewsize' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:408:25: style: The scope of the variable 'jplots' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:442:24: style: The scope of the variable 'id' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:498:6: style: The scope of the variable 'nCombos' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:498:15: style: The scope of the variable 'nPlots' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:498:23: style: The scope of the variable 'sd' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:498:27: style: The scope of the variable 'type' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:498:33: style: The scope of the variable 'id' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:499:15: style: The scope of the variable 'jcombos' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:499:25: style: The scope of the variable 'jplots' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:499:34: style: The scope of the variable 'jplt' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:499:41: style: The scope of the variable 'jvar' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:675:15: style: The scope of the variable 'jplg' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:495:45: style:inconclusive: Function '_getComboPlots' argument 1 names different: declaration 'nCombos' definition 'n'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/KsSession.hpp:106:35: note: Function '_getComboPlots' argument 1 names different: declaration 'nCombos' definition 'n'. kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:495:45: note: Function '_getComboPlots' argument 1 names different: declaration 'nCombos' definition 'n'. kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:589:48: style:inconclusive: Function 'loadDualMarker' argument 1 names different: declaration 'dmm' definition 'dm'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/KsSession.hpp:73:38: note: Function 'loadDualMarker' argument 1 names different: declaration 'dmm' definition 'dm'. kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:589:48: note: Function 'loadDualMarker' argument 1 names different: declaration 'dmm' definition 'dm'. kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:31:40: performance: Function parameter 'jfileName' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:47:38: performance: Function parameter 'jfileName' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:82:38: performance: Function parameter 'fileName' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:82:56: performance: Function parameter 'dataSetName' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:405:45: style: Parameter 'glw' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/KsSession.cpp:699:22: style: Variable 'list' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.cpp:670:9: style: Condition '_keyPressed' is always true [knownConditionTrueFalse] kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.cpp:666:16: note: Assignment '_keyPressed=true', assigned value is 1 kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.cpp:670:9: note: Condition '_keyPressed' is always true kernel-shark-kernelshark-v2.4.0/src/KsTraceViewer.cpp:29:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ScrollBarAlwaysOff [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsTraceViewer.cpp:48:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RightButton [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsTraceViewer.cpp:86:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Expanding [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsTraceViewer.cpp:217:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Highlight [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsTraceViewer.cpp:245:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PositionAtTop [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsTraceViewer.cpp:462:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PositionAtCenter [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsTraceViewer.cpp:539:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Highlight [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsTraceViewer.cpp:564:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PM_ScrollBarExtent [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsTraceViewer.cpp:581:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Key_Up [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.cpp:424:51: style:inconclusive: Function 'cpuReDraw' argument 2 names different: declaration 'cpus' definition 'v'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.hpp:59:38: note: Function 'cpuReDraw' argument 2 names different: declaration 'cpus' definition 'v'. kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.cpp:424:51: note: Function 'cpuReDraw' argument 2 names different: declaration 'cpus' definition 'v'. kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.cpp:440:52: style:inconclusive: Function 'taskReDraw' argument 2 names different: declaration 'pids' definition 'v'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.hpp:61:39: note: Function 'taskReDraw' argument 2 names different: declaration 'pids' definition 'v'. kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.cpp:440:52: note: Function 'taskReDraw' argument 2 names different: declaration 'pids' definition 'v'. kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.cpp:456:36: style:inconclusive: Function 'comboReDraw' argument 1 names different: declaration 'sd' definition 'nCombos'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.hpp:63:23: note: Function 'comboReDraw' argument 1 names different: declaration 'sd' definition 'nCombos'. kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.cpp:456:36: note: Function 'comboReDraw' argument 1 names different: declaration 'sd' definition 'nCombos'. kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.cpp:424:51: performance: Function parameter 'v' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.cpp:440:52: performance: Function parameter 'v' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.cpp:770:21: style: Variable 'rmMenu' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/KsTraceGraph.cpp:786:22: style: Variable 'rmMenu' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:120:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:353:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ElideRight [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:369:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _INSTALL_PREFIX [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:489:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SkipEmptyParts [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:530:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SkipEmptyParts [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:556:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SkipEmptyParts [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:711:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:754:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:1237:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KS_PLUGIN_INSTALL_PREFIX [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsTraceViewer.cpp:47:48: style:inconclusive: Function 'mousePressEvent' argument 1 names different: declaration 'event' definition 'e'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/KsTraceViewer.hpp:57:36: note: Function 'mousePressEvent' argument 1 names different: declaration 'event' definition 'e'. kernel-shark-kernelshark-v2.4.0/src/KsTraceViewer.cpp:47:48: note: Function 'mousePressEvent' argument 1 names different: declaration 'event' definition 'e'. kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:1202:7: style: Condition 'dialog' is always true [knownConditionTrueFalse] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:765:4: style: C-style pointer casting [cstyleCast] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:557:26: style: The scope of the variable 'allPids' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:861:18: style: The scope of the variable 'nCPUs' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:861:25: style: The scope of the variable 'sd' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:887:18: style: The scope of the variable 'nCPUs' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:887:25: style: The scope of the variable 'sd' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:1001:18: style: The scope of the variable 'sd' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:1068:22: style: The scope of the variable 'plugin' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:746:62: style:inconclusive: Function 'appendDataFile' argument 2 names different: declaration 'shift' definition 'offset'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/KsUtils.hpp:201:50: note: Function 'appendDataFile' argument 2 names different: declaration 'shift' definition 'offset'. kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:746:62: note: Function 'appendDataFile' argument 2 names different: declaration 'shift' definition 'offset'. kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:1305:24: style:inconclusive: Function '_pluginToStream' argument 2 names different: declaration 'streamId' definition 'streamIds'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/KsUtils.hpp:323:22: note: Function '_pluginToStream' argument 2 names different: declaration 'streamId' definition 'streamIds'. kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:1305:24: note: Function '_pluginToStream' argument 2 names different: declaration 'streamId' definition 'streamIds'. kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:1347:24: style:inconclusive: Function 'registerPluginToStream' argument 2 names different: declaration 'streamId' definition 'streamIds'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/KsUtils.hpp:293:22: note: Function 'registerPluginToStream' argument 2 names different: declaration 'streamId' definition 'streamIds'. kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:1347:24: note: Function 'registerPluginToStream' argument 2 names different: declaration 'streamId' definition 'streamIds'. kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:1359:21: style:inconclusive: Function 'unregisterPluginFromStream' argument 2 names different: declaration 'streamId' definition 'streamIds'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/KsUtils.hpp:296:19: note: Function 'unregisterPluginFromStream' argument 2 names different: declaration 'streamId' definition 'streamIds'. kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:1359:21: note: Function 'unregisterPluginFromStream' argument 2 names different: declaration 'streamId' definition 'streamIds'. kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:1375:19: style:inconclusive: Function 'addPlugins' argument 2 names different: declaration 'streams' definition 'streamIds'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/KsUtils.hpp:286:61: note: Function 'addPlugins' argument 2 names different: declaration 'streams' definition 'streamIds'. kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:1375:19: note: Function 'addPlugins' argument 2 names different: declaration 'streams' definition 'streamIds'. kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:528:34: performance: Function parameter 'v_str' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:554:47: performance: Function parameter 'v_str' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:687:33: performance: Function parameter 'plugins' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:705:33: performance: Function parameter 'plugins' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:907:61: performance: Function parameter 'vec' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:962:59: performance: Function parameter 'vec' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:968:59: performance: Function parameter 'vec' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:974:60: performance: Function parameter 'vec' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:980:60: performance: Function parameter 'vec' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:986:58: performance: Function parameter 'vec' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:992:58: performance: Function parameter 'vec' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:1305:24: performance: Function parameter 'streamIds' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:1347:24: performance: Function parameter 'streamIds' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:1359:21: performance: Function parameter 'streamIds' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:1412:58: performance: Function parameter 'pluginStates' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:328:29: style: Parameter 'e' can be declared as pointer to const. However it seems that 'matchCPUVisible' is a callback function, if 'e' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:899:19: note: You might need to cast the function pointer here kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:328:29: note: Parameter 'e' can be declared as pointer to const kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:328:45: style: Parameter 'cpu' can be declared as pointer to const. However it seems that 'matchCPUVisible' is a callback function, if 'cpu' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:899:19: note: You might need to cast the function pointer here kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:328:45: note: Parameter 'cpu' can be declared as pointer to const kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:605:22: style: Variable 'stream' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:1281:7: style: Variable 'streamArray' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:137:9: error: Uninitialized variables: e.next, e.cpu, e.pid, e.offset, e.ts [uninitvar] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:498:49: error: Uninitialized variable: i [uninitvar] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:137:9: error: Uninitialized struct member: e.next [uninitStructMember] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:137:9: error: Uninitialized struct member: e.cpu [uninitStructMember] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:137:9: error: Uninitialized struct member: e.pid [uninitStructMember] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:137:9: error: Uninitialized struct member: e.offset [uninitStructMember] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:137:9: error: Uninitialized struct member: e.ts [uninitStructMember] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:39:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Horizontal [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:182:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable close [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:205:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Save [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:241:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DoubleInput [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:347:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clicked [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:371:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Unchecked [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:408:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Checked [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:439:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Checked [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:459:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Unchecked [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:503:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AlignLeft [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:554:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AlignLeft [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:588:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AlignCenter [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:599:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Key_Return [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:613:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RightButton [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:672:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PM_ScrollBarExtent [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:687:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Unchecked [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:694:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Checked [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:731:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SelectRows [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:741:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Key_Return [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:767:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Unchecked [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:781:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RightButton [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:810:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable itemClicked [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:817:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MultiSelection [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:844:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PM_ScrollBarExtent [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:885:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Checked [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:916:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Checked [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:1000:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Checked [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:1022:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Checked [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:1071:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Checked [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:1092:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MatchFixedString [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:1147:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable white [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:1182:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ElideLeft [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:1265:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ElideLeft [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:1292:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Minimum [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/kernelshark.cpp:58:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KS_APP_NAME [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-collection.c:857:34: debug: Function::addArguments found argument 'cond' with varid 0. [varid0] kernel-shark-kernelshark-v2.4.0/src/libkshark-collection.c:812:29: debug: Function::addArguments found argument 'cond' with varid 0. [varid0] kernel-shark-kernelshark-v2.4.0/src/libkshark-collection.c:895:36: debug: Function::addArguments found argument 'cond' with varid 0. [varid0] kernel-shark-kernelshark-v2.4.0/src/libkshark-collection.c:745:32: debug: Function::addArguments found argument 'cond' with varid 0. [varid0] kernel-shark-kernelshark-v2.4.0/src/libkshark-collection.c:78:33: debug: Function::addArguments found argument 'cond' with varid 0. [varid0] kernel-shark-kernelshark-v2.4.0/src/libkshark-collection.c:233:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cond [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-collection.c:329:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-collection.c:506:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-collection.c:593:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-collection.c:822:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cond [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-collection.c:868:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cond [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:58:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:88:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] kernel-shark-kernelshark-v2.4.0/src/kshark-record.cpp:22:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:278:4: style: C-style pointer casting [cstyleCast] kernel-shark-kernelshark-v2.4.0/src/kernelshark.cpp:28:51: style: C-style pointer casting [cstyleCast] kernel-shark-kernelshark-v2.4.0/src/kernelshark.cpp:125:13: style: C-style pointer casting [cstyleCast] kernel-shark-kernelshark-v2.4.0/src/kernelshark.cpp:126:24: style: C-style pointer casting [cstyleCast] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:216:10: style: The scope of the variable 'streamName' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:573:15: style: The scope of the variable 'cbLayout' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:574:11: style: The scope of the variable 'cbWidget' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:921:20: style: The scope of the variable 'item' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:993:10: style: The scope of the variable 'evtName' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:1011:19: style: The scope of the variable 'sysItem' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:1012:10: style: The scope of the variable 'sysName' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:1115:20: style: The scope of the variable 'pidItem' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:1115:30: style: The scope of the variable 'comItem' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:1119:14: style: The scope of the variable 'comm' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:1120:14: style: The scope of the variable 'pid' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:1166:31: style: The scope of the variable 'infoItem' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:1338:22: style: The scope of the variable 'stream' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:195:31: performance: Function parameter 'fileName' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:295:52: performance: Function parameter 'dataFile' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:431:41: performance: Function parameter 'v' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:648:52: performance: Function parameter 'headers' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:990:19: performance: Function parameter 'eventIds' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:1009:20: performance: Function parameter 'eventIds' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:1214:53: performance: Function parameter 'rows' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:701:41: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] kernel-shark-kernelshark-v2.4.0/src/KsWidgetsLib.cpp:895:42: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] kernel-shark-kernelshark-v2.4.0/src/libkshark-collection.c:152:14: style: Condition 'good_data' is always true [knownConditionTrueFalse] kernel-shark-kernelshark-v2.4.0/src/libkshark-collection.c:133:7: note: Assuming that condition '!good_data' is not redundant kernel-shark-kernelshark-v2.4.0/src/libkshark-collection.c:152:14: note: Condition 'good_data' is always true kernel-shark-kernelshark-v2.4.0/src/libkshark-collection.c:85:23: style: Variable 'last_vis_entry' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-collection.c:719:30: style: Parameter 'val_a' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-collection.c:719:42: style: Parameter 'val_b' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-hash.c:74:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-hash.c:127:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-hash.c:222:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:925:28: debug: Function::addArguments found argument 'func' with varid 0. [varid0] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:973:34: debug: Function::addArguments found argument 'func' with varid 0. [varid0] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:799:31: debug: Function::addArguments found argument 'func' with varid 0. [varid0] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:819:30: debug: Function::addArguments found argument 'func' with varid 0. [varid0] kernel-shark-kernelshark-v2.4.0/src/libkshark-hash.c:46:48: style: Parameter 'hash' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-hash.c:96:49: style: Parameter 'hash' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-hash.c:43:19: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour. See condition at line 40. [shiftTooManyBitsSigned] kernel-shark-kernelshark-v2.4.0/src/libkshark-hash.c:40:20: note: Assuming that condition 'bits>31' is not redundant kernel-shark-kernelshark-v2.4.0/src/libkshark-hash.c:43:19: note: Shift kernel-shark-kernelshark-v2.4.0/src/libkshark-hash.c:48:2: style: int result is returned as long value. If the return value is long to avoid loss of information, then you have loss of information. [truncLongCastReturn] kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:2839:0: error: #error "Unrecognized value of STBTT_RASTERIZER_VERSION" [preprocessorErrorDirective] kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:2839:5: error: #error "Unrecognized value of STBTT_RASTERIZER_VERSION" [preprocessorErrorDirective] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:84:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:410:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:812:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable func [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:832:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable func [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:937:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable func [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:985:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable func [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1280:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOVERFLOW [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1287:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOVERFLOW [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:44:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:77:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:123:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:192:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:245:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:321:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:446:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:456:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILENAME_MAX [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:524:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:556:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:641:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:692:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:723:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:756:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:769:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:787:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_array [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:828:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:885:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:910:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_array [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:970:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1001:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1039:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1059:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_array [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1103:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1162:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1194:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1223:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_array [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1276:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1322:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1351:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1373:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_array [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1417:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1475:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1522:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1545:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_array [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1608:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1656:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1705:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1719:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_array [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1759:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1826:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:2215:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:2333:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:2349:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_array [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:2393:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:2405:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_C_TO_STRING_SPACED [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:2429:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:2459:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:965:37: debug: Function::addArguments found argument 'info_func' with varid 0. [varid0] kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:37:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:54:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:98:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:135:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:168:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:266:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:464:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:661:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:733:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:325:20: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:98:23: style: Variable 'last' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:787:53: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1184:42: style: Parameter 'col' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1238:43: style: Parameter 'col' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1277:85: style: Parameter 'kshark_ctx' can be declared as pointer to const. However it seems that 'match_cpu_missed_events' is a callback function, if 'kshark_ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1312:12: note: You might need to cast the function pointer here kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1277:85: note: Parameter 'kshark_ctx' can be declared as pointer to const kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1278:30: style: Parameter 'e' can be declared as pointer to const. However it seems that 'match_cpu_missed_events' is a callback function, if 'e' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1312:12: note: You might need to cast the function pointer here kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1278:30: note: Parameter 'e' can be declared as pointer to const kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1278:46: style: Parameter 'cpu' can be declared as pointer to const. However it seems that 'match_cpu_missed_events' is a callback function, if 'cpu' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1312:12: note: You might need to cast the function pointer here kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1278:46: note: Parameter 'cpu' can be declared as pointer to const kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1284:85: style: Parameter 'kshark_ctx' can be declared as pointer to const. However it seems that 'match_pid_missed_events' is a callback function, if 'kshark_ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1337:12: note: You might need to cast the function pointer here kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1284:85: note: Parameter 'kshark_ctx' can be declared as pointer to const kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1285:30: style: Parameter 'e' can be declared as pointer to const. However it seems that 'match_pid_missed_events' is a callback function, if 'e' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1337:12: note: You might need to cast the function pointer here kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1285:30: note: Parameter 'e' can be declared as pointer to const kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1285:46: style: Parameter 'pid' can be declared as pointer to const. However it seems that 'match_pid_missed_events' is a callback function, if 'pid' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1337:12: note: You might need to cast the function pointer here kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1285:46: note: Parameter 'pid' can be declared as pointer to const kernel-shark-kernelshark-v2.4.0/src/libkshark-model.c:1353:48: style: Parameter 'histo' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:72:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:207:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOVERFLOW [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:302:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:421:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:497:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:564:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:597:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBADF [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:700:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:802:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEP_PRINT_LATENCY [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:825:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEP_PRINT_INFO [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:852:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOVERFLOW [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:889:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEP_EVENT_SORT_SYSTEM [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:920:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:970:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1017:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1112:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEP_FIELD_IS_SIGNED [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1145:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1179:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1235:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EEXIST [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1266:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1352:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1411:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODATA [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1485:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1549:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EEXIST [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1587:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1624:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1682:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1792:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1881:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EEXIST [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:610:2: warning: If memory allocation fails, then there is a possible null pointer dereference: plugin_list [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:609:22: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:609:22: note: Assignment 'plugin_list=calloc(1,sizeof(*plugin_list))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:610:2: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:613:3: warning: If memory allocation fails, then there is a possible null pointer dereference: plugin_list [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:609:22: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:609:22: note: Assignment 'plugin_list=calloc(1,sizeof(*plugin_list))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:613:3: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:615:2: warning: If memory allocation fails, then there is a possible null pointer dereference: plugin_list [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:609:22: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:609:22: note: Assignment 'plugin_list=calloc(1,sizeof(*plugin_list))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:615:2: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:493:21: style:inconclusive: Function 'kshark_unregister_input' argument 2 names different: declaration 'file' definition 'name'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.h:274:21: note: Function 'kshark_unregister_input' argument 2 names different: declaration 'file' definition 'name'. kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:493:21: note: Function 'kshark_unregister_input' argument 2 names different: declaration 'file' definition 'name'. kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:537:68: style:inconclusive: Function 'kshark_find_plugin' argument 2 names different: declaration 'file' definition 'lib'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.h:331:68: note: Function 'kshark_find_plugin' argument 2 names different: declaration 'file' definition 'lib'. kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:537:68: note: Function 'kshark_find_plugin' argument 2 names different: declaration 'file' definition 'lib'. kernel-shark-kernelshark-v2.4.0/src/libkshark-plugin.c:629:34: style: Parameter 'plugin' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1685:31: debug: Function::addArguments found argument 'cond' with varid 0. [varid0] kernel-shark-kernelshark-v2.4.0/src/plugins/EventFieldDialog.cpp:48:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AlignLeft [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/EventFieldDialog.cpp:132:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UpdatePlugins [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/EventFieldDialog.cpp:145:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UpdatePlugins [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/EventFieldDialog.cpp:174:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable efp_dialog [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/EventFieldDialog.cpp:108:1: error: Memory leak: event [memleak] kernel-shark-kernelshark-v2.4.0/src/plugins/EventFieldDialog.cpp:122:1: error: Memory leak: field [memleak] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1729:3: warning: If memory allocation fails, then there is a possible null pointer dereference: calib_argv [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1726:21: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1726:21: note: Assignment 'calib_argv=calloc(calib_length,sizeof(*calib_argv))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1729:3: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:2157:2: warning: Either the condition '!sd_conf' is redundant or there is possible null pointer dereference: sd_conf. [nullPointerRedundantCheck] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:2173:6: note: Assuming that condition '!sd_conf' is not redundant kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:2157:2: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:2499:4: warning: If memory allocation fails, then there is a possible null pointer dereference: conf [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:2498:17: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:2498:17: note: Assignment 'conf=malloc(sizeof(*conf))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:2499:4: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:2500:4: warning: If memory allocation fails, then there is a possible null pointer dereference: conf [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:2498:17: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:2498:17: note: Assignment 'conf=malloc(sizeof(*conf))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:2500:4: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1428:7: style: Variable 'events' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-configio.c:1614:61: style: Parameter 'kshark_ctx' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/plugins/EventFieldPlot.cpp:40:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KSHARK_CPU_DRAW [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/EventFieldPlot.cpp:65:45: performance: Function parameter 'data' should be passed by const reference. [passedByValue] kernel-shark-kernelshark-v2.4.0/src/plugins/VirtComboPlotTools.hpp:157:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KSHARK_HOST_DRAW [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/KVMComboDialog.cpp:48:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable comboReDraw [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/KVMComboDialog.cpp:63:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable combo_dialog [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/KVMComboDialog.cpp:78:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FONT_HEIGHT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/KVMComboDialog.cpp:99:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable guest_id [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/KVMComboDialog.cpp:152:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HLine [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/KVMComboDialog.cpp:239:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable host_id [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/KVMComboDialog.cpp:269:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable guest_id [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/KVMComboDialog.cpp:285:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vcpu_count [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/KVMComboDialog.cpp:328:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vcpu_count [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:239:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODEV [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:295:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:334:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:427:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:467:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:626:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:651:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:698:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:827:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:882:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:912:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:984:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1022:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFAULT [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1055:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBADF [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1273:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1509:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1691:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1946:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:2128:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:2189:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:2224:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __tmp [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/VirtComboPlotTools.hpp:29:22: style: The scope of the variable 'entry' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/plugins/VirtComboPlotTools.hpp:29:30: style: The scope of the variable 'exit' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/plugins/KVMCombo.cpp:29:22: style: Variable 'plugin_ctx' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/plugins/LatencyPlot.cpp:73:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/LatencyPlot.cpp:152:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _base [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/LatencyPlot.cpp:171:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _color [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/LatencyPlot.cpp:299:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KSHARK_CPU_DRAW [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/KVMComboDialog.cpp:91:39: style:inconclusive: Function 'update' argument 1 names different: declaration 'GuestId' definition 'guestId'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/plugins/KVMComboDialog.hpp:26:18: note: Function 'update' argument 1 names different: declaration 'GuestId' definition 'guestId'. kernel-shark-kernelshark-v2.4.0/src/plugins/KVMComboDialog.cpp:91:39: note: Function 'update' argument 1 names different: declaration 'GuestId' definition 'guestId'. kernel-shark-kernelshark-v2.4.0/src/plugins/KVMComboDialog.cpp:324:46: style:inconclusive: Function '_setCurrentPlots' argument 1 names different: declaration 'guestSd' definition 'sdGuest'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/plugins/KVMComboDialog.hpp:80:28: note: Function '_setCurrentPlots' argument 1 names different: declaration 'guestSd' definition 'sdGuest'. kernel-shark-kernelshark-v2.4.0/src/plugins/KVMComboDialog.cpp:324:46: note: Function '_setCurrentPlots' argument 1 names different: declaration 'guestSd' definition 'sdGuest'. kernel-shark-kernelshark-v2.4.0/src/plugins/LatencyPlot.cpp:59:10: style: The scope of the variable 'timeA' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/plugins/LatencyPlot.cpp:59:17: style: The scope of the variable 'timeANext' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/plugins/LatencyPlot.cpp:59:28: style: The scope of the variable 'valFieldA' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/plugins/LatencyPlot.cpp:284:17: style: The scope of the variable 'eA' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/plugins/LatencyPlot.cpp:237:22: style: Variable 'stream' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/plugins/LatencyPlot.cpp:275:43: style: Parameter 'eA' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/plugins/LatencyPlot.cpp:275:61: style: Parameter 'eB' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/plugins/LatencyPlotDialog.cpp:50:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AlignLeft [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/LatencyPlotDialog.cpp:123:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/LatencyPlotDialog.cpp:132:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UpdatePlugins [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/LatencyPlotDialog.cpp:147:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UpdatePlugins [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/LatencyPlotDialog.cpp:175:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lp_dialog [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/LatencyPlotDialog.cpp:98:18: error: Memory leak: name [memleak] kernel-shark-kernelshark-v2.4.0/src/plugins/LatencyPlotDialog.cpp:105:18: error: Memory leak: name [memleak] kernel-shark-kernelshark-v2.4.0/src/plugins/LatencyPlotDialog.cpp:110:18: error: Memory leak: name [memleak] kernel-shark-kernelshark-v2.4.0/src/plugins/LatencyPlotDialog.cpp:113:1: error: Memory leak: name [memleak] kernel-shark-kernelshark-v2.4.0/src/plugins/MissedEvents.cpp:70:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _base [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/MissedEvents.cpp:107:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KSHARK_CPU_DRAW [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/SchedEvents.cpp:46:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _data [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/SchedEvents.cpp:88:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pid [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/event_field_plot.c:47:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/SchedEvents.cpp:109:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KSHARK_TASK_DRAW [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/event_field_plot.c:96:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable draw_event_field [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/event_field_plot.c:112:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable draw_event_field [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/SchedEvents.cpp:68:6: style: The scope of the variable 'pid_rec' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/plugins/SchedEvents.cpp:64:46: style: Parameter 'plugin_ctx' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/plugins/kvm_combo.c:47:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable draw_kvm_combos [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/kvm_combo.c:59:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable draw_kvm_combos [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/kvm_combo.c:55:29: style: Variable 'plugin_ctx' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/plugins/latency_plot.c:51:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/latency_plot.c:134:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable draw_latency [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/latency_plot.c:154:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable draw_latency [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/missed_events.c:23:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable draw_missed_events [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/missed_events.c:31:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable draw_missed_events [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/sched_events.c:29:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PREV_STATE_MASK [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/sched_events.c:42:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PREV_STATE_MASK [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/sched_events.c:172:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable plugin_draw [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/src/plugins/sched_events.c:194:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable plugin_draw [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/tests/libkshark-gui-tests.cpp:26:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KS_TEST_DIR [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/tests/libkshark-gui-tests.cpp:84:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KS_TEXT_VIEW_FILTER_MASK [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/tests/libkshark-gui-tests.cpp:127:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KS_TEST_DIR [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/tests/libkshark-gui-tests.cpp:172:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable path [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/tests/libkshark-gui-tests.cpp:243:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KS_TEST_DIR [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/tests/libkshark-gui-tests.cpp:280:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KS_TEST_DIR [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/tests/libkshark-gui-tests.cpp:298:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KS_TEST_DIR [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/tests/libkshark-gui-tests.cpp:204:7: style: Variable 'list' is reassigned a value before the old one has been used. [redundantAssignment] kernel-shark-kernelshark-v2.4.0/tests/libkshark-gui-tests.cpp:199:7: note: list is assigned kernel-shark-kernelshark-v2.4.0/tests/libkshark-gui-tests.cpp:204:7: note: list is overwritten kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1067:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1068:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:685:2: error: Memory leak: buffer [memleak] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:982:2: error: Memory leak: entry_str [memleak] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1070:3: error: Memory leak: buffer [memleak] kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:47:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODEV [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:114:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KS_CONTAINER_DEFAULT_SIZE [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:205:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable path [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:317:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable path [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:401:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable path [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/tests/test-input.c:26:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kshark_entry [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/tests/test-input.c:112:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/tests/test-input.c:26:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rows [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/tests/test-input.c:24:15: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/tests/test-input.c:24:15: note: Assignment 'rows=calloc(total,sizeof(struct kshark_entry*))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/tests/test-input.c:26:3: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/tests/test-input.c:27:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rows [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/tests/test-input.c:24:15: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/tests/test-input.c:24:15: note: Assignment 'rows=calloc(total,sizeof(struct kshark_entry*))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/tests/test-input.c:27:3: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/tests/test-input.c:28:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rows [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/tests/test-input.c:24:15: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/tests/test-input.c:24:15: note: Assignment 'rows=calloc(total,sizeof(struct kshark_entry*))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/tests/test-input.c:28:3: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/tests/test-input.c:29:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rows [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/tests/test-input.c:24:15: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/tests/test-input.c:24:15: note: Assignment 'rows=calloc(total,sizeof(struct kshark_entry*))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/tests/test-input.c:29:3: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/tests/test-input.c:30:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rows [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/tests/test-input.c:24:15: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/tests/test-input.c:24:15: note: Assignment 'rows=calloc(total,sizeof(struct kshark_entry*))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/tests/test-input.c:30:3: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/tests/test-input.c:31:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rows [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/tests/test-input.c:24:15: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/tests/test-input.c:24:15: note: Assignment 'rows=calloc(total,sizeof(struct kshark_entry*))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/tests/test-input.c:31:3: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/tests/test-input.c:32:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rows [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/tests/test-input.c:24:15: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/tests/test-input.c:24:15: note: Assignment 'rows=calloc(total,sizeof(struct kshark_entry*))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/tests/test-input.c:32:3: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/tests/test-input.c:17:56: style: Parameter 'stream' can be declared as pointer to const. However it seems that 'load_entries' is a callback function, if 'stream' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kernel-shark-kernelshark-v2.4.0/tests/test-input.c:128:28: note: You might need to cast the function pointer here kernel-shark-kernelshark-v2.4.0/tests/test-input.c:17:56: note: Parameter 'stream' can be declared as pointer to const kernel-shark-kernelshark-v2.4.0/tests/test-input.c:64:8: style: Variable 'ext' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/tests/test-input.c:72:72: style: Parameter 'stream' can be declared as pointer to const. However it seems that 'get_pid' is a callback function, if 'stream' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kernel-shark-kernelshark-v2.4.0/tests/test-input.c:123:23: note: You might need to cast the function pointer here kernel-shark-kernelshark-v2.4.0/tests/test-input.c:72:72: note: Parameter 'stream' can be declared as pointer to const kernel-shark-kernelshark-v2.4.0/tests/test-input.c:133:85: style: Parameter 'stream' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1909:24: style:inconclusive: Function 'define_wakeup_event' argument 2 names different: declaration 'wakeup_event' definition 'waking_event_ptr'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.h:115:24: note: Function 'define_wakeup_event' argument 2 names different: declaration 'wakeup_event' definition 'waking_event_ptr'. kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1909:24: note: Function 'define_wakeup_event' argument 2 names different: declaration 'wakeup_event' definition 'waking_event_ptr'. kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:246:28: style: Parameter 'record' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:292:25: style: Variable 'input' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:692:20: style: Variable 'event' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:816:24: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1061:20: style: Variable 'event' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1111:27: style: Variable 'evt_field' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1522:58: style: Parameter 'stream' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1534:8: style: Variable 'ext' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1653:27: style: Variable 'adv_filter' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/libkshark-tepdata.c:1868:29: style: Variable 'top_stream' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:26:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kshark_entry [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:114:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:26:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rows [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:24:15: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:24:15: note: Assignment 'rows=calloc(total,sizeof(struct kshark_entry*))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:26:3: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:27:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rows [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:24:15: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:24:15: note: Assignment 'rows=calloc(total,sizeof(struct kshark_entry*))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:27:3: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:28:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rows [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:24:15: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:24:15: note: Assignment 'rows=calloc(total,sizeof(struct kshark_entry*))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:28:3: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:29:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rows [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:24:15: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:24:15: note: Assignment 'rows=calloc(total,sizeof(struct kshark_entry*))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:29:3: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:30:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rows [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:24:15: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:24:15: note: Assignment 'rows=calloc(total,sizeof(struct kshark_entry*))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:30:3: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:31:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rows [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:24:15: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:24:15: note: Assignment 'rows=calloc(total,sizeof(struct kshark_entry*))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:31:3: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:34:2: warning: If memory allocation fails, then there is a possible null pointer dereference: rows [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:24:15: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:24:15: note: Assignment 'rows=calloc(total,sizeof(struct kshark_entry*))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:34:2: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:17:56: style: Parameter 'stream' can be declared as pointer to const. However it seems that 'load_entries' is a callback function, if 'stream' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:128:28: note: You might need to cast the function pointer here kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:17:56: note: Parameter 'stream' can be declared as pointer to const kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:66:8: style: Variable 'ext' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:74:72: style: Parameter 'stream' can be declared as pointer to const. However it seems that 'get_pid' is a callback function, if 'stream' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:124:23: note: You might need to cast the function pointer here kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:74:72: note: Parameter 'stream' can be declared as pointer to const kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:133:85: style: Parameter 'stream' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/tests/test-input_ctrl.c:137:69: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/tests/test-plugin_dpi.c:15:88: style: Parameter 'stream' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/tests/test-plugin_dpi.c:22:90: style: Parameter 'stream' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/tests/test-plugin_dpi_ctrl.c:15:88: style: Parameter 'stream' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/tests/test-plugin_dpi_ctrl.c:22:90: style: Parameter 'stream' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/tests/test-plugin_dpi_ctrl.c:29:69: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/tests/test-plugin_dpi_err.c:15:88: style: Parameter 'stream' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/tests/test-plugin_dpi_err.c:22:90: style: Parameter 'stream' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:97:3: warning: If memory allocation fails, then there is a possible null pointer dereference: arr [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:93:27: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:93:13: note: Assignment 'arr=(int*)malloc(n*sizeof(*arr))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:97:3: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:104:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: arr [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:93:27: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:93:13: note: Assignment 'arr=(int*)malloc(n*sizeof(*arr))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:104:3: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:106:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: arr [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:93:27: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:93:13: note: Assignment 'arr=(int*)malloc(n*sizeof(*arr))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:106:3: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:93:13: style: C-style pointer casting [cstyleCast] kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:271:3: style: C-style pointer casting [cstyleCast] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:955:7: warning: Either the condition '!entry_str' is redundant or there is possible null pointer dereference: entry_str. [nullPointerRedundantCheck] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:952:6: note: Assuming that condition '!entry_str' is not redundant kernel-shark-kernelshark-v2.4.0/src/libkshark.c:955:7: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:73:6: style: The scope of the variable 'sd' can be reduced. [variableScope] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:2230:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data_field [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:2229:21: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/src/libkshark.c:2229:21: note: Assignment 'data_field=malloc(sizeof(*data_field))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/src/libkshark.c:2230:2: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/src/libkshark.c:2231:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data_field [nullPointerOutOfMemory] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:2229:21: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/src/libkshark.c:2229:21: note: Assignment 'data_field=malloc(sizeof(*data_field))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/src/libkshark.c:2231:2: note: Null pointer dereference kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:55:22: style: Variable 'stream' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:193:32: style: Variable 'i1' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:193:37: style: Variable 'i2' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:193:42: style: Variable 'x1' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:193:47: style: Variable 'x2' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/tests/libkshark-tests.cpp:394:22: style: Variable 'stream' can be declared as pointer to const [constVariablePointer] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:820:18: style:inconclusive: Function 'kshark_get_all_event_field_names' argument 2 names different: declaration 'field' definition 'fields'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/libkshark.h:483:18: note: Function 'kshark_get_all_event_field_names' argument 2 names different: declaration 'field' definition 'fields'. kernel-shark-kernelshark-v2.4.0/src/libkshark.c:820:18: note: Function 'kshark_get_all_event_field_names' argument 2 names different: declaration 'field' definition 'fields'. kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1545:29: style:inconclusive: Function 'kshark_find_entry_by_time' argument 2 names different: declaration 'data_rows' definition 'data'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/libkshark.h:644:29: note: Function 'kshark_find_entry_by_time' argument 2 names different: declaration 'data_rows' definition 'data'. kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1545:29: note: Function 'kshark_find_entry_by_time' argument 2 names different: declaration 'data_rows' definition 'data'. kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1864:48: style:inconclusive: Function 'kshark_offset_calib' argument 2 names different: declaration 'atgv' definition 'argv'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/libkshark.h:1057:48: note: Function 'kshark_offset_calib' argument 2 names different: declaration 'atgv' definition 'argv'. kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1864:48: note: Function 'kshark_offset_calib' argument 2 names different: declaration 'atgv' definition 'argv'. kernel-shark-kernelshark-v2.4.0/src/libkshark.c:2075:11: style:inconclusive: Function 'kshark_append_all_entries' argument 4 names different: declaration 'first_streams' definition 'sd_first_new'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/libkshark.h:1082:11: note: Function 'kshark_append_all_entries' argument 4 names different: declaration 'first_streams' definition 'sd_first_new'. kernel-shark-kernelshark-v2.4.0/src/libkshark.c:2075:11: note: Function 'kshark_append_all_entries' argument 4 names different: declaration 'first_streams' definition 'sd_first_new'. kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1198:55: style: Parameter 'filter' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1576:71: style: Parameter 'kshark_ctx' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1577:30: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1577:46: style: Parameter 'pid' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1596:71: style: Parameter 'kshark_ctx' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1597:30: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1597:46: style: Parameter 'cpu' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1616:76: style: Parameter 'kshark_ctx' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1617:28: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1617:44: style: Parameter 'event_id' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1634:81: style: Parameter 'kshark_ctx' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1635:26: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1636:18: style: Parameter 'values' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1655:81: style: Parameter 'kshark_ctx' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1656:26: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1657:18: style: Parameter 'values' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1864:48: style: Parameter 'argv' can be declared as pointer to const. However it seems that 'kshark_offset_calib' is a callback function, if 'argv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1891:19: note: You might need to cast the function pointer here kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1864:48: note: Parameter 'argv' can be declared as pointer to const kernel-shark-kernelshark-v2.4.0/src/libkshark.c:1908:20: style: Parameter 'count' can be declared as pointer to const [constParameterPointer] kernel-shark-kernelshark-v2.4.0/src/libkshark.c:2088:18: style: Parameter 'count' can be declared as pointer to const [constParameterPointer] diff: 2.18.0 kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:849:3: warning: Class 'Graph' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] head kernel-shark-kernelshark-v2.4.0/src/KsPlotTools.cpp:849:3: warning: Class 'Graph' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/libkshark-plot.c:124:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_POINTS [valueFlowBailoutIncompleteVar] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/libkshark-plot.c:147:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_LINES [valueFlowBailoutIncompleteVar] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/libkshark-plot.c:205:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TRIANGLE_FAN [valueFlowBailoutIncompleteVar] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/libkshark-plot.c:252:22: style: Variable 'end' can be declared as pointer to const [constVariablePointer] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/libkshark-plot.c:283:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/libkshark-plot.c:310:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/libkshark-plot.c:421:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/libkshark-plot.c:76:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/libkshark-plot.c:96:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_PROJECTION [valueFlowBailoutIncompleteVar] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:1281:43: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:1282:41: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:1283:42: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:1284:40: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:1289:39: style: Parameter 'font' can be declared as pointer to const [constParameterPointer] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:1816:45: style: Variable 'tmp' is assigned a value that is never used. [unreadVariable] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:2292:95: style:inconclusive: Function 'stbtt_GetGlyphShape' argument 3 names different: declaration 'vertices' definition 'pvertices'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:842:95: note: Function 'stbtt_GetGlyphShape' argument 3 names different: declaration 'vertices' definition 'pvertices'. kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:2292:95: note: Function 'stbtt_GetGlyphShape' argument 3 names different: declaration 'vertices' definition 'pvertices'. 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:2456:27: style: Variable 'classDefTable' is assigned a value that is never used. [unreadVariable] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:2480:13: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:2480:27: style: Variable 'classDefTable' is assigned a value that is never used. [unreadVariable] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:2623:74: style:inconclusive: Function 'stbtt_GetGlyphKernAdvance' argument 2 names different: declaration 'glyph1' definition 'g1'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:796:74: note: Function 'stbtt_GetGlyphKernAdvance' argument 2 names different: declaration 'glyph1' definition 'g1'. kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:2623:74: note: Function 'stbtt_GetGlyphKernAdvance' argument 2 names different: declaration 'glyph1' definition 'g1'. 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:2623:82: style:inconclusive: Function 'stbtt_GetGlyphKernAdvance' argument 3 names different: declaration 'glyph2' definition 'g2'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:796:86: note: Function 'stbtt_GetGlyphKernAdvance' argument 3 names different: declaration 'glyph2' definition 'g2'. kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:2623:82: note: Function 'stbtt_GetGlyphKernAdvance' argument 3 names different: declaration 'glyph2' definition 'g2'. 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:2673:77: style:inconclusive: Function 'stbtt_ScaleForPixelHeight' argument 2 names different: declaration 'pixels' definition 'height'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:754:77: note: Function 'stbtt_ScaleForPixelHeight' argument 2 names different: declaration 'pixels' definition 'height'. kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:2673:77: note: Function 'stbtt_ScaleForPixelHeight' argument 2 names different: declaration 'pixels' definition 'height'. 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:2685:74: style:inconclusive: Function 'stbtt_FreeShape' argument 2 names different: declaration 'vertices' definition 'v'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:853:74: note: Function 'stbtt_FreeShape' argument 2 names different: declaration 'vertices' definition 'v'. kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:2685:74: note: Function 'stbtt_FreeShape' argument 2 names different: declaration 'vertices' definition 'v'. head kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:2839:0: error: #error "Unrecognized value of STBTT_RASTERIZER_VERSION" [preprocessorErrorDirective] head kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:2839:5: error: #error "Unrecognized value of STBTT_RASTERIZER_VERSION" [preprocessorErrorDirective] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:3041:84: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:3147:22: style: Variable 'dx' is assigned a value that is never used. [unreadVariable] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:3172:53: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:3254:25: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:3250:28: note: Assuming allocation function fails kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:3250:18: note: Assignment 'scanline=(float*)((void)(userdata),malloc((result->w*2+1)*sizeof(float)))', assigned value is 0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:3254:25: note: Null pointer addition 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:3346:30: style: Variable 'a' can be declared as pointer to const [constVariablePointer] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:3349:23: style: Variable 'b' can be declared as pointer to const [constVariablePointer] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:3369:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable y0 [valueFlowBailoutIncompleteVar] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:3433:77: style: Parameter 'wcount' can be declared as pointer to const [constParameterPointer] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:3756:57: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:3802:120: style: Parameter 'ypos' can be declared as pointer to const [constParameterPointer] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:3900:83: style:inconclusive: Function 'stbtt_PackBegin' argument 3 names different: declaration 'width' definition 'pw'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:584:84: note: Function 'stbtt_PackBegin' argument 3 names different: declaration 'width' definition 'pw'. kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:3900:83: note: Function 'stbtt_PackBegin' argument 3 names different: declaration 'width' definition 'pw'. 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:3900:91: style:inconclusive: Function 'stbtt_PackBegin' argument 4 names different: declaration 'height' definition 'ph'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:584:95: note: Function 'stbtt_PackBegin' argument 4 names different: declaration 'height' definition 'ph'. kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:3900:91: note: Function 'stbtt_PackBegin' argument 4 names different: declaration 'height' definition 'ph'. 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4092:67: style: Parameter 'spc' can be declared as pointer to const [constParameterPointer] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4127:208: style:inconclusive: Function 'stbtt_MakeGlyphBitmapSubpixelPrefilter' argument 10 names different: declaration 'oversample_x' definition 'prefilter_x'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:913:208: note: Function 'stbtt_MakeGlyphBitmapSubpixelPrefilter' argument 10 names different: declaration 'oversample_x' definition 'prefilter_x'. kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4127:208: note: Function 'stbtt_MakeGlyphBitmapSubpixelPrefilter' argument 10 names different: declaration 'oversample_x' definition 'prefilter_x'. 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4127:225: style:inconclusive: Function 'stbtt_MakeGlyphBitmapSubpixelPrefilter' argument 11 names different: declaration 'oversample_y' definition 'prefilter_y'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:913:226: note: Function 'stbtt_MakeGlyphBitmapSubpixelPrefilter' argument 11 names different: declaration 'oversample_y' definition 'prefilter_y'. kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4127:225: note: Function 'stbtt_MakeGlyphBitmapSubpixelPrefilter' argument 11 names different: declaration 'oversample_y' definition 'prefilter_y'. 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4254:21: warning: Uninitialized variables: ranges.h_oversample, ranges.v_oversample [uninitvar] kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4290:59: note: Calling function 'stbtt_PackFontRanges', 4th argument '&range' value is kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4254:21: note: Uninitialized variables: ranges.h_oversample, ranges.v_oversample 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4282:17: style:inconclusive: Function 'stbtt_PackFontRange' argument 5 names different: declaration 'first_unicode_char_in_range' definition 'first_unicode_codepoint_in_range'. [funcArgNamesDifferent] kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:601:37: note: Function 'stbtt_PackFontRange' argument 5 names different: declaration 'first_unicode_char_in_range' definition 'first_unicode_codepoint_in_range'. kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4282:17: note: Function 'stbtt_PackFontRange' argument 5 names different: declaration 'first_unicode_char_in_range' definition 'first_unicode_codepoint_in_range'. 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4306:122: style: Parameter 'ypos' can be declared as pointer to const [constParameterPointer] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4341:101: style: Parameter 'q2' can be declared as const array [constParameter] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4341:46: style: Parameter 'orig' can be declared as const array [constParameter] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4341:61: style: Parameter 'ray' can be declared as const array [constParameter] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4341:75: style: Parameter 'q0' can be declared as const array [constParameter] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4341:88: style: Parameter 'q1' can be declared as const array [constParameter] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4405:25: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4405:35: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4426:12: style: Variable 'orig[1]' is reassigned a value before the old one has been used. [redundantAssignment] kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4418:12: note: orig[1] is assigned kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4426:12: note: orig[1] is overwritten 2.18.0 kernel-shark-kernelshark-v2.4.0/src/stb_truetype.h:4716:76: style: Parameter 's1' can be declared as pointer to const [constParameterPointer] DONE