ftrace-funcgraph: fix hash array generation

I do not quite understand what the problem is, but it doesn't work.
If h = Hash.new([]), then:
   h['A'] << 1
will give us
h['A'] = [1], h['B'] = [1], h['C'] = [1], etc...

This is not what we want, fix it.
BTW, I also do not understand the = sign before <<, but removing it
doesn't cause any problem, so it's removed.

Cc: Ying Huang <ying.huang@intel.com>
Acked-by: "Huang, Ying" <ying.huang@intel.com>
Signed-of-by: Aaron Lu <aaron.lu@intel.com>

Signed-off-by: Philip Li <philip.li@intel.com>
1 file changed
tree: 77d6df8769661a3db8ec4ec7ab3d6ec3c4a380d5
  1. allot/
  2. bin/
  3. cluster/
  4. daemon/
  5. distro/
  6. doc/
  7. etc/
  8. filters/
  9. hosts/
  10. include/
  11. jobs/
  12. lib/
  13. lkp-exec/
  14. monitors/
  15. pack/
  16. params/
  17. pkg/
  18. plot/
  19. repo/
  20. rootfs/
  21. sbin/
  22. setup/
  23. spec/
  24. stats/
  25. tests/
  26. tools/
  27. .gitignore
  28. .rubocop.yml
  29. Gemfile
  30. Gemfile.lock
  31. Makefile
  32. Rakefile
  33. README.md
README.md

Linux Kernel Performance tests

Getting started

	git clone https://github.com/01org/lkp-tests.git

	cd lkp-tests
	make install

	lkp help

Install packages for a job

	# browse and select a job you want to run, for example, jobs/hackbench.yaml
	ls lkp-tests/jobs
	lkp install lkp-tests/jobs/hackbench.yaml

Run one atomic job

	lkp split-job lkp-tests/jobs/hackbench.yaml
	# output is:
	# jobs/hackbench.yaml => ./hackbench-1600%-process-pipe.yaml
	# jobs/hackbench.yaml => ./hackbench-1600%-process-socket.yaml
	# jobs/hackbench.yaml => ./hackbench-1600%-threads-pipe.yaml
	# jobs/hackbench.yaml => ./hackbench-1600%-threads-socket.yaml
	# jobs/hackbench.yaml => ./hackbench-50%-process-pipe.yaml
	# jobs/hackbench.yaml => ./hackbench-50%-process-socket.yaml
	# jobs/hackbench.yaml => ./hackbench-50%-threads-pipe.yaml
	# jobs/hackbench.yaml => ./hackbench-50%-threads-socket.yaml

	lkp run ./hackbench-50%-threads-socket.yaml

Run your own benchmarks

To run your own benchmarks that are not part of lkp-tests, you can use mytest job.

	lkp split-job lkp-tests/jobs/mytest.yaml
	# output is:
	# jobs/mytest.yaml => ./mytest-defaults.yaml
	lkp run ./mytest-defaults.yaml -- <command> <argument> ...

Check result

	lkp result hackbench

Supported Distributions

Most test cases should install/run well in

  • Debian sid
  • Ubuntu 14.04
  • Archlinux

There is however some initial support for:

  • OpenSUSE:
    • jobs/trinity.yaml
  • Fedora
  • CentOS

As for now, lkp-tests still needs to run as root.

Adding distribution support

If you want to add support for your Linux distribution you will need an installer file which allows us to install dependencies per job. For examples look at: distro/installer/* files.

Since packages can have different names we provide an adaptation mapping for a base Ubuntu package (since development started with that) to your own distribution package name, for example adaptation files see: distro/adaptation/*. For now adaptation files must have the architecture dependent packages (ie, that ends with the postfix :i386) towards the end of the adaptation file.

You will also want to add a case for your distribution on sync_distro_sources() on the file lib/install.sh.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request