Skip to content

Commit

Permalink
Fix file headers
Browse files Browse the repository at this point in the history
  • Loading branch information
TomTheBear committed Nov 15, 2024
1 parent c5cbdf6 commit 8cd49da
Show file tree
Hide file tree
Showing 70 changed files with 1,464 additions and 81 deletions.
4 changes: 1 addition & 3 deletions examples/C-internalMarkerAPI.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* ==========================================================================
* =======================================================================================
*
* Filename: C-internalMarkerAPI.c
*
Expand Down Expand Up @@ -27,15 +27,13 @@
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*
* ==========================================================================
*
* Usage:
*
* After installing likwid, change to the `examples` directory. Then, use
* `make C-internalMarkerAPI` to compile and
* `make C-internalMarkerAPI-run` to run.
*
* ==========================================================================
*/

#include <stdlib.h>
Expand Down
29 changes: 29 additions & 0 deletions examples/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
# =======================================================================================
#
# Filename: Makefile
#
# Description: example Makefile
#
# Version: <VERSION>
# Released: <DATE>
#
# Author: Jan Treibig (jt), [email protected]
# Thomas Gruber (tr), [email protected]
#
# Project: likwid
#
# Copyright (C) 2016 RRZE, University Erlangen-Nuremberg
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <http://www.gnu.org/licenses/>.
#
# =======================================================================================

include ../config.mk
include ../make/include_$(COMPILER).mk
Expand Down
30 changes: 30 additions & 0 deletions examples/monitoring.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
/*
* =======================================================================================
*
* Filename: monitoring.c
*
* Description: Example how to use the LIKWID API in C/C++ applications for monitoring
*
* Version: <VERSION>
* Released: <DATE>
*
* Author: Thomas Gruber (tr), [email protected]
* Project: likwid
*
* Copyright (C) 2016 RRZE, University Erlangen-Nuremberg
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*
* =======================================================================================
*/

#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
Expand Down
28 changes: 28 additions & 0 deletions ext/GOTCHA/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
# =======================================================================================
#
# Filename: Makefile
#
# Description: GOTCHA Makefile
#
# Version: <VERSION>
# Released: <DATE>
#
# Author: Thomas Gruber (tr), [email protected]
# Project: likwid
#
# Copyright (C) 2015 RRZE, University Erlangen-Nuremberg
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <http://www.gnu.org/licenses/>.
#
# =======================================================================================

SRC_DIRS = ./src
MAKE_DIR = ../../make

Expand Down
28 changes: 28 additions & 0 deletions kernel/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
# =======================================================================================
#
# Filename: Makefile
#
# Description: Makefile for kernel module that enables RDPMC instruction in user-space
#
# Version: <VERSION>
# Released: <DATE>
#
# Author: Thomas Gruber (tr), [email protected]
# Project: likwid
#
# Copyright (C) 2015 RRZE, University Erlangen-Nuremberg
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <http://www.gnu.org/licenses/>.
#
# =======================================================================================

obj-m := enable_rdpmc.o
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
Expand Down
4 changes: 2 additions & 2 deletions perl/set_license.pl
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
my $DATE = '<DATE>';
#my $VERSION = '4.0';
#my $DATE = '16.6.2015';
my $YEAR = '2015';
my $YEAR = '2016';
my $AUTHOR = 'RRZE, University Erlangen-Nuremberg';
my $LICENSE = 'gpl';

my @SKIPLIST = ('ghash.c','ghash.h','loadData.S','loadDataARM.S','bstrlib.c','bstrlib.h', 'calculator_stack.h', 'calculator_stack.c');
my @SKIPLIST = ('ghash.c','ghash.h','loadData.S','loadDataARM.S','bstrlib.c','bstrlib.h', 'calculator_stack.h', 'calculator_stack.c', 'voltage.c', 'voltage.h', 'likwid-benchmark.sh', 'calculator.c', 'calculator.h');

sub print_copyright
{
Expand Down
3 changes: 2 additions & 1 deletion src/access-daemon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
# Version: <VERSION>
# Released: <DATE>
#
# Author: Jan Treibig (jt), [email protected]
# Author: Jan Treibig (jt), [email protected]
# Thomas Gruber (tr), [email protected]
# Project: likwid
#
# Copyright (C) 2016 RRZE, University Erlangen-Nuremberg
Expand Down
2 changes: 1 addition & 1 deletion src/access-daemon/appDaemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Version: <VERSION>
* Released: <DATE>
*
* Author: Thoams Roehl (tr), thomas.roehl@gmail.com
* Author: Thomas Gruber (tr), thomas.roehl@googlemail.com
* Project: likwid
*
* Copyright (C) 2016 RRZE, University Erlangen-Nuremberg
Expand Down
6 changes: 3 additions & 3 deletions src/access_x86_mmio.c
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
* performance monitoring registers in PCI Cfg space
* for Intel Sandy Bridge Processors.
*
* Version: 4.3.1
* Released: 04.01.2018
* Version: <VERSION>
* Released: <DATE>
*
* Author: Jan Treibig (jt), [email protected],
* Thomas Gruber (tr), [email protected]
* Project: likwid
*
* Copyright (C) 2018 RRZE, University Erlangen-Nuremberg
* Copyright (C) 2016 RRZE, University Erlangen-Nuremberg
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
Expand Down
6 changes: 3 additions & 3 deletions src/access_x86_msr.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
* sys interface of the Linux 2.6 kernel. This module
* is based on the msr-util tools.
*
* Version: 5.2.2
* Released: 26.07.2022
* Version: <VERSION>
* Released: <DATE>
*
* Author: Jan Treibig (jt), [email protected].
* Thomas Gruber (tr), [email protected]
* Project: likwid
*
* Copyright (C) 2022 NHR@FAU, University Erlangen-Nuremberg
* Copyright (C) 2016 RRZE, University Erlangen-Nuremberg
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
Expand Down
2 changes: 1 addition & 1 deletion src/access_x86_translate.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* =======================================================================================
*
* Filename: access_x86.c
* Filename: access_x86_translate.c
*
* Description: Interface to x86 related functions for the access module.
*
Expand Down
4 changes: 2 additions & 2 deletions src/applications/likwid-perfctr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Description: An application to read out performance counter registers
* on x86 processors
*
* Version: 4.2
* Released: 22.12.2016
* Version: <VERSION>
* Released: <DATE>
*
* Author: Thomas Gruber (tr), [email protected]
* Project: likwid
Expand Down
6 changes: 3 additions & 3 deletions src/applications/likwid-sysfeatures.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
--[[
* =======================================================================================
*
* Filename: likwid-features.lua
* Filename: likwid-sysfeatures.lua
*
* Description: A application to retrieve and manipulate CPU features.
*
* Version: 4.0
* Released: 28.04.2015
* Version: <VERSION>
* Released: <DATE>
*
* Author: Thomas Gruber (tr), [email protected]
* Project: likwid
Expand Down
30 changes: 30 additions & 0 deletions src/devstring.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
/*
* =======================================================================================
*
* Filename: devstring.c
*
* Description: Code to resolve a LIKWID device string to a list of devices
*
* Version: <VERSION>
* Released: <DATE>
*
* Author: Michael Panzlaff, [email protected]
* Project: likwid
*
* Copyright (C) 2016 RRZE, University Erlangen-Nuremberg
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*
* =======================================================================================
*/

#include <devstring.h>

#include <limits.h>
Expand Down
4 changes: 2 additions & 2 deletions src/includes/access_sysfs_client.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* =======================================================================================
*
* Filename: frequency_client.h
* Filename: access_sysfs_client.h
*
* Description: Header File frequency module, the interface to the frequency daemon
* Description: Header File sysFeatures module, the interface to the sysfs daemon
*
* Version: <VERSION>
* Released: <DATE>
Expand Down
Empty file modified src/includes/access_x86_mmio.h
100755 → 100644
Empty file.
30 changes: 30 additions & 0 deletions src/includes/access_x86_translate.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
/*
* =======================================================================================
*
* Filename: access_x86_translate.h
*
* Description: Interface to x86 related functions for the access module.
*
* Version: <VERSION>
* Released: <DATE>
*
* Author: Thomas Gruber (tr), [email protected]
* Project: likwid
*
* Copyright (C) 2016 RRZE, University Erlangen-Nuremberg
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*
* =======================================================================================
*/

#ifndef ACCESS_X86_TRANSLATE_H
#define ACCESS_X86_TRANSLATE_H

Expand Down
3 changes: 2 additions & 1 deletion src/includes/amd_hsmp.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
* =======================================================================================
#ifndef _UAPI_ASM_X86_AMD_HSMP_H_
#define _UAPI_ASM_X86_AMD_HSMP_H_
Expand Down
4 changes: 2 additions & 2 deletions src/includes/calculator.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*
* Description: Header file for infix calculator
*
* Version: 4.2
* Released: 22.12.2016
* Version: <VERSION>
* Released: <DATE>
*
* Author: Jan Treibig (jt), [email protected]
* Thomas Gruber (tr), [email protected]
Expand Down
30 changes: 30 additions & 0 deletions src/includes/devstring.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
/*
* =======================================================================================
*
* Filename: devstring.h
*
* Description: Header File to resolve a LIKWID device string to a list of devices
*
* Version: <VERSION>
* Released: <DATE>
*
* Author: Michael Panzlaff, [email protected]
* Project: likwid
*
* Copyright (C) 2016 RRZE, University Erlangen-Nuremberg
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*
* =======================================================================================
*/

#ifndef DEVSTRING_H
#define DEVSTRING_H

Expand Down
Loading

0 comments on commit 8cd49da

Please sign in to comment.