* commit '7c6f31293c7b13378671546adaa76a3ce80638cc': crash_reporter: Relicense as Apache 2.
This commit is contained in:
commit
b39f02e434
32 changed files with 440 additions and 117 deletions
|
|
@ -1,27 +0,0 @@
|
||||||
// Copyright 2014 The Chromium OS Authors. All rights reserved.
|
|
||||||
//
|
|
||||||
// Redistribution and use in source and binary forms, with or without
|
|
||||||
// modification, are permitted provided that the following conditions are
|
|
||||||
// met:
|
|
||||||
//
|
|
||||||
// * Redistributions of source code must retain the above copyright
|
|
||||||
// notice, this list of conditions and the following disclaimer.
|
|
||||||
// * Redistributions in binary form must reproduce the above
|
|
||||||
// copyright notice, this list of conditions and the following disclaimer
|
|
||||||
// in the documentation and/or other materials provided with the
|
|
||||||
// distribution.
|
|
||||||
// * Neither the name of Google Inc. nor the names of its
|
|
||||||
// contributors may be used to endorse or promote products derived from
|
|
||||||
// this software without specific prior written permission.
|
|
||||||
//
|
|
||||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2012 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#include "crash_collector.h"
|
#include "crash_collector.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2012 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef CRASH_REPORTER_CRASH_COLLECTOR_H_
|
#ifndef CRASH_REPORTER_CRASH_COLLECTOR_H_
|
||||||
#define CRASH_REPORTER_CRASH_COLLECTOR_H_
|
#define CRASH_REPORTER_CRASH_COLLECTOR_H_
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2012 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#include "crash_collector_test.h"
|
#include "crash_collector_test.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2013 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef CRASH_REPORTER_CRASH_COLLECTOR_TEST_H_
|
#ifndef CRASH_REPORTER_CRASH_COLLECTOR_TEST_H_
|
||||||
#define CRASH_REPORTER_CRASH_COLLECTOR_TEST_H_
|
#define CRASH_REPORTER_CRASH_COLLECTOR_TEST_H_
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2012 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <fcntl.h> // for open
|
#include <fcntl.h> // for open
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,16 @@
|
||||||
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
# Copyright (C) 2012 The Android Open Source Project
|
||||||
# Use of this source code is governed by a BSD-style license that can
|
#
|
||||||
# be found in the LICENSE file.
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
# This file is parsed by chromeos::KeyValueStore. It has the format:
|
# This file is parsed by chromeos::KeyValueStore. It has the format:
|
||||||
#
|
#
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright 2015 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,18 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
|
# Copyright (C) 2010 The Android Open Source Project
|
||||||
# Use of this source code is governed by a BSD-style license that can be
|
#
|
||||||
# found in the LICENSE file.
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2012 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#include "kernel_collector.h"
|
#include "kernel_collector.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2010 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef CRASH_REPORTER_KERNEL_COLLECTOR_H_
|
#ifndef CRASH_REPORTER_KERNEL_COLLECTOR_H_
|
||||||
#define CRASH_REPORTER_KERNEL_COLLECTOR_H_
|
#define CRASH_REPORTER_KERNEL_COLLECTOR_H_
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2012 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#include "kernel_collector_test.h"
|
#include "kernel_collector_test.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright 2014 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2014 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef CRASH_REPORTER_KERNEL_COLLECTOR_TEST_H_
|
#ifndef CRASH_REPORTER_KERNEL_COLLECTOR_TEST_H_
|
||||||
#define CRASH_REPORTER_KERNEL_COLLECTOR_TEST_H_
|
#define CRASH_REPORTER_KERNEL_COLLECTOR_TEST_H_
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,18 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
|
# Copyright (C) 2013 The Android Open Source Project
|
||||||
# Use of this source code is governed by a BSD-style license that can be
|
#
|
||||||
# found in the LICENSE file.
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
# Usage example: "kernel_log_collector.sh XXX YYY"
|
# Usage example: "kernel_log_collector.sh XXX YYY"
|
||||||
# This script searches logs in the /var/log/messages which have the keyword XXX.
|
# This script searches logs in the /var/log/messages which have the keyword XXX.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2012 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#include "kernel_warning_collector.h"
|
#include "kernel_warning_collector.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2013 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef CRASH_REPORTER_KERNEL_WARNING_COLLECTOR_H_
|
#ifndef CRASH_REPORTER_KERNEL_WARNING_COLLECTOR_H_
|
||||||
#define CRASH_REPORTER_KERNEL_WARNING_COLLECTOR_H_
|
#define CRASH_REPORTER_KERNEL_WARNING_COLLECTOR_H_
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2011 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <sysexits.h>
|
#include <sysexits.h>
|
||||||
#include <unistd.h> // for isatty()
|
#include <unistd.h> // for isatty()
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright 2015 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <chromeos/test_helpers.h>
|
#include <chromeos/test_helpers.h>
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2012 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#include "udev_collector.h"
|
#include "udev_collector.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2012 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef CRASH_REPORTER_UDEV_COLLECTOR_H_
|
#ifndef CRASH_REPORTER_UDEV_COLLECTOR_H_
|
||||||
#define CRASH_REPORTER_UDEV_COLLECTOR_H_
|
#define CRASH_REPORTER_UDEV_COLLECTOR_H_
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2012 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <base/files/file_enumerator.h>
|
#include <base/files/file_enumerator.h>
|
||||||
#include <base/files/file_util.h>
|
#include <base/files/file_util.h>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2010 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#include "unclean_shutdown_collector.h"
|
#include "unclean_shutdown_collector.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2010 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef CRASH_REPORTER_UNCLEAN_SHUTDOWN_COLLECTOR_H_
|
#ifndef CRASH_REPORTER_UNCLEAN_SHUTDOWN_COLLECTOR_H_
|
||||||
#define CRASH_REPORTER_UNCLEAN_SHUTDOWN_COLLECTOR_H_
|
#define CRASH_REPORTER_UNCLEAN_SHUTDOWN_COLLECTOR_H_
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2010 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#include "unclean_shutdown_collector.h"
|
#include "unclean_shutdown_collector.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2012 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#include "user_collector.h"
|
#include "user_collector.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2010 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef CRASH_REPORTER_USER_COLLECTOR_H_
|
#ifndef CRASH_REPORTER_USER_COLLECTOR_H_
|
||||||
#define CRASH_REPORTER_USER_COLLECTOR_H_
|
#define CRASH_REPORTER_USER_COLLECTOR_H_
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2012 The Android Open Source Project
|
||||||
// found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#include "user_collector.h"
|
#include "user_collector.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,17 @@
|
||||||
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
* Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2013 The Android Open Source Project
|
||||||
* found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
*
|
*
|
||||||
* This flex program reads /var/log/messages as it grows and saves kernel
|
* This flex program reads /var/log/messages as it grows and saves kernel
|
||||||
* warnings to files. It keeps track of warnings it has seen (based on
|
* warnings to files. It keeps track of warnings it has seen (based on
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,17 @@
|
||||||
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
|
/*
|
||||||
* Use of this source code is governed by a BSD-style license that can be
|
* Copyright (C) 2013 The Android Open Source Project
|
||||||
* found in the LICENSE file.
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,18 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
|
|
||||||
# Use of this source code is governed by a BSD-style license that can be
|
# Copyright (C) 2013 The Android Open Source Project
|
||||||
# found in the LICENSE file.
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
# Test for warn_collector. Run the warn collector in the background, emulate
|
# Test for warn_collector. Run the warn collector in the background, emulate
|
||||||
# the kernel by appending lines to the log file "messages", and observe the log
|
# the kernel by appending lines to the log file "messages", and observe the log
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,18 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
|
|
||||||
# Use of this source code is governed by a BSD-style license that can be
|
# Copyright (C) 2013 The Android Open Source Project
|
||||||
# found in the LICENSE file.
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
# Replacement for the crash reporter, for testing. Log the first line of the
|
# Replacement for the crash reporter, for testing. Log the first line of the
|
||||||
# "warning" file, which by convention contains the warning hash, and remove the
|
# "warning" file, which by convention contains the warning hash, and remove the
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue