Project

General

Profile

Actions

Bug #511

closed

lttng-gen-tp file naming restrictions

Added by Simon Marchi almost 11 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Yannick Brosseau
Target version:
Start date:
04/27/2013
Due date:
% Done:

100%

Estimated time:

Description

I created a tracepoint in the file "cmd-get.h" and ran lttng-gen-tp on it. It caused the define in the .h to be:

#define CMD-GET_H

Because the "-" is not a valid character in a C identifier, the compilation fails.


Files

cmd-get.tp (134 Bytes) cmd-get.tp Simon Marchi, 04/27/2013 11:06 AM
cmd-get.h (551 Bytes) cmd-get.h Simon Marchi, 04/27/2013 11:06 AM
cmd-get.c (136 Bytes) cmd-get.c Simon Marchi, 04/27/2013 11:06 AM
Actions #1

Updated by Yannick Brosseau almost 11 years ago

Can you provide the template file?

Updated by Simon Marchi almost 11 years ago

Attach the tp file and generated header and source files.

Actions #3

Updated by Mathieu Desnoyers almost 11 years ago

  • Target version set to 2.2

Targetting 2.2, due soon now. Yannick, can we get a patch fixing this ?

Actions #4

Updated by Mathieu Desnoyers almost 11 years ago

  • Assignee set to Yannick Brosseau
Actions #5

Updated by Yannick Brosseau almost 11 years ago

I'll look into it

Actions #6

Updated by Anonymous almost 11 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF