Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 172 for counter2 (0.36 sec)

  1. src/cmd/internal/telemetry/telemetry.go

    	})
    }
    
    // Inc increments the counter with the given name.
    func Inc(name string) {
    	counter.Inc(name)
    }
    
    // NewCounter returns a counter with the given name.
    func NewCounter(name string) *counter.Counter {
    	return counter.New(name)
    }
    
    // NewStackCounter returns a new stack counter with the given name and depth.
    func NewStackCounter(name string, depth int) *counter.StackCounter {
    	return counter.NewStack(name, depth)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:47:30 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. docs/metrics/v3.md

    | `minio_api_requests_rejected_auth_total`       | `counter` | Total number of requests rejected for auth failure      | `type,pool_index,server`         |
    | `minio_api_requests_rejected_header_total`     | `counter` | Total number of requests rejected for invalid header    | `type,pool_index,server`         |
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 06 09:36:25 UTC 2024
    - 40.9K bytes
    - Viewed (0)
  3. src/crypto/aes/gcm_s390x.go

    	// with a four-byte big-endian counter starting at one, is used
    	// directly as the starting counter. For other nonce sizes, the counter
    	// is computed by passing it through the GHASH function.
    	var counter gcmCount
    	if len(nonce) == gcmStandardNonceSize {
    		copy(counter[:], nonce)
    		counter[gcmBlockSize-1] = 1
    	} else {
    		var hash [16]byte
    		g.paddedGHASH(&hash, nonce)
    		lens := gcmLengths(0, uint64(len(nonce))*8)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  4. src/sync/waitgroup.go

    	noCopy noCopy
    
    	state atomic.Uint64 // high 32 bits are counter, low 32 bits are waiter count.
    	sema  uint32
    }
    
    // Add adds delta, which may be negative, to the [WaitGroup] counter.
    // If the counter becomes zero, all goroutines blocked on [WaitGroup.Wait] are released.
    // If the counter goes negative, Add panics.
    //
    // Note that calls with a positive delta that occur when the counter is zero
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/batch/v1/types_swagger_doc_generated.go

    that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status:\n\n1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding\n    counter.\n\nOld jobs might not be tracked using this field, in which case the field remains...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 12:01:28 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/telemetry/internal/upload/date.go

    }
    
    // avoid parsing count files multiple times
    type parsedCache struct {
    	mu sync.Mutex
    	m  map[string]*counter.File
    }
    
    func (u *uploader) parseCountFile(fname string) (*counter.File, error) {
    	u.cache.mu.Lock()
    	defer u.cache.mu.Unlock()
    	if u.cache.m == nil {
    		u.cache.m = make(map[string]*counter.File)
    	}
    	if f, ok := u.cache.m[fname]; ok {
    		return f, nil
    	}
    	buf, err := os.ReadFile(fname)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:12:15 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. src/crypto/aes/gcm_ppc64x.go

    		panic("cipher: message too large for GCM")
    	}
    
    	ret, out := sliceForAppend(dst, len(plaintext)+g.tagSize)
    
    	var counter, tagMask [gcmBlockSize]byte
    	g.deriveCounter(&counter, nonce)
    
    	g.cipher.Encrypt(tagMask[:], counter[:])
    	gcmInc32(&counter)
    
    	g.counterCrypt(out, plaintext, &counter)
    	g.auth(out[len(plaintext):], out[:len(plaintext)], data, &tagMask)
    
    	return ret
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. src/crypto/cipher/gcm.go

    		g.cipher.Encrypt(mask[:], counter[:])
    		gcmInc32(counter)
    		subtle.XORBytes(out, in, mask[:])
    	}
    }
    
    // deriveCounter computes the initial GCM counter state from the given nonce.
    // See NIST SP 800-38D, section 7.1. This assumes that counter is filled with
    // zeros on entry.
    func (g *gcm) deriveCounter(counter *[gcmBlockSize]byte, nonce []byte) {
    	// GCM has two modes of operation with respect to the initial counter
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  9. src/crypto/rand/rand_plan9.go

    	blockCipher, err := aes.NewCipher(r.key[:])
    	if err != nil {
    		r.mu.Unlock()
    		return 0, err
    	}
    	var (
    		counter uint64
    		block   [aes.BlockSize]byte
    	)
    	inc := func() {
    		counter++
    		if counter == 0 {
    			panic("crypto/rand counter wrapped")
    		}
    		byteorder.LePutUint64(block[:], counter)
    	}
    	blockCipher.Encrypt(r.key[:aes.BlockSize], block[:])
    	inc()
    	blockCipher.Encrypt(r.key[aes.BlockSize:], block[:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. src/internal/coverage/cfile/testdata/harness.go

    	} else {
    		got := fmt.Sprintf("%v", err)
    		checkWant("meta data", got)
    	}
    
    	// Now try to emit counter data file to a bad dir.
    	if err := coverage.WriteCountersDir(mangled); err == nil {
    		log.Fatal("expected error emitting counter data to bad dir")
    	} else {
    		got := fmt.Sprintf("%v", err)
    		checkWant("counter data", got)
    	}
    }
    
    func emitToUnwritableDir() {
    	log.SetPrefix("emitToUnwritableDir: ")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:41:02 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top