aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-03-20Merge "Create outline for documents to be released in Danube" into stable/danubeYujun Zhang21-819/+25
2017-03-20Create outline for documents to be released in DanubeYujun Zhang21-819/+25
- deprecated legacy document - created content placeholders Change-Id: I12de6467d1fed83a9670750e23ec070901deee63 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-03-16Implement 'show' command.Taseer10-9/+55
- Render the description via templates JIRA: QTIP-205 Change-Id: I10523f85f80350e901a4a701bb65ca4833f8ff7c Signed-off-by: Taseer Ahmed <taseer94@gmail.com> (cherry picked from commit bb5af4b9be1325b61c7f80e71c7d50892ae22956)
2017-03-15Add aarch64 patchCristina Pauna1-0/+33
This commit adds a patch that can be applied to the Dockerfile to adapt it for aarch64. When applied from releng, a new Dockerfile.aarch64 is created and an aarch64 qtip image is created. The aarch64 qtip image will be build with the releng fix https://gerrit.opnfv.org/gerrit/30181 JIRA: ARMBAND-219 Change-Id: I551ae7fa1d7fc23c6e5f6381d605b0b22dbec695 Signed-off-by: Cristina Pauna <cristina.pauna@enea.com> (cherry picked from commit 2935006a650f92255c8046d236e691360148d9ff)
2017-03-15Merge "optimize console info" into stable/danubeYujun Zhang3-42/+23
2017-03-15Merge "add the cleanup step in runner.py" into stable/danubeYujun Zhang4-9/+27
2017-03-15Merge "Miss \ in Dockerfile" into stable/danubeYujun Zhang1-1/+1
2017-03-15optimize console infowu.zhihui3-43/+24
- use QtipLogger instead of print - delete useless print Change-Id: I1e08382a5d78ce53cf455496363bce3762b81dd2 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn> (cherry picked from commit 3391a3c6ab4f6b33e2f6d74e858a7bad573695b1)
2017-03-15add the cleanup step in runner.pywu.zhihui4-9/+27
Add the cleanup step in runner.py Change-Id: I0016986485eab5d7ab45d4a7a393bea5fb6f96b5 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn> (cherry picked from commit 57ec2e7a9757cbb1da8a1f73f0c55e8a5cb67bec)
2017-03-15Merge "Implement the workflow of compute qpi" into stable/danubezhihui wu2-18/+137
2017-03-15Merge "parse benchmark result from logfile" into stable/danubezhihui wu3-2/+195
2017-03-15Miss \ in Dockerfilewu.zhihui1-1/+1
https://build.opnfv.org/ci/view/qtip/job/qtip-docker-build-push-master/250/console Change-Id: If6d76c6a27cc61a1b3d468751932e21d32dff277 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn> (cherry picked from commit b14071b6bfb19920028dd45a8c78d57af872922c)
2017-03-15Merge "Remove legacy code from stable branch" into stable/danubezhihui wu118-5813/+0
2017-03-15Merge "env cleanup" into stable/danubezhihui wu2-0/+28
2017-03-14Implement the workflow of compute qpiwu.zhihui2-18/+137
Local test is ok. The result will be written to report.json. usage: runner.py [-h] -d DEST -b BENCHMARK optional arguments: -d DEST, --dest DEST the destination where results will be stored. -b BENCHMARK, --benchmark BENCHMARK the benchmark you want to execute. Change-Id: Ic3a70c65a5aa045bf9df34ce4d14957a7a1b3dcf Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn> (cherry picked from commit 478cd02a9219f7c8b49d8529d1f809a04399ad0d)
2017-03-14parse benchmark result from logfilewu.zhihui3-2/+195
- Put all the regex rules in regex.yaml. - According to benchmark name, we can find related regexes. Change-Id: Ic15bd1c77b525be3751011fa94d582da077b0345 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn> (cherry picked from commit dc92e5ae19dd026bf6a14c1e0d2b9c50497845d5)
2017-03-14Some modifications for ansible playbookwu.zhihui3-5/+13
- typo in ramspeed/run.yaml - fix result logfile name for dhrystone and whetstone Change-Id: Ic8456174a14d04c2207990eccb16601762c5a880 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn> (cherry picked from commit 764c2d3916f1390e2ee2ca3b3efbcc33050fd525)
2017-03-14Remove legacy code from stable branchYujun Zhang118-5813/+0
Change-Id: I283f84dfcb3cd029739caaefb33ed5431114fae9 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-03-13Merge "Implement 'list' command." into stable/danubezhihui wu8-14/+48
2017-03-11env cleanupwu.zhihui2-0/+28
If IF_DEBUG is True, there is not cleanup step. If IF_DEBUG is False, host file and keypair will be deleted on local and public key will be removed from remote nodes in the end of test. Change-Id: I4a88acc2d428e41e4abaedacb011e27468b2cb57 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn> (cherry picked from commit d37dad746e504e833abcf2ae058f2b81e2a9d365)
2017-03-11Implement Retrieval of plans, QPIs, and metricsakhilbatra8985-31/+173
- All specs can be listed - All specs can be individually retrieved - API can be installed alongside qtip - API can be hosted using command `qtip-api` JIRA: QTIP-221 JIRA: QTIP-222 Change-Id: I1e80e6609cae1252cb2fcdc38c71b4bf6d02e8c9 Signed-off-by: akhilbatra898 <akhil.batra@research.iiit.ac.in> (cherry picked from commit 15fceada86ad0d5dabe26365451aae9c95b36be1)
2017-03-11Implement 'list' command.Taseer8-14/+48
- Loads Qtip components from the default path. JIRA: QTIP-205 Change-Id: Id87993d65c5cd6a23c199cf1049d75a0971b6354 Signed-off-by: Taseer Ahmed <taseer94@gmail.com> (cherry picked from commit 0bd051505c2851d61356e7c448d7802913ab785f)
2017-03-10Merge "fill benchmarks"zhihui wu7-0/+231
2017-03-10Merge "bugfix benchmarks cannot be found"zhihui wu1-0/+4
2017-03-10fill benchmarksSerenaFeng7-0/+231
Change-Id: I7ad5f504058b20db72c0878cf9618e6bff186b33 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-03-10bugfix benchmarks cannot be foundSerenaFeng1-0/+4
OSError: [Errno 2] No such file or directory: '/Users/fengxiaowei/opnfv/qtip/.venv/lib/python2.7/ site-packages/qtip/cli/../../tests/data/benchmarks/plan' Change-Id: I510a2beb215b3e5c93cfa5870fd892b0c7720f01 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-03-10Merge "Add missing softwares"zhihui wu1-0/+2
2017-03-10Merge "modify logfile directory structure"zhihui wu13-72/+54
2017-03-10Add missing softwareswu.zhihui1-0/+2
Install iputils-ping for ping and rsync for synchronizing files and directories. Change-Id: I93ba44bcb04948bbe846fb179dc673aa86a6a92a Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-03-10Merge "Add basic swagger specifications and corresponding controllers"Yujun Zhang6-3/+279
2017-03-10Merge "Adding Labels"Yujun Zhang1-0/+2
2017-03-10modify logfile directory structurewu.zhihui13-72/+54
After one qtip test execution, the logfiles will be stored like this: `-- 2017-03-09-17-40 `-- node-41 |-- dhrystone | |-- inxi.log | |-- node-41.zte.com.cn-2017-03-09-01 | |-- node-41.zte.com.cn-2017-03-09-01.html | |-- node-41.zte.com.cn-2017-03-09-01.log | `-- top.log |-- dpi | |-- dpi_dump.txt | |-- inxi.log | `-- top.log |-- ramspeed | |-- Floatmem | |-- Intmem | |-- inxi.log | `-- top.log |-- ssl | |-- AES-128-CBC_dump | |-- RSA_dump | |-- inxi.log | `-- top.log `-- whetstone |-- inxi.log |-- node-41.zte.com.cn-2017-03-09-01 |-- node-41.zte.com.cn-2017-03-09-01.html |-- node-41.zte.com.cn-2017-03-09-01.log `-- top.log Change-Id: I5889a0e5dbe99f28212d6e0cdf69b9c03d89a9fe Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-03-09Add basic swagger specifications and corresponding controllersakhilbatra8986-3/+279
- Update specifications as per requirements - map specifications with controllers - make api installable JIRA: QTIP-220 Change-Id: Id149fdcf68e869e31a00cf16d7e725e368d2b25f Signed-off-by: akhilbatra898 <akhil.batra@research.iiit.ac.in>
2017-03-09Merge "Implement ansible driver"zhihui wu3-14/+143
2017-03-09Merge "Playbooks for unixbench"zhihui wu6-81/+118
2017-03-09regexes for dpi/ramspeed/sslwu.zhihui6-0/+1003
- Add dpi/ramspeed/ssl logfiles - update regexes for dpi/ramspeed/ssl result sample: dpi: { "bps": "4.57", "pps": "1.55" } ramspeed:{ "float_add": "9967.13", "float_copy": "7908.64", "float_scale": "7870.16", "float_triad": "10073.43", "float_average": "8954.84", "integer_add": "11649.55", "integer_copy": "11562.63", "integer_scale": "11563.77", "integer_triad": "11671.22", "integer_average": "11611.79" } ssl:{ "aes_128_cbc_1024_bytes": "584568.83k", "aes_128_cbc_16_bytes": "533103.05k", "aes_128_cbc_256_bytes": "580021.25k", "aes_128_cbc_64_bytes": "570042.22k", "aes_128_cbc_8192_bytes": "599470.83k" "rsa_sign_1024": "3.9", "rsa_sign_2048": "1.4", "rsa_sign_4096": "0.8", "rsa_sign_512": "8.4", "rsa_verify_1024": "88397.9", "rsa_verify_2048": "26951.3", "rsa_verify_4096": "7633.7", "rsa_verify_512": "222903.5" } Change-Id: I6db22a699111dd55d9dc48c6e8c2cf148b345563 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-03-09Merge "playbook for ramspeed"zhihui wu3-0/+137
2017-03-09Merge "Refactor openssl playbook"zhihui wu3-0/+159
2017-03-08Merge "Remove hardcode from some playbooks"zhihui wu3-3/+9
2017-03-08Merge "Refactor dpi playbook"zhihui wu5-14/+172
2017-03-08Implement ansible driverwu.zhihui3-14/+143
- According to inputs parameters, setup test environment. If failed during setupping, qtip will exited. If successful, execute metric tests. - Parameters(optional): * keypair: the keypair to login/execute commands to the remote hosts. They can be automatically generated. * hostfile: a inventory file. If not give, it can be automatically generated via installer. * args: the parameters passed to playbook - Use ansible python api to trigger ansible-playbook. Unit test will be in a new patch. Change-Id: I7470d348308f7cb6cb669bcc49063cf0f4da2111 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-03-08Refactor openssl playbookwu.zhihui3-0/+159
Local test is ok. Change-Id: I2800e364320697d436ed7b9202cc1baa3a893503 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-03-08Playbooks for unixbenchwu.zhihui6-81/+118
Actually, both dhrystone and whether use unixbench tool to get metric. Their playbook are too smiliar. The playbooks under /unixbench can be used to measure both of them. Change-Id: I26e31c2b4ac4de35ff8b7ec6dea26b676d5078de Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-03-08Adding LabelsShubhamRathi1-0/+2
Labels serve as anchors/ refs when referenced from other documents This patch adds labels to docs/*/*/index.rst Change-Id: Id23477c82231a1d02463802d60ee9d88a7fabc41 Signed-off-by: ShubhamRathi <shubhamiiitbackup@gmail.com>
2017-03-08playbook for ramspeedwu.zhihui3-0/+137
These playbooks are successfully executed on Local. Change-Id: Ie22ecb9b66364e6edf6ae0f59d0524603c4d46a9 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-03-08Refactor dpi playbookwu.zhihui5-14/+172
Local test is ok. Change-Id: I22a333eae940433a1ca228e6ee7f570b8d0c0fc9 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-03-08Remove hardcode from some playbookswu.zhihui3-3/+9
Remove hardcode ($HOME/qtip_result) from these three playbooks. Change-Id: Iefcf0d4c6caf6be6b6888ff6abe4c36621666129 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-03-07Merge "rework env.py"zhihui wu3-79/+396
2017-03-07Merge "Add `subrepo` basic usage in developer guide."Yujun Zhang1-0/+57
2017-03-07Merge "Qtip command completion."Yujun Zhang1-1/+17
"p">} /* FALL THROUGH */ default: break_flag = scancode & BREAK_MASK; scancode &= ~BREAK_MASK; if (ikbd_self_test) { /* Scancodes sent during the self-test stand for broken * keys (keys being down). The code *should* be a break * code, but nevertheless some AT keyboard interfaces send * make codes instead. Therefore, simply ignore * break_flag... */ int keyval, keytyp; set_bit(scancode, broken_keys); self_test_last_rcv = jiffies; /* new Linux scancodes; approx. */ keyval = scancode; keytyp = KTYP(keyval) - 0xf0; keyval = KVAL(keyval); printk(KERN_WARNING "Key with scancode %d ", scancode); if (keytyp == KT_LATIN || keytyp == KT_LETTER) { if (keyval < ' ') printk("('^%c') ", keyval + '@'); else printk("('%c') ", keyval); } printk("is broken -- will be ignored.\n"); break; } else if (test_bit(scancode, broken_keys)) break; if (atari_input_keyboard_interrupt_hook) atari_input_keyboard_interrupt_hook((unsigned char)scancode, !break_flag); break; } break; case AMOUSE: kb_state.buf[kb_state.len++] = scancode; if (kb_state.len == 5) { kb_state.state = KEYBOARD; /* not yet used */ /* wake up someone waiting for this */ } break; case RMOUSE: kb_state.buf[kb_state.len++] = scancode; if (kb_state.len == 3) { kb_state.state = KEYBOARD; if (atari_input_mouse_interrupt_hook) atari_input_mouse_interrupt_hook(kb_state.buf); } break; case JOYSTICK: kb_state.buf[1] = scancode; kb_state.state = KEYBOARD; #ifdef FIXED_ATARI_JOYSTICK atari_joystick_interrupt(kb_state.buf); #endif break; case CLOCK: kb_state.buf[kb_state.len++] = scancode; if (kb_state.len == 6) { kb_state.state = KEYBOARD; /* wake up someone waiting for this. But will this ever be used, as Linux keeps its own time. Perhaps for synchronization purposes? */ /* wake_up_interruptible(&clock_wait); */ } break; case RESYNC: if (kb_state.len <= 0 || IS_SYNC_CODE(scancode)) { kb_state.state = KEYBOARD; goto interpret_scancode; } kb_state.len--; break; } } #if 0 if (acia_stat & ACIA_CTS) /* cannot happen */; #endif if (acia_stat & (ACIA_FE | ACIA_PE)) { printk("Error in keyboard communication\n"); } /* handle_scancode() can take a lot of time, so check again if * some character arrived */ goto repeat; } /* * I write to the keyboard without using interrupts, I poll instead. * This takes for the maximum length string allowed (7) at 7812.5 baud * 8 data 1 start 1 stop bit: 9.0 ms * If this takes too long for normal operation, interrupt driven writing * is the solution. (I made a feeble attempt in that direction but I * kept it simple for now.) */ void ikbd_write(const char *str, int len) { u_char acia_stat; if ((len < 1) || (len > 7)) panic("ikbd: maximum string length exceeded"); while (len) { acia_stat = acia.key_ctrl; if (acia_stat & ACIA_TDRE) { acia.key_data = *str++; len--; } } } /* Reset (without touching the clock) */ void ikbd_reset(void) { static const char cmd[2] = { 0x80, 0x01 }; ikbd_write(cmd, 2); /* * if all's well code 0xF1 is returned, else the break codes of * all keys making contact */ } /* Set mouse button action */ void ikbd_mouse_button_action(int mode) { char cmd[2] = { 0x07, mode }; ikbd_write(cmd, 2); } /* Set relative mouse position reporting */ void ikbd_mouse_rel_pos(void) { static const char cmd[1] = { 0x08 }; ikbd_write(cmd, 1); } EXPORT_SYMBOL(ikbd_mouse_rel_pos); /* Set absolute mouse position reporting */ void ikbd_mouse_abs_pos(int xmax, int ymax) { char cmd[5] = { 0x09, xmax>>8, xmax&0xFF, ymax>>8, ymax&0xFF }; ikbd_write(cmd, 5); } /* Set mouse keycode mode */ void ikbd_mouse_kbd_mode(int dx, int dy) { char cmd[3] = { 0x0A, dx, dy }; ikbd_write(cmd, 3); } /* Set mouse threshold */ void ikbd_mouse_thresh(int x, int y) { char cmd[3] = { 0x0B, x, y }; ikbd_write(cmd, 3); } EXPORT_SYMBOL(ikbd_mouse_thresh); /* Set mouse scale */ void ikbd_mouse_scale(int x, int y) { char cmd[3] = { 0x0C, x, y }; ikbd_write(cmd, 3); } /* Interrogate mouse position */ void ikbd_mouse_pos_get(int *x, int *y) { static const char cmd[1] = { 0x0D }; ikbd_write(cmd, 1); /* wait for returning bytes */ } /* Load mouse position */ void ikbd_mouse_pos_set(int x, int y) { char cmd[6] = { 0x0E, 0x00, x>>8, x&0xFF, y>>8, y&0xFF }; ikbd_write(cmd, 6); } /* Set Y=0 at bottom */ void ikbd_mouse_y0_bot(void) { static const char cmd[1] = { 0x0F }; ikbd_write(cmd, 1); } /* Set Y=0 at top */ void ikbd_mouse_y0_top(void) { static const char cmd[1] = { 0x10 }; ikbd_write(cmd, 1); } EXPORT_SYMBOL(ikbd_mouse_y0_top); /* Disable mouse */ void ikbd_mouse_disable(void) { static const char cmd[1] = { 0x12 }; ikbd_write(cmd, 1); } EXPORT_SYMBOL(ikbd_mouse_disable); /* Set joystick event reporting */ void ikbd_joystick_event_on(void) { static const char cmd[1] = { 0x14 }; ikbd_write(cmd, 1); } /* Set joystick interrogation mode */ void ikbd_joystick_event_off(void) { static const char cmd[1] = { 0x15 }; ikbd_write(cmd, 1); } /* Joystick interrogation */ void ikbd_joystick_get_state(void) { static const char cmd[1] = { 0x16 }; ikbd_write(cmd, 1); } #if 0 /* This disables all other ikbd activities !!!! */ /* Set joystick monitoring */ void ikbd_joystick_monitor(int rate) { static const char cmd[2] = { 0x17, rate }; ikbd_write(cmd, 2); kb_state.state = JOYSTICK_MONITOR; } #endif /* some joystick routines not in yet (0x18-0x19) */ /* Disable joysticks */ void ikbd_joystick_disable(void) { static const char cmd[1] = { 0x1A }; ikbd_write(cmd, 1); } /* * The original code sometimes left the interrupt line of * the ACIAs low forever. I hope, it is fixed now. * * Martin Rogge, 20 Aug 1995 */ static int atari_keyb_done = 0; int atari_keyb_init(void) { int error; if (atari_keyb_done) return 0; kb_state.state = KEYBOARD; kb_state.len = 0; error = request_irq(IRQ_MFP_ACIA, atari_keyboard_interrupt, 0, "keyboard,mouse,MIDI", atari_keyboard_interrupt); if (error) return error; atari_turnoff_irq(IRQ_MFP_ACIA); do { /* reset IKBD ACIA */ acia.key_ctrl = ACIA_RESET | ((atari_switches & ATARI_SWITCH_IKBD) ? ACIA_RHTID : 0); (void)acia.key_ctrl; (void)acia.key_data; /* reset MIDI ACIA */ acia.mid_ctrl = ACIA_RESET | ((atari_switches & ATARI_SWITCH_MIDI) ? ACIA_RHTID : 0); (void)acia.mid_ctrl; (void)acia.mid_data; /* divide 500kHz by 64 gives 7812.5 baud */ /* 8 data no parity 1 start 1 stop bit */ /* receive interrupt enabled */ /* RTS low (except if switch selected), transmit interrupt disabled */ acia.key_ctrl = (ACIA_DIV64|ACIA_D8N1S|ACIA_RIE) | ((atari_switches & ATARI_SWITCH_IKBD) ? ACIA_RHTID : ACIA_RLTID); acia.mid_ctrl = ACIA_DIV16 | ACIA_D8N1S | ((atari_switches & ATARI_SWITCH_MIDI) ? ACIA_RHTID : 0); /* make sure the interrupt line is up */ } while ((st_mfp.par_dt_reg & 0x10) == 0); /* enable ACIA Interrupts */ st_mfp.active_edge &= ~0x10; atari_turnon_irq(IRQ_MFP_ACIA); ikbd_self_test = 1; ikbd_reset(); /* wait for a period of inactivity (here: 0.25s), then assume the IKBD's * self-test is finished */ self_test_last_rcv = jiffies; while (time_before(jiffies, self_test_last_rcv + HZ/4)) barrier(); /* if not incremented: no 0xf1 received */ if (ikbd_self_test == 1) printk(KERN_ERR "WARNING: keyboard self test failed!\n"); ikbd_self_test = 0; ikbd_mouse_disable(); ikbd_joystick_disable(); #ifdef FIXED_ATARI_JOYSTICK atari_joystick_init(); #endif // flag init done atari_keyb_done = 1; return 0; } EXPORT_SYMBOL_GPL(atari_keyb_init);