ring-buffer-benchmark: Fix the wrong param in module_param
authorWang Long <long.wanglong@huawei.com>
Wed, 10 Jun 2015 08:11:13 +0000 (08:11 +0000)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 10 Jun 2015 19:44:35 +0000 (15:44 -0400)
commit7364e86547bc52a555c9317b32cc4e81c4d4fd7c
tree160e7c5a4d388d512dc24e528c012ca8d8d1f2ea
parenta497adb45b8691f7e477e711a1a4bd54748d64fe
ring-buffer-benchmark: Fix the wrong param in module_param

The {producer|consumer}_{nice|fifo} parameters are integer
type, we should use 'int' as the second param in module_param.

For example(consumer_fifo):
the default value of consumer_fifo is -1.
   Without this patch:
        # cat /sys/module/ring_buffer_benchmark/parameters/consumer_fifo
        4294967295
   With this patch:
# cat /sys/module/ring_buffer_benchmark/parameters/consumer_fifo
-1

Link: http://lkml.kernel.org/r/1433923873-67712-1-git-send-email-long.wanglong@huawei.com
Signed-off-by: Wang Long <long.wanglong@huawei.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ring_buffer_benchmark.c