aboutsummaryrefslogtreecommitdiffstats
path: root/t/t5307-pack-missing-commit.sh
blob: ae52a1882df65a05c2916450ff6101012b12ee6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh

test_description='pack should notice missing commit objects'

. ./test-lib.sh

test_expect_success setup '
	for i in 1 2 3 4 5
	do
		echo "$i" >"file$i" &&
		git add "file$i" &&
		test_tick &&
		git commit -m "$i" &&
		git tag "tag$i"
	done &&
	obj=$(git rev-parse --verify tag3) &&
	fanout=$(expr "$obj" : "\(..\)") &&
	remainder=$(expr "$obj" : "..\(.*\)") &&
	rm -f ".git/objects/$fanout/$remainder"
'

test_expect_success 'check corruption' '
	test_must_fail git fsck
'

test_expect_success 'rev-list notices corruption (1)' '
	test_must_fail git rev-list HEAD
'

test_expect_success 'rev-list notices corruption (2)' '
	test_must_fail git rev-list --objects HEAD
'

test_expect_success 'pack-objects notices corruption' '
	echo HEAD |
	test_must_fail git pack-objects --revs pack
'

test_done
chromeos-4.19__release/core81-65'>chromeos-4.19__release/core81-65 Intel wireless group's fork of linux.gitIntel wireless group
aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@intel.com>2013-08-13 14:29:42 +0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-04-10 20:50:38 +0000
commit234a3ace1008519403ad2ea134ed64890d582100 (patch)
tree211cf3c23f202bc64f7fd7e14bb31d875934eeba /arch
parente71708493088818e9bf481dd2a7808b63ec10498 (diff)
downloadchromeos-234a3ace1008519403ad2ea134ed64890d582100.tar.gz
UPSTREAM: perf/x86/intel/uncore: Enable EV_SEL_EXT bit for PCU
This patch adds support for the SNB-EP PCU uncore PMU extra_sel_bit (bit 21) which is missing from the documentation in Table-2.75 of Intel Xeon Processor E5-2600 Product Family Uncore Performance Monitoring Guide. It is referred to later in Table-2.81. Without this selection bit explicitly enabled by the kernel, some events such as COREx_TRANSITION_CYCLES do not count correctly. BUG=chromium:474724 TEST=build/boot on Link Change-Id: Ibc19138be837ee70b32aff4871c8ac2a09051693 Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com> Reviewed-by: Stephane Eranian <eranian@google.com> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1376375382-21350-4-git-send-email-zheng.z.yan@intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Sonny Rao <sonnyrao@chromium.org> (cherry picked from commit 77b339bce3e21f7a069447fc25a414b18e36fa2e) Reviewed-on: https://chromium-review.googlesource.com/264475 Reviewed-by: Luigi Semenzato <semenzato@chromium.org>