#!/usr/bin/python # Copyright (C) International Business Machines Corp., 2005 # Author: # Ping tests to dom0 interface # - determines dom0 network # - creates a single guest domain # - sets up a single NIC on same subnet as dom0 # - conducts ping tests to the dom0 IP address. # ping -c 1 -s $size $dom0_IP # where $size = 1, 48, 64, 512, 1440, 1500, 1505, # 4096, 4192, 32767, 65507, 65508 pingsizes = [ 1, 48, 64, 512, 1440, 1500, 1505, 4096, 4192, 32767, 65507 ] from XmTestLib import * rc = 0 # Test creates 1 domain, which requires 2 ips: 1 for the domains and 1 for # aliases on dom0 if xmtest_netconf.canRunNetTest(2) == False: SKIP("Don't have enough free configured IPs to run this test") # Fire up a guest domain w/1 nic domain = XmTestDomain() domain.newDevice(XenNetDevice, "eth0") try: console = domain.start() except DomainError, e: if verbose: print "Failed to create test domain because:" print e.extra FAIL(str(e)) try: # Ping dom0 fails="" netdev = domain.getDevice("eth0") dom0ip = netdev.getDom0AliasIP() for size in pingsizes: out = console.runCmd("ping -q -c 1 -s " + str(size) + " " + dom0ip) if out["return"]: fails += " " + str(size) except ConsoleError, e: FAIL(str(e)) domain.stop() if len(fails): FAIL("Ping to dom0 failed for size" + fails + ".") 'openwrt-18.06'>openwrt-18.06 upstream openwrtJames
aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/pending-3.18/201-extra_optimization.patch
blob: 5a2396cfa377a83e287acf96e6434bd5c501df17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/Makefile
+++ b/Makefile
@@ -618,9 +618,9 @@ KBUILD_CFLAGS	+= $(call cc-option,-fno-P
 KBUILD_AFLAGS	+= $(call cc-option,-fno-PIE)
 
 ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
-KBUILD_CFLAGS	+= -Os $(call cc-disable-warning,maybe-uninitialized,)
+KBUILD_CFLAGS	+= -Os $(EXTRA_OPTIMIZATION) $(call cc-disable-warning,maybe-uninitialized,)
 else
-KBUILD_CFLAGS	+= -O2
+KBUILD_CFLAGS	+= -O2 -fno-reorder-blocks -fno-tree-ch $(EXTRA_OPTIMIZATION)
 endif
 
 # Tell gcc to never replace conditional load with a non-conditional one