diff options
author | David S. Miller <davem@davemloft.net> | 2016-03-08 12:34:12 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-08 12:34:12 -0500 |
commit | 810813c47a564416f6306ae214e2661366c987a7 (patch) | |
tree | f0d1f856d4b0024324f642fe519963248828b83f /tools/testing | |
parent | d66ab51442211158b677c2f12310c314d9587f74 (diff) | |
parent | e2857b8f11a289ed2b61d18d0665e05c1053c446 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Several cases of overlapping changes, as well as one instance
(vxlan) of a bug fix in 'net' overlapping with code movement
in 'net-next'.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing')
-rw-r--r-- | tools/testing/nvdimm/test/nfit.c | 8 | ||||
-rw-r--r-- | tools/testing/selftests/ftrace/test.d/instances/instance.tc | 15 |
2 files changed, 11 insertions, 12 deletions
diff --git a/tools/testing/nvdimm/test/nfit.c b/tools/testing/nvdimm/test/nfit.c index 90bd2ea41032..b3281dcd4a5d 100644 --- a/tools/testing/nvdimm/test/nfit.c +++ b/tools/testing/nvdimm/test/nfit.c | |||
@@ -217,13 +217,16 @@ static int nfit_test_cmd_set_config_data(struct nd_cmd_set_config_hdr *nd_cmd, | |||
217 | return rc; | 217 | return rc; |
218 | } | 218 | } |
219 | 219 | ||
220 | #define NFIT_TEST_ARS_RECORDS 4 | ||
221 | |||
220 | static int nfit_test_cmd_ars_cap(struct nd_cmd_ars_cap *nd_cmd, | 222 | static int nfit_test_cmd_ars_cap(struct nd_cmd_ars_cap *nd_cmd, |
221 | unsigned int buf_len) | 223 | unsigned int buf_len) |
222 | { | 224 | { |
223 | if (buf_len < sizeof(*nd_cmd)) | 225 | if (buf_len < sizeof(*nd_cmd)) |
224 | return -EINVAL; | 226 | return -EINVAL; |
225 | 227 | ||
226 | nd_cmd->max_ars_out = 256; | 228 | nd_cmd->max_ars_out = sizeof(struct nd_cmd_ars_status) |
229 | + NFIT_TEST_ARS_RECORDS * sizeof(struct nd_ars_record); | ||
227 | nd_cmd->status = (ND_ARS_PERSISTENT | ND_ARS_VOLATILE) << 16; | 230 | nd_cmd->status = (ND_ARS_PERSISTENT | ND_ARS_VOLATILE) << 16; |
228 | 231 | ||
229 | return 0; | 232 | return 0; |
@@ -246,7 +249,8 @@ static int nfit_test_cmd_ars_status(struct nd_cmd_ars_status *nd_cmd, | |||
246 | if (buf_len < sizeof(*nd_cmd)) | 249 | if (buf_len < sizeof(*nd_cmd)) |
247 | return -EINVAL; | 250 | return -EINVAL; |
248 | 251 | ||
249 | nd_cmd->out_length = 256; | 252 | nd_cmd->out_length = sizeof(struct nd_cmd_ars_status); |
253 | /* TODO: emit error records */ | ||
250 | nd_cmd->num_records = 0; | 254 | nd_cmd->num_records = 0; |
251 | nd_cmd->address = 0; | 255 | nd_cmd->address = 0; |
252 | nd_cmd->length = -1ULL; | 256 | nd_cmd->length = -1ULL; |
diff --git a/tools/testing/selftests/ftrace/test.d/instances/instance.tc b/tools/testing/selftests/ftrace/test.d/instances/instance.tc index 773e276ff90b..1e1abe0ad354 100644 --- a/tools/testing/selftests/ftrace/test.d/instances/instance.tc +++ b/tools/testing/selftests/ftrace/test.d/instances/instance.tc | |||
@@ -39,28 +39,23 @@ instance_slam() { | |||
39 | } | 39 | } |
40 | 40 | ||
41 | instance_slam & | 41 | instance_slam & |
42 | x=`jobs -l` | 42 | p1=$! |
43 | p1=`echo $x | cut -d' ' -f2` | ||
44 | echo $p1 | 43 | echo $p1 |
45 | 44 | ||
46 | instance_slam & | 45 | instance_slam & |
47 | x=`jobs -l | tail -1` | 46 | p2=$! |
48 | p2=`echo $x | cut -d' ' -f2` | ||
49 | echo $p2 | 47 | echo $p2 |
50 | 48 | ||
51 | instance_slam & | 49 | instance_slam & |
52 | x=`jobs -l | tail -1` | 50 | p3=$! |
53 | p3=`echo $x | cut -d' ' -f2` | ||
54 | echo $p3 | 51 | echo $p3 |
55 | 52 | ||
56 | instance_slam & | 53 | instance_slam & |
57 | x=`jobs -l | tail -1` | 54 | p4=$! |
58 | p4=`echo $x | cut -d' ' -f2` | ||
59 | echo $p4 | 55 | echo $p4 |
60 | 56 | ||
61 | instance_slam & | 57 | instance_slam & |
62 | x=`jobs -l | tail -1` | 58 | p5=$! |
63 | p5=`echo $x | cut -d' ' -f2` | ||
64 | echo $p5 | 59 | echo $p5 |
65 | 60 | ||
66 | ls -lR >/dev/null | 61 | ls -lR >/dev/null |